From efdc2b2f86c4c08c02440bbb8e828cc2e76ce95f Mon Sep 17 00:00:00 2001 From: Zolnai Tamás Date: Thu, 20 Mar 2014 19:06:25 +0100 Subject: Extract getPageWindowOutputDevice to a common place Change-Id: Idef06778251d7437cfce2151c6fb9654db04d3a4 --- include/svx/sdr/contact/viewobjectcontactofsdrobj.hxx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'include/svx/sdr/contact') 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 - +#include // 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 getPageViewOutputDevice() const; }; } // end of namespace contact } // end of namespace sdr -- cgit