diff --git a/include/oox/ole/vbacontrol.hxx b/include/oox/ole/vbacontrol.hxx index 0de80153baed..e31ee4312f29 100644 --- a/include/oox/ole/vbacontrol.hxx +++ b/include/oox/ole/vbacontrol.hxx @@ -73,7 +73,8 @@ public: const ControlConverter& rConv, ApiControlType eCtrlType, sal_Int32 nCtrlIndex ) const; - + inline ::rtl::OUString getControlSource() { return maControlSource; } + inline ::rtl::OUString getRowSource() { return maRowSource; } protected: OUString maName; ///< Name of the control. OUString maTag; ///< User defined tag. diff --git a/oox/source/ole/vbacontrol.cxx b/oox/source/ole/vbacontrol.cxx index 073f64e676a5..6ce66159c78c 100644 --- a/oox/source/ole/vbacontrol.cxx +++ b/oox/source/ole/vbacontrol.cxx @@ -493,6 +493,7 @@ bool VbaFormControl::convertProperties( const Reference< XControlModel >& rxCtrl // convert all properties PropertyMap aPropMap; mxSiteModel->convertProperties( aPropMap, rConv, mxCtrlModel->getControlType(), nCtrlIndex ); + rConv.bindToSources( rxCtrlModel, mxSiteModel->getControlSource(), mxSiteModel->getRowSource() ); mxCtrlModel->convertProperties( aPropMap, rConv ); mxCtrlModel->convertSize( aPropMap, rConv ); PropertySet aPropSet( rxCtrlModel );