diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-11-08 22:11:33 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-11-08 22:17:48 -0500 |
commit | 9229170920ab770624415c4330da57af5b1b5398 (patch) | |
tree | f919af4ad0ca25a297b2aae6518c13280f5ad50e /svx/source/sdr/contact/viewcontactofpageobj.cxx | |
parent | a305869e99a73626534a921c36eb352cd74582a5 (diff) |
Unindent.
Change-Id: I98b5a0b91c92e58bae3caa69a4ed35c72dc839dd
Diffstat (limited to 'svx/source/sdr/contact/viewcontactofpageobj.cxx')
-rw-r--r-- | svx/source/sdr/contact/viewcontactofpageobj.cxx | 83 |
1 files changed, 39 insertions, 44 deletions
diff --git a/svx/source/sdr/contact/viewcontactofpageobj.cxx b/svx/source/sdr/contact/viewcontactofpageobj.cxx index ec7ae8eca5ca..4e5614d6d7c6 100644 --- a/svx/source/sdr/contact/viewcontactofpageobj.cxx +++ b/svx/source/sdr/contact/viewcontactofpageobj.cxx @@ -29,60 +29,55 @@ #include <basegfx/polygon/b2dpolygontools.hxx> #include <drawinglayer/primitive2d/polygonprimitive2d.hxx> +namespace sdr { namespace contact { - -namespace sdr +ViewObjectContact& ViewContactOfPageObj::CreateObjectSpecificViewObjectContact(ObjectContact& rObjectContact) { - namespace contact - { - ViewObjectContact& ViewContactOfPageObj::CreateObjectSpecificViewObjectContact(ObjectContact& rObjectContact) - { - ViewObjectContact* pRetval = new ViewObjectContactOfPageObj(rObjectContact, *this); - return *pRetval; - } + ViewObjectContact* pRetval = new ViewObjectContactOfPageObj(rObjectContact, *this); + return *pRetval; +} - ViewContactOfPageObj::ViewContactOfPageObj(SdrPageObj& rPageObj) - : ViewContactOfSdrObj(rPageObj) - { - } +ViewContactOfPageObj::ViewContactOfPageObj(SdrPageObj& rPageObj) +: ViewContactOfSdrObj(rPageObj) +{ +} - ViewContactOfPageObj::~ViewContactOfPageObj() - { - } +ViewContactOfPageObj::~ViewContactOfPageObj() +{ +} - // #i35972# React on changes of the object of this ViewContact - void ViewContactOfPageObj::ActionChanged() - { - static bool bIsInActionChange(false); +// #i35972# React on changes of the object of this ViewContact +void ViewContactOfPageObj::ActionChanged() +{ + static bool bIsInActionChange(false); - if(!bIsInActionChange) - { - // set recursion flag, see description in *.hxx - bIsInActionChange = true; + if(!bIsInActionChange) + { + // set recursion flag, see description in *.hxx + bIsInActionChange = true; - // call parent - ViewContactOfSdrObj::ActionChanged(); + // call parent + ViewContactOfSdrObj::ActionChanged(); - // reset recursion flag, see description in *.hxx - bIsInActionChange = false; - } - } + // reset recursion flag, see description in *.hxx + bIsInActionChange = false; + } +} - drawinglayer::primitive2d::Primitive2DSequence ViewContactOfPageObj::createViewIndependentPrimitive2DSequence() const - { - // ceate graphical visualisation data. Since this is the view-independent version which should not be used, - // create a replacement graphic visualisation here. Use GetLastBoundRect to access the model data directly - // which is aOutRect for SdrPageObj. - const Rectangle aModelRectangle(GetPageObj().GetLastBoundRect()); - const basegfx::B2DRange aModelRange(aModelRectangle.Left(), aModelRectangle.Top(), aModelRectangle.Right(), aModelRectangle.Bottom()); - const basegfx::B2DPolygon aOutline(basegfx::tools::createPolygonFromRect(aModelRange)); - const basegfx::BColor aYellow(1.0, 1.0, 0.0); - const drawinglayer::primitive2d::Primitive2DReference xReference(new drawinglayer::primitive2d::PolygonHairlinePrimitive2D(aOutline, aYellow)); +drawinglayer::primitive2d::Primitive2DSequence ViewContactOfPageObj::createViewIndependentPrimitive2DSequence() const +{ + // ceate graphical visualisation data. Since this is the view-independent version which should not be used, + // create a replacement graphic visualisation here. Use GetLastBoundRect to access the model data directly + // which is aOutRect for SdrPageObj. + const Rectangle aModelRectangle(GetPageObj().GetLastBoundRect()); + const basegfx::B2DRange aModelRange(aModelRectangle.Left(), aModelRectangle.Top(), aModelRectangle.Right(), aModelRectangle.Bottom()); + const basegfx::B2DPolygon aOutline(basegfx::tools::createPolygonFromRect(aModelRange)); + const basegfx::BColor aYellow(1.0, 1.0, 0.0); + const drawinglayer::primitive2d::Primitive2DReference xReference(new drawinglayer::primitive2d::PolygonHairlinePrimitive2D(aOutline, aYellow)); - return drawinglayer::primitive2d::Primitive2DSequence(&xReference, 1); - } + return drawinglayer::primitive2d::Primitive2DSequence(&xReference, 1); +} - } // end of namespace contact -} // end of namespace sdr +}} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |