diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2020-03-04 16:04:08 +0100 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2020-05-14 13:46:09 +0200 |
commit | eaddcdf4fe79e9a1c393bd0ed737c898a7113844 (patch) | |
tree | a2e799426ade62fb08d98d6af3d8ca9bdfe6dbd6 /vcl | |
parent | 40e0b90266573c3531a610ead44da6063ee12edb (diff) |
jsdialog: send tab names
Change-Id: Iaae09ec6fc1af0de7f052b89a09ea184a023be70
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94182
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/control/tabctrl.cxx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx index 6f284f8e042f..cab39a8feb94 100644 --- a/vcl/source/control/tabctrl.cxx +++ b/vcl/source/control/tabctrl.cxx @@ -2184,6 +2184,24 @@ FactoryFunction TabControl::GetUITestFactory() const return TabControlUIObject::create; } +boost::property_tree::ptree TabControl::DumpAsPropertyTree() +{ + boost::property_tree::ptree aTree = Control::DumpAsPropertyTree(); + + boost::property_tree::ptree aTabs; + for(auto id : GetPageIDs()) + { + boost::property_tree::ptree aTab; + aTab.put("text", GetPageText(id)); + aTab.put("id", id); + aTabs.push_back(std::make_pair("", aTab)); + } + + aTree.add_child("tabs", aTabs); + + return aTree; +} + sal_uInt16 NotebookbarTabControlBase::m_nHeaderHeight = 0; IMPL_LINK_NOARG(NotebookbarTabControlBase, OpenMenu, Button*, void) |