summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2012-09-27 22:02:40 +0200
committerJulien Nabet <serval2412@yahoo.fr>2012-09-27 22:18:05 +0200
commitc563ca3843387a2cc5a7a667856154ae2f13985b (patch)
treeb0ba798096552ccda4200303068951d2a93fef48
parent74e4137cf89d3e1e8b73853702636e3ff70a3b4e (diff)
Bin some newly unused methods
Change-Id: I1bbbdbb68f073d19b7d99b5ccb4985efd5bde80c
-rw-r--r--oox/inc/oox/ole/axcontrol.hxx7
-rw-r--r--oox/inc/oox/ole/vbacontrol.hxx2
-rw-r--r--oox/inc/oox/ole/vbamodule.hxx2
-rw-r--r--oox/source/ole/axcontrol.cxx10
-rw-r--r--oox/source/ole/vbacontrol.cxx5
-rw-r--r--oox/source/ole/vbamodule.cxx26
-rwxr-xr-xunusedcode.easy4
7 files changed, 0 insertions, 56 deletions
diff --git a/oox/inc/oox/ole/axcontrol.hxx b/oox/inc/oox/ole/axcontrol.hxx
index 285cb74f0e77..30187a470a2c 100644
--- a/oox/inc/oox/ole/axcontrol.hxx
+++ b/oox/inc/oox/ole/axcontrol.hxx
@@ -812,9 +812,6 @@ public:
virtual ApiControlType getControlType() const;
virtual void convertProperties( PropertyMap& rPropMap, const ControlConverter& rConv ) const;
- /** Returns the caption with the specified zero-based index. */
- ::rtl::OUString getCaption( sal_Int32 nIndex ) const;
-
private:
AxStringArray maCaptions; ///< Captions of all tabs.
sal_uInt32 mnBackColor; ///< Fill color.
@@ -906,10 +903,6 @@ public:
virtual ApiControlType getControlType() const;
virtual void convertProperties( PropertyMap& rPropMap, const ControlConverter& rConv ) const;
- /** Sets the tabstrip control model related to this multipage control.
- Contains all formatting attributes of the page tabs. */
- void setTabStripModel( const AxTabStripModelRef& rxTabStrip );
-
private:
AxTabStripModelRef mxTabStrip;
};
diff --git a/oox/inc/oox/ole/vbacontrol.hxx b/oox/inc/oox/ole/vbacontrol.hxx
index 8c56ac6d3b15..9edd454bbc05 100644
--- a/oox/inc/oox/ole/vbacontrol.hxx
+++ b/oox/inc/oox/ole/vbacontrol.hxx
@@ -123,8 +123,6 @@ public:
/** Returns the programmatical name of the control. */
::rtl::OUString getControlName() const;
- /** Returns the unique identifier of this control. */
- sal_Int32 getControlId() const;
/** Creates the UNO control model, inserts it into the passed container,
and converts all control properties. */
diff --git a/oox/inc/oox/ole/vbamodule.hxx b/oox/inc/oox/ole/vbamodule.hxx
index 65cd41a440cc..91f5b62a54c7 100644
--- a/oox/inc/oox/ole/vbamodule.hxx
+++ b/oox/inc/oox/ole/vbamodule.hxx
@@ -74,8 +74,6 @@ public:
const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >& rxDocObjectNA ) const;
private:
- void extractOleOverrideFromAttr( const rtl::OUString& rAttribute,
- const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >& rxOleNameOverrides ) const;
/** Reads and returns the VBA source code from the passed storage. */
::rtl::OUString readSourceCode( StorageBase& rVbaStrg ) const;
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
diff --git a/unusedcode.easy b/unusedcode.easy
index 71c68b7f0847..a4612b702373 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -87,11 +87,7 @@ jfw_plugin::VendorBase::createInstance()
oox::drawingml::TextListStyle::dump() const
oox::ole::AxFormPageModel::AxFormPageModel()
oox::ole::AxMultiPageModel::AxMultiPageModel()
-oox::ole::AxMultiPageModel::setTabStripModel(boost::shared_ptr<oox::ole::AxTabStripModel> const&)
oox::ole::AxTabStripModel::AxTabStripModel()
-oox::ole::AxTabStripModel::getCaption(int) const
-oox::ole::VbaFormControl::getControlId() const
-oox::ole::VbaModule::extractOleOverrideFromAttr(rtl::OUString const&, com::sun::star::uno::Reference<com::sun::star::container::XNameContainer> const&) const
oox::xls::BiffDrawingObjectBase::BiffDrawingObjectBase(oox::xls::WorksheetHelper const&)
sd::ClientBox::GetMinOutputSizePixel() const
sd::ClientBox::RemoveUnlocked()