summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-09-20 10:48:14 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-09-20 13:58:04 +0200
commit6b5b2bbdf88aec54fc648a019e544addabdece6b (patch)
treee68b5cde19f16d3b022428c532d50e7c9bdd9e1f /include
parentb613eeeb566adc8955248c31b94a7ed32ebba4d1 (diff)
weld SwDropCapsDlg
Change-Id: Ibd01c0fb54f0e3b361d5e1f196bfeb44a1fcb99c Reviewed-on: https://gerrit.libreoffice.org/60805 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/sfx2/basedlgs.hxx33
1 files changed, 33 insertions, 0 deletions
diff --git a/include/sfx2/basedlgs.hxx b/include/sfx2/basedlgs.hxx
index 58657fc58e8b..39f74dc024e8 100644
--- a/include/sfx2/basedlgs.hxx
+++ b/include/sfx2/basedlgs.hxx
@@ -27,6 +27,7 @@
#include <vcl/dialog.hxx>
#include <vcl/floatwin.hxx>
#include <vcl/timer.hxx>
+#include <vcl/weld.hxx>
class TabPage;
class SfxTabPage;
@@ -189,6 +190,38 @@ private:
std::unique_ptr<SingleTabDlgImpl> pImpl;
};
+class SFX2_DLLPUBLIC SfxSingleTabDialogController : public weld::GenericDialogController
+{
+private:
+ VclPtr<SfxTabPage> m_xSfxPage;
+ std::unique_ptr<SfxItemSet> m_xOutputSet;
+ const SfxItemSet* m_pInputSet;
+
+public:
+ SfxSingleTabDialogController(weld::Window *pParent, const SfxItemSet& rOptionsSet,
+ const OUString& rUIXMLDescription = OUString("sfx/ui/singletabdialog.ui"),
+ const OString& rID = OString("SingleTabDialog"));
+
+ virtual weld::Container* get_content_area() { return m_xContainer.get(); }
+
+ virtual ~SfxSingleTabDialogController() override;
+
+ void SetTabPage(SfxTabPage* pTabPage);
+ SfxTabPage* GetTabPage() const { return m_xSfxPage; }
+ weld::Button& GetOKButton() const { return *m_xOKBtn; }
+
+ const SfxItemSet* GetOutputItemSet() const { return m_xOutputSet.get(); }
+ const SfxItemSet* GetInputItemSet() const { return m_pInputSet; }
+
+protected:
+ std::unique_ptr<weld::Container> m_xContainer;
+ std::unique_ptr<weld::Button> m_xOKBtn;
+ std::unique_ptr<weld::Button> m_xHelpBtn;
+
+ void CreateOutputItemSet(const SfxItemSet& rInput);
+ DECL_DLLPRIVATE_LINK(OKHdl_Impl, weld::Button&, void);
+};
+
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */