summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-03-06 17:36:16 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-03-09 10:16:17 +0100
commit7c1a2289d55aa9f92286c2c9eee0a394e9ea7d29 (patch)
tree33b0f321987a0750639e70b4e6e3488593aa5d7f /include
parent619f033d3939839c0b3312e4d6bc1d3944b4ae3d (diff)
Add sdr::overlay::OverlayManager::getModel()
Can't access the SdrModel from sdr::overlay::OverlayObjectList otherwise. Change-Id: I0530985fb79659bd9de95d944b06edfb883f4403
Diffstat (limited to 'include')
-rw-r--r--include/svx/sdr/overlay/overlaymanager.hxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/svx/sdr/overlay/overlaymanager.hxx b/include/svx/sdr/overlay/overlaymanager.hxx
index 637112a165e3..c6c0334d31b7 100644
--- a/include/svx/sdr/overlay/overlaymanager.hxx
+++ b/include/svx/sdr/overlay/overlaymanager.hxx
@@ -36,6 +36,7 @@
// predeclarations
class OutputDevice;
+class SdrModel;
namespace vcl { class Region; }
namespace sdr { namespace overlay {
@@ -63,6 +64,7 @@ namespace sdr
protected:
// the OutputDevice to work on, set on construction and not to be changed
OutputDevice& mrOutputDevice;
+ const SdrModel* mpModel;
// the vector of registered OverlayObjects
OverlayObjectVector maOverlayObjects;
@@ -92,11 +94,11 @@ namespace sdr
// ViewTransformation and evtl. correct mfDiscreteOne
double getDiscreteOne() const;
- OverlayManager(OutputDevice& rOutputDevice);
+ OverlayManager(OutputDevice& rOutputDevice, const SdrModel* pModel);
virtual ~OverlayManager();
public:
- static rtl::Reference<OverlayManager> create(OutputDevice& rOutputDevice);
+ static rtl::Reference<OverlayManager> create(OutputDevice& rOutputDevice, const SdrModel* pModel);
// access to current ViewInformation2D; this call checks and evtl. updates ViewInformation2D
const drawinglayer::geometry::ViewInformation2D getCurrentViewInformation2D() const;
@@ -115,6 +117,8 @@ namespace sdr
// get the OutputDevice
OutputDevice& getOutputDevice() const { return mrOutputDevice; }
+ // Get the draw model.
+ const SdrModel* getModel() const { return mpModel; }
// add and remove OverlayObjects
void add(OverlayObject& rOverlayObject);