summaryrefslogtreecommitdiffstats
path: root/svtools/source
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2013-04-05 09:45:38 +0100
committerNoel Power <noel.power@suse.com>2013-04-05 17:15:01 +0100
commit3ffd86188b470fa7ebd9e6d10678279a1f63a81c (patch)
tree90e65f9c15873c0bddf54509f5f0f1444000556d /svtools/source
parentprepend Validation.Formula1 results with '=' for anything not a address (diff)
downloadcore-3ffd86188b470fa7ebd9e6d10678279a1f63a81c.tar.gz
core-3ffd86188b470fa7ebd9e6d10678279a1f63a81c.zip
Added and fixed various vba API
Added OLEObject.LinkedCell Added ComboBox.LinkedCell Added Validation.Type Change-Id: I5ffc2212e689870d58ca99d1fbdfd7d101f8b50f
Diffstat (limited to 'svtools/source')
-rw-r--r--svtools/source/misc/bindablecontrolhelper.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/svtools/source/misc/bindablecontrolhelper.cxx b/svtools/source/misc/bindablecontrolhelper.cxx
index bdba8a91b9da..904d2b5d768c 100644
--- a/svtools/source/misc/bindablecontrolhelper.cxx
+++ b/svtools/source/misc/bindablecontrolhelper.cxx
@@ -67,7 +67,7 @@ bool lcl_isNamedRange( const rtl::OUString& sAddress, const uno::Reference< fram
void
-BindableControlHelper::ApplyListSourceAndBindableData( const com::sun::star::uno::Reference< com::sun::star::frame::XModel >& xModel, const com::sun::star::uno::Reference< com::sun::star::uno::XInterface >& rObj, const rtl::OUString& rsCtrlSource, const rtl::OUString& rsRowSource )
+BindableControlHelper::ApplyListSourceAndBindableData( const com::sun::star::uno::Reference< com::sun::star::frame::XModel >& xModel, const com::sun::star::uno::Reference< com::sun::star::uno::XInterface >& rObj, const rtl::OUString& rsCtrlSource, const rtl::OUString& rsRowSource, sal_uInt16 nRefTab )
{
// XBindable etc.
uno::Reference< lang::XMultiServiceFactory > xFac;
@@ -87,7 +87,8 @@ BindableControlHelper::ApplyListSourceAndBindableData( const com::sun::star::uno
{
// we need this service to properly convert XL notation also
// Should be easy to extend
- xConvertor->setPropertyValue( "XL_A1_Representation", uno::makeAny( rsCtrlSource ) );
+ xConvertor->setPropertyValue( "ReferenceSheet", uno::makeAny( nRefTab ) );
+ xConvertor->setPropertyValue( "XLA1Representation", uno::makeAny( rsCtrlSource ) );
xConvertor->getPropertyValue( "Address" ) >>= aAddress;
}
@@ -119,7 +120,8 @@ BindableControlHelper::ApplyListSourceAndBindableData( const com::sun::star::uno
{
// we need this service to properly convert XL notation also
// Should be easy to extend
- xConvertor->setPropertyValue( "XL_A1_Representation", uno::makeAny( rsRowSource ) );
+ xConvertor->setPropertyValue( "ReferenceSheet", uno::makeAny( nRefTab ) );
+ xConvertor->setPropertyValue( "XLA1Representation", uno::makeAny( rsRowSource ) );
xConvertor->getPropertyValue( "Address" ) >>= aAddress;
}
}