diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2019-11-27 11:30:06 +0100 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2019-11-27 15:00:37 +0100 |
commit | fe8dc93fa6afa3b0ac7211058ea963ab97b15615 (patch) | |
tree | 46e4e1b9b000ace67cc6a5935c2343e854357a03 /svx | |
parent | be02eeffd9bf49891c0fff0d358c1d8a2bd877bd (diff) |
jsdiloag: export SvxColorBox to JSON
Change-Id: I1a1296ed2981867af6dac22ba03423a3e5f3d5b5
Reviewed-on: https://gerrit.libreoffice.org/83898
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/tbxctrls/tbcontrl.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx index 5427a40f60e3..6aa577dbf859 100644 --- a/svx/source/tbxctrls/tbcontrl.cxx +++ b/svx/source/tbxctrls/tbcontrl.cxx @@ -3773,6 +3773,13 @@ void SvxColorListBox::SelectEntry(const Color& rColor) ShowPreview(m_aSelectedColor); } +boost::property_tree::ptree SvxColorListBox::DumpAsPropertyTree() +{ + boost::property_tree::ptree aTree = MenuButton::DumpAsPropertyTree(); + aTree.put("type", "colorlistbox"); + return aTree; +} + ColorListBox::ColorListBox(std::unique_ptr<weld::MenuButton> pControl, weld::Window* pTopLevel) : m_xButton(std::move(pControl)) , m_pTopLevel(pTopLevel) |