diff options
author | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-03-20 19:06:25 +0100 |
---|---|---|
committer | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-03-21 13:39:08 +0100 |
commit | efdc2b2f86c4c08c02440bbb8e828cc2e76ce95f (patch) | |
tree | d0af87d65687b6c52d7c14d7793b39da09acf960 /include/svx/sdr | |
parent | d6cd20a48eae0ea99728014601ee97488fc7c742 (diff) |
Extract getPageWindowOutputDevice to a common place
Change-Id: Idef06778251d7437cfce2151c6fb9654db04d3a4
Diffstat (limited to 'include/svx/sdr')
-rw-r--r-- | include/svx/sdr/contact/viewobjectcontactofsdrobj.hxx | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/include/svx/sdr/contact/viewobjectcontactofsdrobj.hxx b/include/svx/sdr/contact/viewobjectcontactofsdrobj.hxx index 548378731ba4..fdf64e887dc1 100644 --- a/include/svx/sdr/contact/viewobjectcontactofsdrobj.hxx +++ b/include/svx/sdr/contact/viewobjectcontactofsdrobj.hxx @@ -21,12 +21,12 @@ #define INCLUDED_SVX_SDR_CONTACT_VIEWOBJECTCONTACTOFSDROBJ_HXX #include <svx/sdr/contact/viewobjectcontact.hxx> - +#include <boost/optional.hpp> // predeclarations class SdrObject; class SetOfByte; - +class OutputDevice; namespace sdr @@ -51,6 +51,16 @@ namespace sdr virtual ~ViewObjectContactOfSdrObj(); virtual bool isPrimitiveVisible(const DisplayInfo& rDisplayInfo) const; + + /** 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 |