diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2020-03-09 14:11:06 +0100 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2020-05-18 14:48:09 +0200 |
commit | 92e0a646f958fd149c2a0d56e684e47ae52a8b5d (patch) | |
tree | 7f70d0a16b72e0693a35d43f59173857c15bbff6 /include | |
parent | d415bd55d9b3f96a908c6f15516dc1cf234364f3 (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/jsdialog/jsdialogbuilder.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
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> |