summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/svx/sdr/contact/objectcontactofobjlistpainter.hxx7
-rw-r--r--include/svx/svdpage.hxx30
2 files changed, 17 insertions, 20 deletions
diff --git a/include/svx/sdr/contact/objectcontactofobjlistpainter.hxx b/include/svx/sdr/contact/objectcontactofobjlistpainter.hxx
index d9ee440f0272..8a2d4da131ae 100644
--- a/include/svx/sdr/contact/objectcontactofobjlistpainter.hxx
+++ b/include/svx/sdr/contact/objectcontactofobjlistpainter.hxx
@@ -34,7 +34,7 @@ class SVX_DLLPUBLIC ObjectContactPainter : public ObjectContact
protected:
// Hierarchy access methods
virtual sal_uInt32 GetPaintObjectCount() const = 0;
- virtual ViewContact& GetPaintObjectViewContact(sal_uInt32 nIndex) const = 0;
+ virtual ViewContact& GetPaintObjectViewContact(sal_uInt32 nIndex) = 0;
public:
// basic constructor/destructor
@@ -59,7 +59,7 @@ protected:
// Hierarchy access methods
virtual sal_uInt32 GetPaintObjectCount() const override;
- virtual ViewContact& GetPaintObjectViewContact(sal_uInt32 nIndex) const override;
+ virtual ViewContact& GetPaintObjectViewContact(sal_uInt32 nIndex) override;
public:
// basic constructor/destructor
@@ -95,7 +95,7 @@ protected:
// Hierarchy access methods
virtual sal_uInt32 GetPaintObjectCount() const override;
- virtual ViewContact& GetPaintObjectViewContact(sal_uInt32 nIndex) const override;
+ virtual ViewContact& GetPaintObjectViewContact(sal_uInt32 nIndex) override;
public:
// basic constructor
@@ -107,6 +107,7 @@ public:
// set another page
void SetStartPage(const SdrPage* pPage);
const SdrPage* GetStartPage() const { return mxStartPage.get(); }
+ SdrPage* GetStartPage() { return mxStartPage.get(); }
virtual OutputDevice* TryToGetOutputDevice() const override;
};
diff --git a/include/svx/svdpage.hxx b/include/svx/svdpage.hxx
index 347beb3351da..7e1d15f92587 100644
--- a/include/svx/svdpage.hxx
+++ b/include/svx/svdpage.hxx
@@ -375,6 +375,14 @@ public:
*/
class SVX_DLLPUBLIC SdrPage : public SdrObjList, public tools::WeakBase< SdrPage >
{
+ // #i9076#
+ friend class SdrModel;
+ friend class SvxUnoDrawPagesAccess;
+
+ // this class uses its own UNO wrapper
+ // and thus has to set mxUnoPage (it also relies on mxUnoPage not being WeakRef)
+ friend class reportdesign::OSection;
+
SdrPage& operator=(const SdrPage& rSrcPage) = delete;
// start PageUser section
@@ -382,32 +390,20 @@ private:
// #111111# PageUser section
sdr::PageUserVector maPageUsers;
+ std::unique_ptr<sdr::contact::ViewContact> mpViewContact;
+
public:
void AddPageUser(sdr::PageUser& rNewUser);
void RemovePageUser(sdr::PageUser& rOldUser);
-
- // end PageUser section
-
-
- // #110094# DrawContact section
-private:
- sdr::contact::ViewContact* mpViewContact;
protected:
sdr::contact::ViewContact* CreateObjectSpecificViewContact();
public:
- sdr::contact::ViewContact& GetViewContact() const;
+ const sdr::contact::ViewContact& GetViewContact() const;
+ sdr::contact::ViewContact& GetViewContact();
// #110094# DrawContact support: Methods for handling Page changes
- void ActionChanged() const;
-
- // #i9076#
- friend class SdrModel;
- friend class SvxUnoDrawPagesAccess;
-
-// this class uses its own UNO wrapper
-// and thus has to set mxUnoPage (it also relies on mxUnoPage not being WeakRef)
-friend class reportdesign::OSection;
+ void ActionChanged();
sal_Int32 nWdt; // Seitengroesse
sal_Int32 nHgt; // Seitengroesse