diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2014-04-04 14:48:47 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2014-04-14 12:31:46 +0200 |
commit | 07a43d8db4603cb9059383015f3c32a98f064fd6 (patch) | |
tree | 4ccc2e20c1c1b894e40efad075f0c594f2699a5e /oox | |
parent | 1c2f9e4189fd3532912c6bb940ed1c80d525fe83 (diff) |
SvxMSConvertOCXControlsRemoved never defined
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/ole/olehelper.cxx | 98 |
1 files changed, 0 insertions, 98 deletions
diff --git a/oox/source/ole/olehelper.cxx b/oox/source/ole/olehelper.cxx index 2d1bdd5a71e8..24d6e430229d 100644 --- a/oox/source/ole/olehelper.cxx +++ b/oox/source/ole/olehelper.cxx @@ -621,104 +621,6 @@ sal_Bool MSConvertOCXControls::WriteOCXStream( const Reference< XModel >& rxMode return sal_True; } -#ifdef SvxMSConvertOCXControlsRemoved -const Reference< com::sun::star::lang::XMultiServiceFactory > & MSConvertOCXControls::GetServiceFactory() -{ - if ( !mxServiceFactory.is() && mxModel.is() ) - mxServiceFactory.set( mxModel, UNO_QUERY ); - return mxServiceFactory; -} - -const Reference< XIndexContainer >& - MSConvertOCXControls::GetFormComps() -{ - if( !mxFormComps.is() ) - { - GetDrawPage(); - if( mxDrawPage.is() ) - { - Reference< XFormsSupplier > xFormsSupplier( mxDrawPage, - UNO_QUERY ); - OSL_ENSURE( xFormsSupplier.is(), - "not able to get XFormsSupplier from XDrawPage" ); - - Reference< XNameContainer > xNameCont = - xFormsSupplier->getForms(); - - OUString sStdName = "WW-Standard"; - OUString sName( sStdName ); - sal_uInt16 n = 0; - - while( xNameCont->hasByName( sName ) ) - { - sName = sStdName; - sName += OUString::number(++n); - } - - const Reference< XMultiServiceFactory > &rServiceFactory - = GetServiceFactory(); - if( !rServiceFactory.is() ) - return mxFormComps; - - Reference< XInterface > xCreate = - rServiceFactory->createInstance("com.sun.star.form.component.Form"); - if( xCreate.is() ) - { - Reference< XPropertySet > xFormPropSet( xCreate, - UNO_QUERY ); - - Any aTmp(&sName,getCppuType((OUString *)0)); - xFormPropSet->setPropertyValue( "Name", aTmp ); - - Reference< XForm > xForm( xCreate, UNO_QUERY ); - OSL_ENSURE(xForm.is(), "No Form?"); - - Reference< XIndexContainer > xForms( xNameCont, - UNO_QUERY ); - OSL_ENSURE( xForms.is(), "XForms not available" ); - - aTmp.setValue( &xForm, - ::getCppuType((Reference < XForm >*)0)); - xForms->insertByIndex( xForms->getCount(), aTmp ); - - mxFormComps = Reference< XIndexContainer > - (xCreate, UNO_QUERY); - } - } - } - - return mxFormComps; -} -const Reference< XDrawPage >& MSConvertOCXControls::GetDrawPage() -{ - if( !mxDrawPage.is() && mxModel.is() ) - { - Reference< XDrawPageSupplier > xTxtDoc(mxModel, UNO_QUERY); - OSL_ENSURE( xTxtDoc.is(),"no XDrawPageSupplier from XModel"); - mxDrawPage = xTxtDoc->getDrawPage(); - OSL_ENSURE( mxDrawPage.is(), "no XDrawPage" ); - } - return mxDrawPage; -} - -const Reference< XShapes >& MSConvertOCXControls::GetShapes() -{ - if( !mxShapes.is() ) - { - GetDrawPage(); - if( mxDrawPage.is() ) - { - - mxShapes = Reference< XShapes >(mxDrawPage, - UNO_QUERY); - OSL_ENSURE( mxShapes.is(), "no XShapes from XDrawPage" ); - } - } - return mxShapes; -} -#endif - - } // namespace ole } // namespace oox |