diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2020-03-09 14:11:06 +0100 |
---|---|---|
committer | Szymon Kłos <eszkadev@gmail.com> | 2020-05-19 11:17:53 +0200 |
commit | 3b4f668d9027f03ec7ff45abdffe593d8cd2bf9a (patch) | |
tree | 281547ef5a92b1e9f323d718e94543ec0537b0b0 /include | |
parent | 7ff207662b459d0673f3b369c29c9b47da64589b (diff) |
jsdialog: handle nested tab pages
Change-Id: I04d5df55af0df18948730fcd9ee387abce77ac27
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94339
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/builderpage.hxx | 2 | ||||
-rw-r--r-- | include/vcl/jsdialog/jsdialogbuilder.hxx | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/include/vcl/builderpage.hxx b/include/vcl/builderpage.hxx index 6f721dde233a..c2ba9d4163a1 100644 --- a/include/vcl/builderpage.hxx +++ b/include/vcl/builderpage.hxx @@ -16,7 +16,7 @@ class VCL_DLLPUBLIC BuilderPage { public: BuilderPage(weld::Widget* pParent, weld::DialogController* pController, - const OUString& rUIXMLDescription, const OString& rID); + const OUString& rUIXMLDescription, const OString& rID, bool bIsMobile = false); virtual ~BuilderPage() COVERITY_NOEXCEPT_FALSE; /* The title of the page, in an Assistant the dialog may append this page title to the diff --git a/include/vcl/jsdialog/jsdialogbuilder.hxx b/include/vcl/jsdialog/jsdialogbuilder.hxx index e0d4bc2dcdc1..b375daf4f2b1 100644 --- a/include/vcl/jsdialog/jsdialogbuilder.hxx +++ b/include/vcl/jsdialog/jsdialogbuilder.hxx @@ -28,8 +28,12 @@ public: class VCL_DLLPUBLIC JSInstanceBuilder : public SalInstanceBuilder { vcl::LOKWindowId m_nWindowId; + /// used in case of tab pages where dialog is not a direct top level + VclPtr<vcl::Window> m_aParentDialog; + bool m_bHasTopLevelDialog; static std::map<vcl::LOKWindowId, WidgetMap>& GetLOKWeldWidgetsMap(); + static void InsertWindowToMap(int nWindowId); void RememberWidget(const OString& id, weld::Widget* pWidget); public: @@ -112,6 +116,7 @@ public: virtual void insert(int pos, const OUString& rStr, const OUString* pId, const OUString* pIconName, VirtualDevice* pImageSurface) override; virtual void remove(int pos) override; + virtual void set_active(int pos) override; }; class VCL_DLLPUBLIC JSComboBox : public JSWidget<SalInstanceComboBoxWithEdit, ::ComboBox> |