diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2013-04-21 07:59:53 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2013-04-22 17:51:20 +0200 |
commit | 24bdda09fb2312239be0a791fa71c28022a33d51 (patch) | |
tree | 2eaae78d16c1b67d3dd6c3f6baed6074414b1a33 /forms | |
parent | a16a4006e40bdb2cb4671846295fe2bf5a856e68 (diff) |
factorise common code
Change-Id: I53ee3b7c99205046b25f437480d26e484ac2c340
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/component/ListBox.cxx | 9 | ||||
-rw-r--r-- | forms/source/component/ListBox.hxx | 1 |
2 files changed, 8 insertions, 2 deletions
diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx index 5b75332b090a..e6c6bb32a3ce 100644 --- a/forms/source/component/ListBox.cxx +++ b/forms/source/component/ListBox.cxx @@ -147,6 +147,11 @@ namespace frm ).getTypes(); } + // stuff common to all constructors + void OListBoxModel::init() + { + startAggregatePropertyListening( PROPERTY_STRINGITEMLIST ); + } DBG_NAME(OListBoxModel); //------------------------------------------------------------------ @@ -166,7 +171,7 @@ namespace frm m_aBoundColumn <<= (sal_Int16)1; initValueProperty( PROPERTY_SELECT_SEQ, PROPERTY_ID_SELECT_SEQ); - startAggregatePropertyListening( PROPERTY_STRINGITEMLIST ); + init(); } //------------------------------------------------------------------ @@ -185,7 +190,7 @@ namespace frm { DBG_CTOR(OListBoxModel,NULL); - startAggregatePropertyListening( PROPERTY_STRINGITEMLIST ); + init(); } //------------------------------------------------------------------ diff --git a/forms/source/component/ListBox.hxx b/forms/source/component/ListBox.hxx index 590a9cbd8577..51cf5a8fc016 100644 --- a/forms/source/component/ListBox.hxx +++ b/forms/source/component/ListBox.hxx @@ -158,6 +158,7 @@ protected: protected: DECLARE_XCLONEABLE(); + void init(); private: void loadData( bool _bForce ); |