diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-09-20 10:48:14 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-09-20 13:58:04 +0200 |
commit | 6b5b2bbdf88aec54fc648a019e544addabdece6b (patch) | |
tree | e68b5cde19f16d3b022428c532d50e7c9bdd9e1f /include/sfx2/basedlgs.hxx | |
parent | tdf#119356 add input lists to tooltip handling (diff) | |
download | core-6b5b2bbdf88aec54fc648a019e544addabdece6b.tar.gz core-6b5b2bbdf88aec54fc648a019e544addabdece6b.zip |
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/sfx2/basedlgs.hxx')
-rw-r--r-- | include/sfx2/basedlgs.hxx | 33 |
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: */ |