diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-12-27 14:00:28 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-12-27 14:03:19 +0000 |
commit | c6d1938f7559aa6293338b4d756ec7fc0bd79f63 (patch) | |
tree | 3b158c8c5e1f4040b6ca7e893a816fa5387960f5 | |
parent | aabee4ca0bc5dd9107a8f1a53349bd652c790627 (diff) |
it's a SfxSingleTabDialog not SfxNoLayoutSingleTabDialog
Change-Id: I0c86753fab551a18a9f0c62adc03a3d967947dbf
-rw-r--r-- | cui/source/inc/cuisrchdlg.hxx | 6 | ||||
-rw-r--r-- | cui/source/inc/measure.hxx | 8 | ||||
-rw-r--r-- | cui/source/options/cuisrchdlg.cxx | 11 | ||||
-rw-r--r-- | cui/source/tabpages/measure.cxx | 10 |
4 files changed, 7 insertions, 28 deletions
diff --git a/cui/source/inc/cuisrchdlg.hxx b/cui/source/inc/cuisrchdlg.hxx index eaa2a1409f15..1ab46e07d47a 100644 --- a/cui/source/inc/cuisrchdlg.hxx +++ b/cui/source/inc/cuisrchdlg.hxx @@ -44,10 +44,8 @@ class SvxJSearchOptionsDialog : public SfxSingleTabDialog SvxJSearchOptionsDialog & operator == ( const SvxJSearchOptionsDialog & ); public: - SvxJSearchOptionsDialog( Window *pParent, - const SfxItemSet& rOptionsSet, - sal_Int32 nInitialFlags ); - virtual ~SvxJSearchOptionsDialog(); + SvxJSearchOptionsDialog(Window *pParent, + const SfxItemSet& rOptionsSet, sal_Int32 nInitialFlags); // Window virtual void Activate(); diff --git a/cui/source/inc/measure.hxx b/cui/source/inc/measure.hxx index b4b7f2e8af56..02273faf2b3f 100644 --- a/cui/source/inc/measure.hxx +++ b/cui/source/inc/measure.hxx @@ -81,17 +81,15 @@ public: }; -/* Derived from SfxNoLayoutSingleTabDialog, in order to be able to be +/* Derived from SfxSingleTabDialog, in order to be able to be informed about virtual methods by the control. */ class SvxMeasureDialog : public SfxSingleTabDialog { public: - SvxMeasureDialog( Window* pParent, const SfxItemSet& rAttr, - const SdrView* pView ); - ~SvxMeasureDialog(); + SvxMeasureDialog(Window* pParent, const SfxItemSet& rAttr, + const SdrView* pView); }; - #endif // INCLUDED_CUI_SOURCE_INC_MEASURE_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cui/source/options/cuisrchdlg.cxx b/cui/source/options/cuisrchdlg.cxx index 5511875f5258..08ff0bf97e66 100644 --- a/cui/source/options/cuisrchdlg.cxx +++ b/cui/source/options/cuisrchdlg.cxx @@ -52,26 +52,19 @@ SvxJSearchOptionsDialog::SvxJSearchOptionsDialog(Window *pParent, : SfxSingleTabDialog(pParent, rOptionsSet) , nInitialTlFlags( nInitialFlags ) { + // pPage will be implicitly destroyed by the + // SfxSingleTabDialog destructor pPage = (SvxJSearchOptionsPage *) SvxJSearchOptionsPage::Create(get_content_area(), rOptionsSet ); setTabPage( pPage ); //! implicitly calls pPage->Reset(...)! pPage->EnableSaveOptions(false); } - -SvxJSearchOptionsDialog::~SvxJSearchOptionsDialog() -{ - // pPage will be implicitly destroyed by the - // SfxNoLayoutSingleTabDialog destructor -} - - void SvxJSearchOptionsDialog::Activate() { pPage->SetTransliterationFlags( nInitialTlFlags ); } - sal_Int32 SvxJSearchOptionsDialog::GetTransliterationFlags() const { return pPage->GetTransliterationFlags(); diff --git a/cui/source/tabpages/measure.cxx b/cui/source/tabpages/measure.cxx index 9f1c1af3f73c..245b1f63c997 100644 --- a/cui/source/tabpages/measure.cxx +++ b/cui/source/tabpages/measure.cxx @@ -75,16 +75,6 @@ SvxMeasureDialog::SvxMeasureDialog( Window* pParent, const SfxItemSet& rInAttrs, /************************************************************************* |* -|* Dtor -|* -\************************************************************************/ - -SvxMeasureDialog::~SvxMeasureDialog() -{ -} - -/************************************************************************* -|* |* Tabpage for changing measure-attributes |* \************************************************************************/ |