summaryrefslogtreecommitdiff
path: root/include/svx/sdr/contact/viewobjectcontactofsdrobj.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/svx/sdr/contact/viewobjectcontactofsdrobj.hxx')
-rw-r--r--include/svx/sdr/contact/viewobjectcontactofsdrobj.hxx14
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