diff options
Diffstat (limited to 'sc/source/ui/attrdlg')
-rw-r--r-- | sc/source/ui/attrdlg/scdlgfact.cxx | 10 | ||||
-rw-r--r-- | sc/source/ui/attrdlg/scdlgfact.hxx | 12 |
2 files changed, 15 insertions, 7 deletions
diff --git a/sc/source/ui/attrdlg/scdlgfact.cxx b/sc/source/ui/attrdlg/scdlgfact.cxx index a2b4e4c2b02f..f957e9f9af1e 100644 --- a/sc/source/ui/attrdlg/scdlgfact.cxx +++ b/sc/source/ui/attrdlg/scdlgfact.cxx @@ -113,7 +113,10 @@ short AbstractScDeleteCellDlg_Impl::Execute() } //for dataform -IMPL_ABSTDLG_BASE(AbstractScDataFormDlg_Impl); +short AbstractScDataFormDlg_Impl::Execute() +{ + return m_xDlg->run(); +} short AbstractScDeleteContentsDlg_Impl::Execute() { @@ -797,11 +800,10 @@ VclPtr<AbstractScDeleteCellDlg> ScAbstractDialogFactory_Impl::CreateScDeleteCell return VclPtr<AbstractScDeleteCellDlg_Impl>::Create(std::make_unique<ScDeleteCellDlg>(pParent, bDisallowCellMove)); } -VclPtr<AbstractScDataFormDlg> ScAbstractDialogFactory_Impl::CreateScDataFormDlg(vcl::Window* pParent, +VclPtr<AbstractScDataFormDlg> ScAbstractDialogFactory_Impl::CreateScDataFormDlg(weld::Window* pParent, ScTabViewShell* pTabViewShell) { - VclPtr<ScDataFormDlg> pDlg = VclPtr<ScDataFormDlg>::Create(pParent, pTabViewShell); - return VclPtr<AbstractScDataFormDlg_Impl>::Create(pDlg); + return VclPtr<AbstractScDataFormDlg_Impl>::Create(std::make_unique<ScDataFormDlg>(pParent, pTabViewShell)); } VclPtr<AbstractScDeleteContentsDlg> ScAbstractDialogFactory_Impl::CreateScDeleteContentsDlg(weld::Window* pParent) diff --git a/sc/source/ui/attrdlg/scdlgfact.hxx b/sc/source/ui/attrdlg/scdlgfact.hxx index dcf1566d60c9..e087ad7dade6 100644 --- a/sc/source/ui/attrdlg/scdlgfact.hxx +++ b/sc/source/ui/attrdlg/scdlgfact.hxx @@ -204,7 +204,14 @@ public: //for dataform class AbstractScDataFormDlg_Impl : public AbstractScDataFormDlg { - DECL_ABSTDLG_BASE(AbstractScDataFormDlg_Impl,ScDataFormDlg); + std::unique_ptr<ScDataFormDlg> m_xDlg; +public: + explicit AbstractScDataFormDlg_Impl(std::unique_ptr<ScDataFormDlg> p) + : m_xDlg(std::move(p)) + { + } + virtual short Execute() override; + }; class AbstractScDeleteContentsDlg_Impl : public AbstractScDeleteContentsDlg @@ -612,8 +619,7 @@ public: virtual VclPtr<AbstractScDeleteCellDlg> CreateScDeleteCellDlg(weld::Window* pParent, bool bDisallowCellMove ) override; //for dataform - virtual VclPtr<AbstractScDataFormDlg> CreateScDataFormDlg(vcl::Window* pParent, - ScTabViewShell* pTabViewShell) override; + virtual VclPtr<AbstractScDataFormDlg> CreateScDataFormDlg(weld::Window* pParent, ScTabViewShell* pTabViewShell) override; virtual VclPtr<AbstractScDeleteContentsDlg> CreateScDeleteContentsDlg(weld::Window* pParent) override; |