diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-11-01 13:45:12 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-11-01 13:45:31 -0400 |
commit | 9de534e629e4338ae7f317ebc7ca63a2dfebb7ba (patch) | |
tree | 072599a8eb6643035cea1cc47604a002bc94040d /include/svx/sdr | |
parent | 0cada896f09d9e6b9a2c7ac04317a3a9cc6c0a7c (diff) |
Unindent.
Change-Id: I911de1c7b47768233bdd9580361b8cf430b3684e
Diffstat (limited to 'include/svx/sdr')
-rw-r--r-- | include/svx/sdr/contact/viewobjectcontactofsdrobj.hxx | 65 |
1 files changed, 31 insertions, 34 deletions
diff --git a/include/svx/sdr/contact/viewobjectcontactofsdrobj.hxx b/include/svx/sdr/contact/viewobjectcontactofsdrobj.hxx index 45cd0d993036..e4def238c5ec 100644 --- a/include/svx/sdr/contact/viewobjectcontactofsdrobj.hxx +++ b/include/svx/sdr/contact/viewobjectcontactofsdrobj.hxx @@ -28,42 +28,39 @@ class SdrObject; class SetOfByte; class OutputDevice; +namespace sdr { namespace contact { -namespace sdr +class SVX_DLLPUBLIC ViewObjectContactOfSdrObj : public ViewObjectContact { - namespace contact - { - class SVX_DLLPUBLIC ViewObjectContactOfSdrObj : public ViewObjectContact - { - /** Test whether the primitive is visible on any layer from @c aLayers - - This should be overridden by ViewObjectContacts of SDR classes - that have subparts which can be on different layers (that is, - SdrObjGroup .-) - */ - virtual bool isPrimitiveVisibleOnAnyLayer(const SetOfByte& aLayers) const; - - protected: - const SdrObject& getSdrObject() const; - - public: - ViewObjectContactOfSdrObj(ObjectContact& rObjectContact, ViewContact& rViewContact); - virtual ~ViewObjectContactOfSdrObj(); - - virtual bool isPrimitiveVisible(const DisplayInfo& rDisplayInfo) const SAL_OVERRIDE; - - /** retrieves the device which a PageView belongs to, starting from its ObjectContactOfPageView - - Since #i72752#, the PaintWindow (and thus the OutputDevice) associated with a PageView is not - constant over its lifetime. Instead, during some paint operations, the PaintWindow/OutputDevice - might be temporarily patched. - - This method cares for this, by retrieving the very original OutputDevice. - */ - boost::optional<const OutputDevice&> getPageViewOutputDevice() const; - }; - } // end of namespace contact -} // end of namespace sdr + /** Test whether the primitive is visible on any layer from @c aLayers + + This should be overridden by ViewObjectContacts of SDR classes + that have subparts which can be on different layers (that is, + SdrObjGroup .-) + */ + virtual bool isPrimitiveVisibleOnAnyLayer(const SetOfByte& aLayers) const; + +protected: + const SdrObject& getSdrObject() const; + +public: + ViewObjectContactOfSdrObj(ObjectContact& rObjectContact, ViewContact& rViewContact); + virtual ~ViewObjectContactOfSdrObj(); + + virtual bool isPrimitiveVisible(const DisplayInfo& rDisplayInfo) const SAL_OVERRIDE; + + /** retrieves the device which a PageView belongs to, starting from its ObjectContactOfPageView + + Since #i72752#, the PaintWindow (and thus the OutputDevice) associated with a PageView is not + constant over its lifetime. Instead, during some paint operations, the PaintWindow/OutputDevice + might be temporarily patched. + + This method cares for this, by retrieving the very original OutputDevice. + */ + boost::optional<const OutputDevice&> getPageViewOutputDevice() const; +}; + +}} |