Kaydet (Commit) 349d9214 authored tarafından Caolán McNamara's avatar Caolán McNamara Kaydeden (comit) Michael Meeks

adjust .ui widgets for centralized Color ValueSets

Change-Id: Ie6b86a2a48e6697f816e9975b6e34491ab0ad17e
üst 35aa48d8
...@@ -78,6 +78,9 @@ ...@@ -78,6 +78,9 @@
<glade-widget-class title="ValueSet" name="svtlo-ValueSet" <glade-widget-class title="ValueSet" name="svtlo-ValueSet"
generic-name="Set of Value Options" parent="GtkDrawingArea" generic-name="Set of Value Options" parent="GtkDrawingArea"
icon-name="widget-gtk-drawingarea"/> 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" <glade-widget-class title="ValueSet" name="swuilo-ColumnValueSet"
generic-name="Set of Value Options" parent="GtkDrawingArea" generic-name="Set of Value Options" parent="GtkDrawingArea"
icon-name="widget-gtk-drawingarea"/> icon-name="widget-gtk-drawingarea"/>
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include <svx/SvxColorValueSet.hxx> #include <svx/SvxColorValueSet.hxx>
#include <svx/xtable.hxx> #include <svx/xtable.hxx>
#include <svtools/accessibilityoptions.hxx> #include <svtools/accessibilityoptions.hxx>
#include <vcl/builder.hxx>
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
...@@ -27,6 +28,21 @@ SvxColorValueSet::SvxColorValueSet(Window* _pParent, WinBits nWinStyle) ...@@ -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) SvxColorValueSet::SvxColorValueSet(Window* _pParent, const ResId& rResId)
: ValueSet(_pParent, rResId) : ValueSet(_pParent, rResId)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment