summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/inc/swvset.hxx1
-rw-r--r--sw/source/ui/misc/insrule.cxx17
2 files changed, 15 insertions, 3 deletions
diff --git a/sw/source/ui/inc/swvset.hxx b/sw/source/ui/inc/swvset.hxx
index f2c8725fbccc..a4c59fcb9dfb 100644
--- a/sw/source/ui/inc/swvset.hxx
+++ b/sw/source/ui/inc/swvset.hxx
@@ -25,6 +25,7 @@ class SwRulerValueSet : public SvxBmpNumValueSet
public:
SwRulerValueSet( Window* pParent,
const ResId& rResId );
+ SwRulerValueSet( Window* pParent );
~SwRulerValueSet();
virtual void UserDraw( const UserDrawEvent& rUDEvt );
};
diff --git a/sw/source/ui/misc/insrule.cxx b/sw/source/ui/misc/insrule.cxx
index 4d865e6cdd7b..eecd57a9b977 100644
--- a/sw/source/ui/misc/insrule.cxx
+++ b/sw/source/ui/misc/insrule.cxx
@@ -100,10 +100,21 @@ IMPL_LINK(SwInsertGrfRulerDlg, SelectHdl, ValueSet*, pVS)
return 0;
}
-SwRulerValueSet::SwRulerValueSet( Window* pParent, const ResId& rResId ) :
- SvxBmpNumValueSet(pParent, rResId)
+SwRulerValueSet::SwRulerValueSet( Window* pParent, const ResId& rResId )
+ : SvxBmpNumValueSet(pParent, rResId)
{
- SetStyle( GetStyle() & ~WB_ITEMBORDER );
+ SetStyle(GetStyle() & ~WB_ITEMBORDER);
+}
+
+SwRulerValueSet::SwRulerValueSet(Window* pParent)
+ : SvxBmpNumValueSet(pParent)
+{
+ SetStyle(GetStyle() & ~WB_ITEMBORDER);
+}
+
+extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSwRulerValueSet(Window *pParent, VclBuilder::stringmap &)
+{
+ return new SwRulerValueSet(pParent);
}
SwRulerValueSet::~SwRulerValueSet()