diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-09-24 14:10:48 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-09-26 09:54:49 +0200 |
commit | deb37c44ecfb8f6aa7c2ceec4771b0505fa7b6bb (patch) | |
tree | 3953ca620e27fed0442272fdabea9735fd6f3dcd /include/sfx2 | |
parent | a37e559ed123789f6bc8f7972242d6461ce692ab (diff) |
now drop TabPageParent intermediate
Change-Id: I47328f76342ac023628d9042bdfa8213a1c93d0c
Reviewed-on: https://gerrit.libreoffice.org/79469
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/sfx2')
-rw-r--r-- | include/sfx2/dinfdlg.hxx | 16 | ||||
-rw-r--r-- | include/sfx2/mgetempl.hxx | 4 | ||||
-rw-r--r-- | include/sfx2/module.hxx | 6 | ||||
-rw-r--r-- | include/sfx2/printopt.hxx | 4 | ||||
-rw-r--r-- | include/sfx2/securitypage.hxx | 4 | ||||
-rw-r--r-- | include/sfx2/tabdlg.hxx | 4 | ||||
-rw-r--r-- | include/sfx2/viewsh.hxx | 8 |
7 files changed, 27 insertions, 19 deletions
diff --git a/include/sfx2/dinfdlg.hxx b/include/sfx2/dinfdlg.hxx index caa618f0466f..248350e02d4b 100644 --- a/include/sfx2/dinfdlg.hxx +++ b/include/sfx2/dinfdlg.hxx @@ -204,8 +204,8 @@ protected: virtual void Reset( const SfxItemSet* ) override; public: - SfxDocumentPage(TabPageParent pParent, const SfxItemSet&); - static std::unique_ptr<SfxTabPage> Create( TabPageParent pParent, const SfxItemSet* ); + SfxDocumentPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet&); + static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* ); virtual ~SfxDocumentPage() override; void EnableUseUserData(); @@ -227,9 +227,9 @@ protected: virtual void Reset( const SfxItemSet* ) override; public: - SfxDocumentDescPage(TabPageParent pParent, const SfxItemSet&); + SfxDocumentDescPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet&); virtual ~SfxDocumentDescPage() override; - static std::unique_ptr<SfxTabPage> Create( TabPageParent pParent, const SfxItemSet* ); + static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* ); }; // class SfxDocumentInfoDialog ------------------------------------------- @@ -454,8 +454,8 @@ protected: virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override; public: - SfxCustomPropertiesPage(TabPageParent pParent, const SfxItemSet&); - static std::unique_ptr<SfxTabPage> Create( TabPageParent pParent, const SfxItemSet* ); + SfxCustomPropertiesPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet&); + static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* ); virtual ~SfxCustomPropertiesPage() override; }; @@ -570,9 +570,9 @@ protected: virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override; public: - SfxCmisPropertiesPage(TabPageParent pParent, const SfxItemSet&); + SfxCmisPropertiesPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet&); virtual ~SfxCmisPropertiesPage() override; - static std::unique_ptr<SfxTabPage> Create(TabPageParent pParent, const SfxItemSet*); + static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet*); }; #endif // #ifndef _ INCLUDED_SFX2_DINFDLG_HXX diff --git a/include/sfx2/mgetempl.hxx b/include/sfx2/mgetempl.hxx index 1f40b35bb958..26a1a32ca69c 100644 --- a/include/sfx2/mgetempl.hxx +++ b/include/sfx2/mgetempl.hxx @@ -75,7 +75,7 @@ class SfxManageStyleSheetPage final : public SfxTabPage void SetDescriptionText_Impl(); - static std::unique_ptr<SfxTabPage> Create( TabPageParent pParent, const SfxItemSet* ); + static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* ); virtual bool FillItemSet(SfxItemSet *) override; virtual void Reset(const SfxItemSet *) override; @@ -85,7 +85,7 @@ class SfxManageStyleSheetPage final : public SfxTabPage virtual DeactivateRC DeactivatePage(SfxItemSet *) override; public: - SfxManageStyleSheetPage(TabPageParent pParent, const SfxItemSet &rAttrSet); + SfxManageStyleSheetPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet &rAttrSet); virtual ~SfxManageStyleSheetPage() override; }; diff --git a/include/sfx2/module.hxx b/include/sfx2/module.hxx index 78d159d75236..6278b7f0a8bf 100644 --- a/include/sfx2/module.hxx +++ b/include/sfx2/module.hxx @@ -44,6 +44,10 @@ namespace com { namespace sun { namespace star { namespace frame { class XFrame; } } } } +namespace weld { + class Container; + class DialogController; +} class SFX2_DLLPUBLIC SfxModule : public SfxShell { @@ -74,7 +78,7 @@ public: void RegisterStatusBarControl(const SfxStbCtrlFactory&); virtual std::unique_ptr<SfxTabPage> CreateTabPage( sal_uInt16 nId, - TabPageParent pParent, + weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet ); virtual void Invalidate(sal_uInt16 nId = 0) override; diff --git a/include/sfx2/printopt.hxx b/include/sfx2/printopt.hxx index c6b47b88a1ea..9b072a9e597e 100644 --- a/include/sfx2/printopt.hxx +++ b/include/sfx2/printopt.hxx @@ -76,12 +76,12 @@ protected: public: - SfxCommonPrintOptionsTabPage(TabPageParent pParent, const SfxItemSet& rSet); + SfxCommonPrintOptionsTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet); virtual ~SfxCommonPrintOptionsTabPage() override; virtual bool FillItemSet( SfxItemSet* rSet ) override; virtual void Reset( const SfxItemSet* rSet ) override; - static std::unique_ptr<SfxTabPage> Create( TabPageParent pParent, const SfxItemSet* ); + static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet*); }; #endif // INCLUDED_SFX2_PRINTOPT_HXX diff --git a/include/sfx2/securitypage.hxx b/include/sfx2/securitypage.hxx index 14478eaf063c..ed9686176fb4 100644 --- a/include/sfx2/securitypage.hxx +++ b/include/sfx2/securitypage.hxx @@ -33,8 +33,8 @@ protected: virtual void Reset( const SfxItemSet* ) override; public: - SfxSecurityPage(TabPageParent pParent, const SfxItemSet&); - static std::unique_ptr<SfxTabPage> Create(TabPageParent pParent, const SfxItemSet*); + SfxSecurityPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet&); + static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet*); weld::Builder& GetBuilder() const { return *m_xBuilder; } }; diff --git a/include/sfx2/tabdlg.hxx b/include/sfx2/tabdlg.hxx index 1ff48d364bfe..3d0176fe3964 100644 --- a/include/sfx2/tabdlg.hxx +++ b/include/sfx2/tabdlg.hxx @@ -32,7 +32,7 @@ class SfxTabPage; -typedef std::unique_ptr<SfxTabPage> (*CreateTabPage)(TabPageParent pParent, const SfxItemSet *rAttrSet); +typedef std::unique_ptr<SfxTabPage> (*CreateTabPage)(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet *rAttrSet); typedef const sal_uInt16* (*GetTabPageRanges)(); // provides international Which-value struct TabPageImpl; @@ -175,7 +175,7 @@ private: std::unique_ptr< TabPageImpl > pImpl; protected: - SfxTabPage(TabPageParent pParent, const OUString& rUIXMLDescription, const OString& rID, const SfxItemSet *rAttrSet); + SfxTabPage(weld::Container* pPage, weld::DialogController* pController, const OUString& rUIXMLDescription, const OString& rID, const SfxItemSet *rAttrSet); sal_uInt16 GetWhich( sal_uInt16 nSlot, bool bDeep = true ) const { return pSet->GetPool()->GetWhich( nSlot, bDeep ); } diff --git a/include/sfx2/viewsh.hxx b/include/sfx2/viewsh.hxx index 0463c3a1eaa5..8e781d2d1611 100644 --- a/include/sfx2/viewsh.hxx +++ b/include/sfx2/viewsh.hxx @@ -41,7 +41,11 @@ class SfxBaseController; class Size; class Point; class Fraction; -namespace weld { class Window; } +namespace weld { + class Container; + class DialogController; + class Window; +} class KeyEvent; class SvBorder; class SdrView; @@ -237,7 +241,7 @@ public: virtual SfxPrinter* GetPrinter( bool bCreate = false ); virtual sal_uInt16 SetPrinter( SfxPrinter *pNewPrinter, SfxPrinterChangeFlags nDiffFlags = SFX_PRINTER_ALL ); virtual bool HasPrintOptionsPage() const; - virtual std::unique_ptr<SfxTabPage> CreatePrintOptionsPage(TabPageParent pParent, const SfxItemSet &rOptions); + virtual std::unique_ptr<SfxTabPage> CreatePrintOptionsPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet &rOptions); Printer* GetActivePrinter() const; // Working set |