summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2019-11-27 11:30:06 +0100
committerSzymon Kłos <szymon.klos@collabora.com>2019-11-27 19:54:47 +0100
commit6975fcbafcdb19d66fc95c5746798cb5a4b31b72 (patch)
treea25734e267cef1108be4f3c7f77535eda613b0d6 /svx
parent0d1248a080ed573aba289ac64bdf77dcc6a89ce3 (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> (cherry picked from commit fe8dc93fa6afa3b0ac7211058ea963ab97b15615) Reviewed-on: https://gerrit.libreoffice.org/83915 Tested-by: Jenkins
Diffstat (limited to 'svx')
-rw-r--r--svx/source/tbxctrls/tbcontrl.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx
index 4a14723c23e7..564f7f43b2e2 100644
--- a/svx/source/tbxctrls/tbcontrl.cxx
+++ b/svx/source/tbxctrls/tbcontrl.cxx
@@ -4108,6 +4108,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)