summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-05-04 20:45:39 +0100
committerMichael Meeks <michael.meeks@suse.com>2013-05-20 11:33:13 +0100
commit349d921497b83bb5b00c316b939423301b7dddcb (patch)
treee04cf42383f21f65a0c4dab52c89485e2bfa5b90
parent35aa48d80b4b800d408d26bd72fbdfd711abbb6f (diff)
adjust .ui widgets for centralized Color ValueSets
Change-Id: Ie6b86a2a48e6697f816e9975b6e34491ab0ad17e
-rw-r--r--extras/source/glade/libreoffice-catalog.xml.in3
-rw-r--r--svx/source/tbxctrls/SvxColorValueSet.cxx16
2 files changed, 19 insertions, 0 deletions
diff --git a/extras/source/glade/libreoffice-catalog.xml.in b/extras/source/glade/libreoffice-catalog.xml.in
index 58b99ac1c9e6..91a087d7fee7 100644
--- a/extras/source/glade/libreoffice-catalog.xml.in
+++ b/extras/source/glade/libreoffice-catalog.xml.in
@@ -78,6 +78,9 @@
<glade-widget-class title="ValueSet" name="svtlo-ValueSet"
generic-name="Set of Value Options" parent="GtkDrawingArea"
icon-name="widget-gtk-drawingarea"/>
+ <glade-widget-class title="ValueSet" name="svxlo-SvxColorValueSet"
+ generic-name="Set of Value Options" parent="GtkDrawingArea"
+ icon-name="widget-gtk-drawingarea"/>
<glade-widget-class title="ValueSet" name="swuilo-ColumnValueSet"
generic-name="Set of Value Options" parent="GtkDrawingArea"
icon-name="widget-gtk-drawingarea"/>
diff --git a/svx/source/tbxctrls/SvxColorValueSet.cxx b/svx/source/tbxctrls/SvxColorValueSet.cxx
index 34dfa6c07224..4363fa0da1fd 100644
--- a/svx/source/tbxctrls/SvxColorValueSet.cxx
+++ b/svx/source/tbxctrls/SvxColorValueSet.cxx
@@ -19,6 +19,7 @@
#include <svx/SvxColorValueSet.hxx>
#include <svx/xtable.hxx>
#include <svtools/accessibilityoptions.hxx>
+#include <vcl/builder.hxx>
//////////////////////////////////////////////////////////////////////////////
@@ -27,6 +28,21 @@ SvxColorValueSet::SvxColorValueSet(Window* _pParent, WinBits nWinStyle)
{
}
+extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSvxColorValueSet(Window *pParent, VclBuilder::stringmap &rMap)
+{
+ WinBits nWinBits = WB_TABSTOP;
+
+ VclBuilder::stringmap::iterator aFind = rMap.find(OString("border"));
+ if (aFind != rMap.end())
+ {
+ if (toBool(aFind->second))
+ nWinBits |= WB_BORDER;
+ rMap.erase(aFind);
+ }
+
+ return new SvxColorValueSet(pParent, nWinBits);
+}
+
SvxColorValueSet::SvxColorValueSet(Window* _pParent, const ResId& rResId)
: ValueSet(_pParent, rResId)
{