From 44dc8746f3d521b73123522f345d0f676622c2b3 Mon Sep 17 00:00:00 2001 From: Noel Power Date: Fri, 24 Aug 2012 20:46:27 +0100 Subject: remove VBA_OOBUILD_HACK and friends Change-Id: I5c21a407bcae1b668976b94a757d564120973b1a --- vbahelper/source/msforms/vbacontrol.cxx | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'vbahelper/source') diff --git a/vbahelper/source/msforms/vbacontrol.cxx b/vbahelper/source/msforms/vbacontrol.cxx index b0425993d77d..6b1b5bba68c9 100644 --- a/vbahelper/source/msforms/vbacontrol.cxx +++ b/vbahelper/source/msforms/vbacontrol.cxx @@ -36,9 +36,7 @@ #include #include #include -#ifdef VBA_OOBUILD_HACK #include -#endif #include "vbacontrol.hxx" #include "vbacombobox.hxx" #include "vbabutton.hxx" @@ -281,7 +279,6 @@ ScVbaControl::getControlSource() throw (uno::RuntimeException) // #FIXME I *hate* having these upstream differences // but this is necessary until I manage to upstream other // dependant parts -#ifdef VBA_OOBUILD_HACK rtl::OUString sControlSource; uno::Reference< form::binding::XBindableValue > xBindable( m_xProps, uno::UNO_QUERY ); if ( xBindable.is() ) @@ -301,26 +298,18 @@ ScVbaControl::getControlSource() throw (uno::RuntimeException) } } return sControlSource; -#else - throw uno::RuntimeException( rtl::OUString( "getControlSource not supported" ), uno::Reference< uno::XInterface >()); // not supported -#endif } void SAL_CALL ScVbaControl::setControlSource( const rtl::OUString& _controlsource ) throw (uno::RuntimeException) { -#ifdef VBA_OOBUILD_HACK rtl::OUString sEmpty; svt::BindableControlHelper::ApplyListSourceAndBindableData( m_xModel, m_xProps, _controlsource, sEmpty ); -#else - throw uno::RuntimeException( rtl::OUString( "setControlSource not supported " ).concat( _controlsource ), uno::Reference< uno::XInterface >()); // not supported -#endif } rtl::OUString SAL_CALL ScVbaControl::getRowSource() throw (uno::RuntimeException) { -#ifdef VBA_OOBUILD_HACK rtl::OUString sRowSource; uno::Reference< form::binding::XListEntrySink > xListSink( m_xProps, uno::UNO_QUERY ); if ( xListSink.is() ) @@ -341,20 +330,13 @@ ScVbaControl::getRowSource() throw (uno::RuntimeException) } } return sRowSource; -#else - throw uno::RuntimeException( rtl::OUString( "getRowSource not supported" ), uno::Reference< uno::XInterface >()); // not supported -#endif } void SAL_CALL ScVbaControl::setRowSource( const rtl::OUString& _rowsource ) throw (uno::RuntimeException) { -#ifdef VBA_OOBUILD_HACK rtl::OUString sEmpty; svt::BindableControlHelper::ApplyListSourceAndBindableData( m_xModel, m_xProps, sEmpty, _rowsource ); -#else - throw uno::RuntimeException( rtl::OUString( "setRowSource not supported " ).concat( _rowsource ), uno::Reference< uno::XInterface >()); // not supported -#endif } rtl::OUString SAL_CALL -- cgit