diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-11-04 12:57:56 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-11-04 12:59:32 -0500 |
commit | 50228d22a62ecfbc974130f2ff3f7c4e03a9a033 (patch) | |
tree | 0a3ca168fa9fbcffdc4987b502d7b8b5975e6c24 /svx/inc | |
parent | 024a5d79e101b26d23054e1906505810210d4e56 (diff) |
Unindent.
Change-Id: Ib274ec26768e8a3bd1006601679404799fed986a
Diffstat (limited to 'svx/inc')
-rw-r--r-- | svx/inc/sdr/contact/viewcontactofsdrole2obj.hxx | 91 |
1 files changed, 42 insertions, 49 deletions
diff --git a/svx/inc/sdr/contact/viewcontactofsdrole2obj.hxx b/svx/inc/sdr/contact/viewcontactofsdrole2obj.hxx index 29fc2dfa8092..1e1c8959fb85 100644 --- a/svx/inc/sdr/contact/viewcontactofsdrole2obj.hxx +++ b/svx/inc/sdr/contact/viewcontactofsdrole2obj.hxx @@ -24,60 +24,53 @@ #include <svx/svdoole2.hxx> #include <basegfx/matrix/b2dhommatrix.hxx> - -// predeclarations - class Graphic; +namespace sdr { namespace contact { - -namespace sdr +class ViewContactOfSdrOle2Obj : public ViewContactOfSdrRectObj { - namespace contact +private: + // #i123539# allow local buffering of chart data (if chart) + drawinglayer::primitive2d::Primitive2DReference mxChartContent; + +protected: + // Create a Object-Specific ViewObjectContact, set ViewContact and + // ObjectContact. Always needs to return something. + virtual ViewObjectContact& CreateObjectSpecificViewObjectContact(ObjectContact& rObjectContact) SAL_OVERRIDE; + +public: + // access to SdrOle2Obj + const SdrOle2Obj& GetOle2Obj() const { - class ViewContactOfSdrOle2Obj : public ViewContactOfSdrRectObj - { - private: - // #i123539# allow local buffering of chart data (if chart) - drawinglayer::primitive2d::Primitive2DReference mxChartContent; - - protected: - // Create a Object-Specific ViewObjectContact, set ViewContact and - // ObjectContact. Always needs to return something. - virtual ViewObjectContact& CreateObjectSpecificViewObjectContact(ObjectContact& rObjectContact) SAL_OVERRIDE; - - public: - // access to SdrOle2Obj - const SdrOle2Obj& GetOle2Obj() const - { - return static_cast<const SdrOle2Obj&>(GetSdrObject()); - } - - /// helper to create transformation from SdrObject - basegfx::B2DHomMatrix createObjectTransform() const; - - // basic constructor, used from SdrObject. - explicit ViewContactOfSdrOle2Obj(SdrOle2Obj& rOle2Obj); - virtual ~ViewContactOfSdrOle2Obj(); - - // helper for creating a OLE sequence for this object. It takes care od attributes, needed - // scaling (e.g. for EmptyPresObj's), the correct graphic and other stuff. It is used from - // createViewIndependentPrimitive2DSequence with false, and with evtl. HighContrast true - // from the VOC which knows that - drawinglayer::primitive2d::Primitive2DSequence createPrimitive2DSequenceWithParameters() const; - - // #i123539# get rid of buffered chart content (if there) on change - virtual void ActionChanged() SAL_OVERRIDE; - - virtual basegfx::B2DRange getRange( const drawinglayer::geometry::ViewInformation2D& rViewInfo2D ) const SAL_OVERRIDE; - - protected: - // This method is responsible for creating the graphical visualisation data - // ONLY based on model data, just wraps to call createPrimitive2DSequenceWithParameters(false) - virtual drawinglayer::primitive2d::Primitive2DSequence createViewIndependentPrimitive2DSequence() const SAL_OVERRIDE; - }; - } // end of namespace contact -} // end of namespace sdr + return static_cast<const SdrOle2Obj&>(GetSdrObject()); + } + + /// helper to create transformation from SdrObject + basegfx::B2DHomMatrix createObjectTransform() const; + + // basic constructor, used from SdrObject. + explicit ViewContactOfSdrOle2Obj(SdrOle2Obj& rOle2Obj); + virtual ~ViewContactOfSdrOle2Obj(); + + // helper for creating a OLE sequence for this object. It takes care od attributes, needed + // scaling (e.g. for EmptyPresObj's), the correct graphic and other stuff. It is used from + // createViewIndependentPrimitive2DSequence with false, and with evtl. HighContrast true + // from the VOC which knows that + drawinglayer::primitive2d::Primitive2DSequence createPrimitive2DSequenceWithParameters() const; + + // #i123539# get rid of buffered chart content (if there) on change + virtual void ActionChanged() SAL_OVERRIDE; + + virtual basegfx::B2DRange getRange( const drawinglayer::geometry::ViewInformation2D& rViewInfo2D ) const SAL_OVERRIDE; + +protected: + // This method is responsible for creating the graphical visualisation data + // ONLY based on model data, just wraps to call createPrimitive2DSequenceWithParameters(false) + virtual drawinglayer::primitive2d::Primitive2DSequence createViewIndependentPrimitive2DSequence() const SAL_OVERRIDE; +}; + +}} |