summaryrefslogtreecommitdiff
path: root/include/sfx2/basedlgs.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/basedlgs.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/basedlgs.hxx')
-rw-r--r--include/sfx2/basedlgs.hxx19
1 files changed, 17 insertions, 2 deletions
diff --git a/include/sfx2/basedlgs.hxx b/include/sfx2/basedlgs.hxx
index fc0a436301c3..0b3d526888b5 100644
--- a/include/sfx2/basedlgs.hxx
+++ b/include/sfx2/basedlgs.hxx
@@ -223,7 +223,20 @@ private:
std::unique_ptr<SingleTabDlgImpl> pImpl;
};
-class SFX2_DLLPUBLIC SfxSingleTabDialogController : public SfxDialogController
+class SFX2_DLLPUBLIC SfxOkDialogController : public SfxDialogController
+{
+public:
+ SfxOkDialogController(weld::Widget* pParent, const OUString& rUIXMLDescription,
+ const OString& rID)
+ : SfxDialogController(pParent, rUIXMLDescription, rID)
+ {
+ }
+
+ virtual weld::Button& GetOKButton() const = 0;
+ virtual const SfxItemSet* GetExampleSet() const = 0;
+};
+
+class SFX2_DLLPUBLIC SfxSingleTabDialogController : public SfxOkDialogController
{
private:
std::unique_ptr<SfxItemSet> m_xOutputSet;
@@ -239,7 +252,9 @@ public:
virtual ~SfxSingleTabDialogController() override;
void SetTabPage(SfxTabPage* pTabPage);
- weld::Button& GetOKButton() const { return *m_xOKBtn; }
+
+ virtual weld::Button& GetOKButton() const override { return *m_xOKBtn; }
+ virtual const SfxItemSet* GetExampleSet() const override { return nullptr; }
const SfxItemSet* GetOutputItemSet() const { return m_xOutputSet.get(); }
const SfxItemSet* GetInputItemSet() const { return m_pInputSet; }