diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2012-09-27 22:02:40 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2012-09-27 22:18:05 +0200 |
commit | c563ca3843387a2cc5a7a667856154ae2f13985b (patch) | |
tree | b0ba798096552ccda4200303068951d2a93fef48 /oox/source/ole | |
parent | 74e4137cf89d3e1e8b73853702636e3ff70a3b4e (diff) |
Bin some newly unused methods
Change-Id: I1bbbdbb68f073d19b7d99b5ccb4985efd5bde80c
Diffstat (limited to 'oox/source/ole')
-rw-r--r-- | oox/source/ole/axcontrol.cxx | 10 | ||||
-rw-r--r-- | oox/source/ole/vbacontrol.cxx | 5 | ||||
-rw-r--r-- | oox/source/ole/vbamodule.cxx | 26 |
3 files changed, 0 insertions, 41 deletions
diff --git a/oox/source/ole/axcontrol.cxx b/oox/source/ole/axcontrol.cxx index 0190f7f98da2..8592ba6dc4f8 100644 --- a/oox/source/ole/axcontrol.cxx +++ b/oox/source/ole/axcontrol.cxx @@ -2319,11 +2319,6 @@ void AxTabStripModel::convertProperties( PropertyMap& rPropMap, const ControlCon AxFontDataModel::convertProperties( rPropMap, rConv ); } -OUString AxTabStripModel::getCaption( sal_Int32 nIndex ) const -{ - return ContainerHelper::getVectorElement( maCaptions, nIndex, OUString() ); -} - // ============================================================================ AxContainerModelBase::AxContainerModelBase( bool bFontSupport ) : @@ -2489,11 +2484,6 @@ void AxMultiPageModel::convertProperties( PropertyMap& rPropMap, const ControlCo AxContainerModelBase::convertProperties( rPropMap, rConv ); } -void AxMultiPageModel::setTabStripModel( const AxTabStripModelRef& rxTabStrip ) -{ - mxTabStrip = rxTabStrip; -} - // ============================================================================ AxUserFormModel::AxUserFormModel() diff --git a/oox/source/ole/vbacontrol.cxx b/oox/source/ole/vbacontrol.cxx index 8f684916f239..91474c688e01 100644 --- a/oox/source/ole/vbacontrol.cxx +++ b/oox/source/ole/vbacontrol.cxx @@ -363,11 +363,6 @@ OUString VbaFormControl::getControlName() const return mxSiteModel.get() ? mxSiteModel->getName() : OUString(); } -sal_Int32 VbaFormControl::getControlId() const -{ - return mxSiteModel.get() ? mxSiteModel->getId() : -1; -} - void VbaFormControl::createAndConvert( sal_Int32 nCtrlIndex, const Reference< XNameContainer >& rxParentNC, const ControlConverter& rConv ) const { diff --git a/oox/source/ole/vbamodule.cxx b/oox/source/ole/vbamodule.cxx index 0766f9798725..1a404de7d2dd 100644 --- a/oox/source/ole/vbamodule.cxx +++ b/oox/source/ole/vbamodule.cxx @@ -327,32 +327,6 @@ OUString VbaModule::readSourceCode( StorageBase& rVbaStrg ) const return aSourceCode.makeStringAndClear(); } -void VbaModule::extractOleOverrideFromAttr( const OUString& rAttribute, - const Reference< container::XNameContainer >& rxOleNameOverrides ) const -{ - // format of the attribute we are interested in is - // Attribute VB_Control = "ControlName", intString, MSForms, ControlTypeAsString - // e.g. - // Attribute VB_Control = "CommandButton1, 201, 19, MSForms, CommandButton" - OUString sControlAttribute = CREATE_OUSTRING( "Attribute VB_Control = \"" ); - if ( rxOleNameOverrides.is() && rAttribute.indexOf( sControlAttribute ) != -1 ) - { - OUString sRest = rAttribute.copy( sControlAttribute.getLength() ); - sal_Int32 nPos = sRest.indexOf( ',' ); - OUString sCntrlName = sRest.copy( 0, nPos ); - - sal_Int32 nCntrlId = sRest.copy( nPos + 1 ).copy( 0, sRest.indexOf( ',', nPos + 1) ).toInt32(); - OSL_TRACE("In module %s, assiging %d controlname %s", - rtl::OUStringToOString( maName, RTL_TEXTENCODING_UTF8 ).getStr(), nCntrlId, - rtl::OUStringToOString( sCntrlName, RTL_TEXTENCODING_UTF8 ).getStr() ); - if ( !rxOleNameOverrides->hasByName( maName ) ) - rxOleNameOverrides->insertByName( maName, Any( Reference< container::XIndexContainer> ( new OleIdToNameContainer ) ) ); - Reference< container::XIndexContainer > xIdToOleName; - if ( rxOleNameOverrides->getByName( maName ) >>= xIdToOleName ) - xIdToOleName->insertByIndex( nCntrlId, makeAny( sCntrlName ) ); - } -} - void VbaModule::createModule( const OUString& rVBASourceCode, const Reference< container::XNameContainer >& rxBasicLib, const Reference< container::XNameAccess >& rxDocObjectNA ) const |