diff options
-rw-r--r-- | include/svx/sdr/properties/properties.hxx | 11 | ||||
-rw-r--r-- | svx/source/sdr/properties/properties.cxx | 10 |
2 files changed, 16 insertions, 5 deletions
diff --git a/include/svx/sdr/properties/properties.hxx b/include/svx/sdr/properties/properties.hxx index 56d8c2522c3d..511b74956acc 100644 --- a/include/svx/sdr/properties/properties.hxx +++ b/include/svx/sdr/properties/properties.hxx @@ -50,19 +50,20 @@ namespace sdr { class SVX_DLLPUBLIC BaseProperties { - protected: + private: // the owner of this Properties. Set from constructor and not // to be changed in any way. SdrObject& mrObject; + protected: + // create a new object specific itemset with object specific ranges. virtual SfxItemSet* CreateObjectSpecificItemSet(SfxItemPool& pPool) = 0; // internal access to SdrObject - SdrObject& GetSdrObject() const - { - return mrObject; - } + const SdrObject& GetSdrObject() const; + + SdrObject& GetSdrObject(); // Test changeability for a single item. If a implementation wants to prevent // changing an item this method may be overloaded. diff --git a/svx/source/sdr/properties/properties.cxx b/svx/source/sdr/properties/properties.cxx index 9b8670f7030d..f4fd9c881b23 100644 --- a/svx/source/sdr/properties/properties.cxx +++ b/svx/source/sdr/properties/properties.cxx @@ -44,6 +44,16 @@ namespace sdr { } + const SdrObject& BaseProperties::GetSdrObject() const + { + return mrObject; + } + + SdrObject& BaseProperties::GetSdrObject() + { + return mrObject; + } + const SfxItemSet& BaseProperties::GetMergedItemSet() const { // default implementation falls back to GetObjectItemSet() |