diff options
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/module.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/dialog/dinfdlg.cxx | 16 | ||||
-rw-r--r-- | sfx2/source/dialog/documentfontsdialog.cxx | 4 | ||||
-rw-r--r-- | sfx2/source/dialog/mgetempl.cxx | 4 | ||||
-rw-r--r-- | sfx2/source/dialog/printopt.cxx | 4 | ||||
-rw-r--r-- | sfx2/source/dialog/securitypage.cxx | 4 | ||||
-rw-r--r-- | sfx2/source/dialog/tabdlg.cxx | 15 | ||||
-rw-r--r-- | sfx2/source/inc/documentfontsdialog.hxx | 2 | ||||
-rw-r--r-- | sfx2/source/view/viewprn.cxx | 2 |
9 files changed, 33 insertions, 20 deletions
diff --git a/sfx2/source/appl/module.cxx b/sfx2/source/appl/module.cxx index 060cc8b7e68e..39274e31b8c6 100644 --- a/sfx2/source/appl/module.cxx +++ b/sfx2/source/appl/module.cxx @@ -188,7 +188,7 @@ SfxChildWinFactArr_Impl* SfxModule::GetChildWinFactories_Impl() const return pImpl->pFactArr.get(); } -VclPtr<SfxTabPage> SfxModule::CreateTabPage( sal_uInt16, vcl::Window*, const SfxItemSet& ) +VclPtr<SfxTabPage> SfxModule::CreateTabPage(sal_uInt16, TabPageParent, const SfxItemSet&) { return VclPtr<SfxTabPage>(); } diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx index 86977473f966..017ca402dd89 100644 --- a/sfx2/source/dialog/dinfdlg.cxx +++ b/sfx2/source/dialog/dinfdlg.cxx @@ -634,9 +634,9 @@ void SfxDocumentDescPage::dispose() SfxTabPage::dispose(); } -VclPtr<SfxTabPage> SfxDocumentDescPage::Create(vcl::Window *pParent, const SfxItemSet *rItemSet) +VclPtr<SfxTabPage> SfxDocumentDescPage::Create(TabPageParent pParent, const SfxItemSet *rItemSet) { - return VclPtr<SfxDocumentDescPage>::Create(pParent, *rItemSet); + return VclPtr<SfxDocumentDescPage>::Create(pParent.pParent, *rItemSet); } bool SfxDocumentDescPage::FillItemSet(SfxItemSet *rSet) @@ -930,9 +930,9 @@ void SfxDocumentPage::ImplCheckPasswordState() m_pChangePassBtn->Disable(); } -VclPtr<SfxTabPage> SfxDocumentPage::Create( vcl::Window* pParent, const SfxItemSet* rItemSet ) +VclPtr<SfxTabPage> SfxDocumentPage::Create( TabPageParent pParent, const SfxItemSet* rItemSet ) { - return VclPtr<SfxDocumentPage>::Create( pParent, *rItemSet ); + return VclPtr<SfxDocumentPage>::Create( pParent.pParent, *rItemSet ); } void SfxDocumentPage::EnableUseUserData() @@ -2221,9 +2221,9 @@ DeactivateRC SfxCustomPropertiesPage::DeactivatePage( SfxItemSet* /*pSet*/ ) return nRet; } -VclPtr<SfxTabPage> SfxCustomPropertiesPage::Create( vcl::Window* pParent, const SfxItemSet* rItemSet ) +VclPtr<SfxTabPage> SfxCustomPropertiesPage::Create( TabPageParent pParent, const SfxItemSet* rItemSet ) { - return VclPtr<SfxCustomPropertiesPage>::Create( pParent, *rItemSet ); + return VclPtr<SfxCustomPropertiesPage>::Create( pParent.pParent, *rItemSet ); } CmisValue::CmisValue( vcl::Window* pParent, const OUString& aStr ) @@ -2717,9 +2717,9 @@ DeactivateRC SfxCmisPropertiesPage::DeactivatePage( SfxItemSet* /*pSet*/ ) return DeactivateRC::LeavePage; } -VclPtr<SfxTabPage> SfxCmisPropertiesPage::Create( vcl::Window* pParent, const SfxItemSet* rItemSet ) +VclPtr<SfxTabPage> SfxCmisPropertiesPage::Create( TabPageParent pParent, const SfxItemSet* rItemSet ) { - return VclPtr<SfxCmisPropertiesPage>::Create( pParent, *rItemSet ); + return VclPtr<SfxCmisPropertiesPage>::Create( pParent.pParent, *rItemSet ); } void SfxCmisPropertiesPage::SetPosSizePixel(const Point& rAllocPos, const Size& rAllocation) diff --git a/sfx2/source/dialog/documentfontsdialog.cxx b/sfx2/source/dialog/documentfontsdialog.cxx index abf8af73a747..77177c7f3eeb 100644 --- a/sfx2/source/dialog/documentfontsdialog.cxx +++ b/sfx2/source/dialog/documentfontsdialog.cxx @@ -23,9 +23,9 @@ using namespace ::com::sun::star; -VclPtr<SfxTabPage> SfxDocumentFontsPage::Create( vcl::Window* parent, const SfxItemSet* set ) +VclPtr<SfxTabPage> SfxDocumentFontsPage::Create(TabPageParent parent, const SfxItemSet* set) { - return VclPtr<SfxDocumentFontsPage>::Create( parent, *set ); + return VclPtr<SfxDocumentFontsPage>::Create( parent.pParent, *set ); } SfxDocumentFontsPage::SfxDocumentFontsPage( vcl::Window* parent, const SfxItemSet& set ) diff --git a/sfx2/source/dialog/mgetempl.cxx b/sfx2/source/dialog/mgetempl.cxx index 77eed3e403e7..611a7359b9f9 100644 --- a/sfx2/source/dialog/mgetempl.cxx +++ b/sfx2/source/dialog/mgetempl.cxx @@ -534,10 +534,10 @@ void SfxManageStyleSheetPage::Reset( const SfxItemSet* /*rAttrSet*/ ) } -VclPtr<SfxTabPage> SfxManageStyleSheetPage::Create( vcl::Window* pParent, +VclPtr<SfxTabPage> SfxManageStyleSheetPage::Create( TabPageParent pParent, const SfxItemSet *rAttrSet ) { - return VclPtr<SfxManageStyleSheetPage>::Create( pParent, *rAttrSet ); + return VclPtr<SfxManageStyleSheetPage>::Create( pParent.pParent, *rAttrSet ); } diff --git a/sfx2/source/dialog/printopt.cxx b/sfx2/source/dialog/printopt.cxx index 65f9ea8e1e9a..c50da65acdbc 100644 --- a/sfx2/source/dialog/printopt.cxx +++ b/sfx2/source/dialog/printopt.cxx @@ -113,9 +113,9 @@ void SfxCommonPrintOptionsTabPage::dispose() SfxTabPage::dispose(); } -VclPtr<SfxTabPage> SfxCommonPrintOptionsTabPage::Create( vcl::Window* pParent, const SfxItemSet* rAttrSet ) +VclPtr<SfxTabPage> SfxCommonPrintOptionsTabPage::Create( TabPageParent pParent, const SfxItemSet* rAttrSet ) { - return VclPtr<SfxCommonPrintOptionsTabPage>::Create( pParent, *rAttrSet ); + return VclPtr<SfxCommonPrintOptionsTabPage>::Create( pParent.pParent, *rAttrSet ); } vcl::Window* SfxCommonPrintOptionsTabPage::GetParentLabeledBy( const vcl::Window* pWindow ) const diff --git a/sfx2/source/dialog/securitypage.cxx b/sfx2/source/dialog/securitypage.cxx index 8633a5e0eff9..cea3583a98cc 100644 --- a/sfx2/source/dialog/securitypage.cxx +++ b/sfx2/source/dialog/securitypage.cxx @@ -415,9 +415,9 @@ IMPL_LINK_NOARG(SfxSecurityPage_Impl, ChangeProtectionPBHdl, Button*, void) } -VclPtr<SfxTabPage> SfxSecurityPage::Create( vcl::Window * pParent, const SfxItemSet * rItemSet ) +VclPtr<SfxTabPage> SfxSecurityPage::Create( TabPageParent pParent, const SfxItemSet * rItemSet ) { - return VclPtr<SfxSecurityPage>::Create( pParent, *rItemSet ); + return VclPtr<SfxSecurityPage>::Create( pParent.pParent, *rItemSet ); } diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx index d4db8a054e4a..c63a62e3fdc5 100644 --- a/sfx2/source/dialog/tabdlg.cxx +++ b/sfx2/source/dialog/tabdlg.cxx @@ -164,6 +164,17 @@ SfxTabPage::SfxTabPage(vcl::Window *pParent, const OString& rID, const OUString& { } +SfxTabPage::SfxTabPage(TabPageParent pParent, const OUString& rUIXMLDescription, const OString& rID, const SfxItemSet *rAttrSet) + : TabPage(Application::GetDefDialogParent()) //just drag this along hidden in this scenario + , pSet ( rAttrSet ) + , bHasExchangeSupport ( false ) + , pImpl ( new TabPageImpl ) + , m_xBuilder(pParent.pPage ? Application::CreateBuilder(pParent.pPage, rUIXMLDescription) + : Application::CreateInterimBuilder(pParent.pParent, rUIXMLDescription)) + , m_xContainer(m_xBuilder->weld_container(rID)) +{ +} + SfxTabPage::~SfxTabPage() { disposeOnce(); @@ -172,6 +183,8 @@ SfxTabPage::~SfxTabPage() void SfxTabPage::dispose() { pImpl.reset(); + m_xContainer.reset(); + m_xBuilder.reset(); TabPage::dispose(); } @@ -1107,7 +1120,7 @@ IMPL_LINK( SfxTabDialog, ActivatePageHdl, TabControl *, pTabCtrl, void ) if ( !pTabPage ) { if ( m_pSet ) - pTabPage = (pDataObject->fnCreatePage)( pTabCtrl, m_pSet ); + pTabPage = (pDataObject->fnCreatePage)( static_cast<vcl::Window*>(pTabCtrl), m_pSet ); else pTabPage = (pDataObject->fnCreatePage) ( pTabCtrl, CreateInputItemSet( nId ) ); diff --git a/sfx2/source/inc/documentfontsdialog.hxx b/sfx2/source/inc/documentfontsdialog.hxx index 4e1b12d6648e..486055954ab1 100644 --- a/sfx2/source/inc/documentfontsdialog.hxx +++ b/sfx2/source/inc/documentfontsdialog.hxx @@ -31,7 +31,7 @@ public: SfxDocumentFontsPage( vcl::Window* parent, const SfxItemSet& set ); virtual ~SfxDocumentFontsPage() override; virtual void dispose() override; - static VclPtr<SfxTabPage> Create( vcl::Window* parent, const SfxItemSet* set ); + static VclPtr<SfxTabPage> Create(TabPageParent parent, const SfxItemSet* set); protected: virtual bool FillItemSet( SfxItemSet* set ) override; virtual void Reset( const SfxItemSet* set ) override; diff --git a/sfx2/source/view/viewprn.cxx b/sfx2/source/view/viewprn.cxx index 580a4b4295dd..44cc9d509045 100644 --- a/sfx2/source/view/viewprn.cxx +++ b/sfx2/source/view/viewprn.cxx @@ -897,7 +897,7 @@ sal_uInt16 SfxViewShell::SetPrinter( SfxPrinter* /*pNewPrinter*/, SfxPrinterChan VclPtr<SfxTabPage> SfxViewShell::CreatePrintOptionsPage ( - vcl::Window* /*pParent*/, + TabPageParent /*pParent*/, const SfxItemSet& /*rOptions*/ ) { |