diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-23 14:21:11 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-23 16:02:10 +0000 |
commit | ebf5e613a5bea74d6e9801224ab5c29a64b9b11c (patch) | |
tree | 41ede1d6cab776af257daa00984d7622bba464f3 /include/sfx2 | |
parent | 976ccb9374cf06af3f5699b567da753167bdf029 (diff) |
SfxNoLayoutSingleTabDialog not needed anymore
all single tab dialogs are .ui enabled now.
So now we can remove SfxNoLayoutSingleTabDialog and merge SfxSingleTabDialog
and ~SfxNoLayoutSingleTabDialogBase together
Change-Id: If0acc792d85b7d399572257d7e9b0e12993ba3fe
Diffstat (limited to 'include/sfx2')
-rw-r--r-- | include/sfx2/basedlgs.hxx | 53 |
1 files changed, 9 insertions, 44 deletions
diff --git a/include/sfx2/basedlgs.hxx b/include/sfx2/basedlgs.hxx index def7d091e5fd..33041fdd6e2c 100644 --- a/include/sfx2/basedlgs.hxx +++ b/include/sfx2/basedlgs.hxx @@ -178,21 +178,20 @@ struct SingleTabDlgImpl typedef sal_uInt16* (*GetTabPageRanges)(); // liefert internationale Which-Werte -class SFX2_DLLPUBLIC SfxSingleTabDialogBase : public SfxModalDialog +class SFX2_DLLPUBLIC SfxSingleTabDialog : public SfxModalDialog { public: - //layout ctors - SfxSingleTabDialogBase(Window *pParent, const SfxItemSet& rOptionsSet, - const OString& rID, const OUString& rUIXMLDescription); - SfxSingleTabDialogBase(Window *pParent, const SfxItemSet* pInSet, - const OString& rID, const OUString& rUIXMLDescription); + SfxSingleTabDialog(Window *pParent, const SfxItemSet& rOptionsSet, + const OString& rID = OString("SingleTabDialog"), + const OUString& rUIXMLDescription = OUString("sfx/ui/singletabdialog.ui")); - //non-layout ctors - SfxSingleTabDialogBase( Window* pParent, const SfxItemSet& rOptionsSet, sal_uInt16 nUniqueId ); - SfxSingleTabDialogBase( Window* pParent, sal_uInt16 nUniqueId, const SfxItemSet* pInSet = 0 ); + SfxSingleTabDialog(Window *pParent, const SfxItemSet* pInSet = 0, + const OString& rID = OString("SingleTabDialog"), + const OUString& rUIXMLDescription = OUString("sfx/ui/singletabdialog.ui")); - virtual ~SfxSingleTabDialogBase(); + virtual ~SfxSingleTabDialog(); + void SetTabPage(SfxTabPage* pTabPage, GetTabPageRanges pRangesFunc = 0, sal_uInt32 nSettingsId = 0); SfxTabPage* GetTabPage() const { return pImpl->m_pSfxPage; } OKButton* GetOKButton() const { return pOKBtn; } @@ -210,40 +209,6 @@ protected: DECL_DLLPRIVATE_LINK(OKHdl_Impl, void *); }; -class SFX2_DLLPUBLIC SfxSingleTabDialog : public SfxSingleTabDialogBase -{ -public: - SfxSingleTabDialog(Window *pParent, const SfxItemSet& rOptionsSet, - const OString& rID = OString("SingleTabDialog"), - const OUString& rUIXMLDescription = OUString("sfx/ui/singletabdialog.ui")) - : SfxSingleTabDialogBase(pParent, rOptionsSet, rID, rUIXMLDescription) - { - } - SfxSingleTabDialog(Window *pParent, const SfxItemSet* pInSet = 0, - const OString& rID = OString("SingleTabDialog"), - const OUString& rUIXMLDescription = OUString("sfx/ui/singletabdialog.ui")) - : SfxSingleTabDialogBase(pParent, pInSet, rID, rUIXMLDescription) - { - } - void setTabPage(SfxTabPage* pTabPage, GetTabPageRanges pRangesFunc = 0, sal_uInt32 nSettingsId = 0); -}; - -//Old school deprecated non-layout aware version -class SFX2_DLLPUBLIC SfxNoLayoutSingleTabDialog : public SfxSingleTabDialogBase -{ -public: - SfxNoLayoutSingleTabDialog(Window* pParent, const SfxItemSet& rOptionsSet, sal_uInt16 nUniqueId) - : SfxSingleTabDialogBase(pParent, rOptionsSet, nUniqueId) - { - } - SfxNoLayoutSingleTabDialog(Window* pParent, sal_uInt16 nUniqueId, const SfxItemSet* pInSet = 0) - : SfxSingleTabDialogBase(pParent, nUniqueId, pInSet) - { - } - ~SfxNoLayoutSingleTabDialog(); - void SetTabPage(SfxTabPage* pTabPage, GetTabPageRanges pRangesFunc = 0); -}; - #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |