summaryrefslogtreecommitdiff
path: root/include/sfx2/tabdlg.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-03-12 16:16:02 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-03-12 20:42:23 +0100
commit47cf97743e1c648d74e7759b1e5ed57acec2f5a2 (patch)
treea4a0924404e11b0f0984de94fafd3663d450151d /include/sfx2/tabdlg.hxx
parentbd0d23214fe16f1555479f987970939de354514b (diff)
insert an intermediate class to inherit from
Change-Id: I77cc250197658fed57175b775976a3194050c0da Reviewed-on: https://gerrit.libreoffice.org/69117 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/sfx2/tabdlg.hxx')
-rw-r--r--include/sfx2/tabdlg.hxx18
1 files changed, 7 insertions, 11 deletions
diff --git a/include/sfx2/tabdlg.hxx b/include/sfx2/tabdlg.hxx
index 33ff5175769e..e2395fd4fe1f 100644
--- a/include/sfx2/tabdlg.hxx
+++ b/include/sfx2/tabdlg.hxx
@@ -188,7 +188,7 @@ public:
virtual bool selectPageByUIXMLDescription(const OString& rUIXMLDescription) override;
};
-class SFX2_DLLPUBLIC SfxTabDialogController : public SfxDialogController
+class SFX2_DLLPUBLIC SfxTabDialogController : public SfxOkDialogController
{
protected:
std::unique_ptr<weld::Notebook> m_xTabCtrl;
@@ -269,13 +269,9 @@ public:
void SetInputSet( const SfxItemSet* pInSet );
const SfxItemSet* GetOutputItemSet() const { return m_pOutSet.get(); }
- const weld::Button& GetOKButton() const { return *m_xOKBtn; }
- weld::Button& GetOKButton() { return *m_xOKBtn; }
- const weld::Button& GetCancelButton() const { return *m_xCancelBtn; }
- weld::Button& GetCancelButton() { return *m_xCancelBtn; }
-
- const weld::Button* GetUserButton() const { return m_xUserBtn.get(); }
- weld::Button* GetUserButton() { return m_xUserBtn.get(); }
+ virtual weld::Button& GetOKButton() const override { return *m_xOKBtn; }
+ weld::Button& GetCancelButton() const { return *m_xCancelBtn; }
+ weld::Button* GetUserButton() const { return m_xUserBtn.get(); }
void RemoveResetButton();
void RemoveStandardButton();
@@ -283,7 +279,7 @@ public:
static bool runAsync(const std::shared_ptr<SfxTabDialogController>& rController,
const std::function<void(sal_Int32)>&);
- const SfxItemSet* GetExampleSet() const { return m_xExampleSet.get(); }
+ virtual const SfxItemSet* GetExampleSet() const override { return m_xExampleSet.get(); }
void SetApplyHandler(const Link<weld::Button&,void>& _rHdl);
@@ -333,10 +329,10 @@ protected:
}
SfxTabDialog* GetTabDialog() const;
- SfxTabDialogController* GetDialogController() const;
+ SfxOkDialogController* GetDialogController() const;
public:
void SetTabDialog(SfxTabDialog* pDialog);
- void SetDialogController(SfxTabDialogController* pDialog);
+ void SetDialogController(SfxOkDialogController* pDialog);
public:
virtual ~SfxTabPage() override;
virtual void dispose() override;