factorise common code

Change-Id: I53ee3b7c99205046b25f437480d26e484ac2c340
This commit is contained in:
Lionel Elie Mamane 2013-04-21 07:59:53 +02:00
parent a16a4006e4
commit 24bdda09fb
2 changed files with 8 additions and 2 deletions

View file

@ -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();
}
//------------------------------------------------------------------

View file

@ -158,6 +158,7 @@ protected:
protected:
DECLARE_XCLONEABLE();
void init();
private:
void loadData( bool _bForce );