summaryrefslogtreecommitdiff
path: root/svtools
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
parent6f814b5f4ceca2f50edffd8b9023c613fffb9cdf (diff)
Added and fixed various vba API
Added OLEObject.LinkedCell Added ComboBox.LinkedCell Added Validation.Type Change-Id: I5ffc2212e689870d58ca99d1fbdfd7d101f8b50f
Diffstat (limited to 'svtools')
-rw-r--r--svtools/inc/svtools/bindablecontrolhelper.hxx2
-rw-r--r--svtools/source/misc/bindablecontrolhelper.cxx8
2 files changed, 6 insertions, 4 deletions
diff --git a/svtools/inc/svtools/bindablecontrolhelper.hxx b/svtools/inc/svtools/bindablecontrolhelper.hxx
index 15d0d0db1603..d9e4e7d7aa28 100644
--- a/svtools/inc/svtools/bindablecontrolhelper.hxx
+++ b/svtools/inc/svtools/bindablecontrolhelper.hxx
@@ -40,7 +40,7 @@ namespace svt
BindableControlHelper(); // never implemented
public:
- SVT_DLLPUBLIC static void 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 );
+ SVT_DLLPUBLIC static void 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 = 0 );
};
//........................................................................
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;
}
}