diff options
Diffstat (limited to 'include/svx/sdr/contact/viewcontact.hxx')
-rw-r--r-- | include/svx/sdr/contact/viewcontact.hxx | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/include/svx/sdr/contact/viewcontact.hxx b/include/svx/sdr/contact/viewcontact.hxx index de3ceb316332..c5cc61883a49 100644 --- a/include/svx/sdr/contact/viewcontact.hxx +++ b/include/svx/sdr/contact/viewcontact.hxx @@ -28,8 +28,8 @@ class SdrLayerIDSet; class SdrPage; class SdrObject; -namespace sdr::contact { - +namespace sdr::contact +{ class ObjectContact; class ViewObjectContact; @@ -44,12 +44,12 @@ private: // with this VC. Since the VOCs remember a reference to this VC, this list needs // to be kept and is used e.g. at destructor to destroy all VOCs. // Registering and de-registering is done in the VOC constructors/destructors. - std::vector< ViewObjectContact* > maViewObjectContactVector; + std::vector<ViewObjectContact*> maViewObjectContactVector; // Primitive2DContainer of the ViewContact. This contains all necessary information // for the graphical visualisation and needs to be supported by all VCs which // can be visualized. - drawinglayer::primitive2d::Primitive2DContainer mxViewIndependentPrimitive2DSequence; + drawinglayer::primitive2d::Primitive2DContainer mxViewIndependentPrimitive2DSequence; // A new ViewObjectContact was created and shall be remembered. void AddViewObjectContact(ViewObjectContact& rVOContact); @@ -63,7 +63,10 @@ private: protected: // Interface to allow derivates to travel over the registered VOC's sal_uInt32 getViewObjectContactCount() const { return maViewObjectContactVector.size(); } - ViewObjectContact* getViewObjectContact(sal_uInt32 a) const { return maViewObjectContactVector[a]; } + ViewObjectContact* getViewObjectContact(sal_uInt32 a) const + { + return maViewObjectContactVector[a]; + } // Create an Object-Specific ViewObjectContact, set ViewContact and // ObjectContact. Always needs to return something. Default is to create @@ -77,7 +80,8 @@ protected: // visualisation method and will also be used for BoundRect computations in the long run. // This means it's always an error when the default implementation is called and thus gets // asserted there - virtual drawinglayer::primitive2d::Primitive2DContainer createViewIndependentPrimitive2DSequence() const; + virtual drawinglayer::primitive2d::Primitive2DContainer + createViewIndependentPrimitive2DSequence() const; // basic constructor. Since this is a base class only, it shall // never be called directly @@ -119,19 +123,23 @@ public: // access to the local primitive. This will ensure that the primitive is // current in comparing the local one with a fresh created incarnation - drawinglayer::primitive2d::Primitive2DContainer const & getViewIndependentPrimitive2DContainer() const; + drawinglayer::primitive2d::Primitive2DContainer const& + getViewIndependentPrimitive2DContainer() const; // add Gluepoints (if available) - virtual drawinglayer::primitive2d::Primitive2DContainer createGluePointPrimitive2DSequence() const; + virtual drawinglayer::primitive2d::Primitive2DContainer + createGluePointPrimitive2DSequence() const; // Allow embedding if needed (e.g. for SdrObjects, evtl. Name, Title and description get added). This // is a helper normally used from getViewIndependentPrimitive2DContainer(), but there is one exception // for 3D scenes. // We take the param by value, since, for the common case, we can just std::move into the param, and // std::move the result out, avoiding copying. - virtual drawinglayer::primitive2d::Primitive2DContainer embedToObjectSpecificInformation(drawinglayer::primitive2d::Primitive2DContainer rSource) const; + virtual drawinglayer::primitive2d::Primitive2DContainer + embedToObjectSpecificInformation(drawinglayer::primitive2d::Primitive2DContainer rSource) const; - virtual basegfx::B2DRange getRange( const drawinglayer::geometry::ViewInformation2D& rViewInfo2D ) const; + virtual basegfx::B2DRange + getRange(const drawinglayer::geometry::ViewInformation2D& rViewInfo2D) const; // delete all existing VOCs including DrawHierarchy which will invalidate all // visualisations, too. Used mostly at object removal from DrawHierarchy to @@ -139,10 +147,8 @@ public: // It is always possible to delete the VOCs, these are re-created on demand void flushViewObjectContacts(bool bWithHierarchy = true); }; - } - #endif // INCLUDED_SVX_SDR_CONTACT_VIEWCONTACT_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |