Kaydet (Commit) 60397e84 authored tarafından Elton Chung's avatar Elton Chung Kaydeden (comit) Michael Meeks

Remove unused code

üst abc235e7
......@@ -128,10 +128,6 @@ public:
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >&
getComponentContext() const;
/** Returns the component service factory (always existing). */
const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiComponentFactory >&
getComponentFactory() const;
/** Returns the multi service factory of the component (always existing). */
const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >&
getServiceFactory() const;
......@@ -156,10 +152,6 @@ public:
const ::com::sun::star::uno::Reference< ::com::sun::star::task::XStatusIndicator >&
getStatusIndicator() const;
/** Returns the status interaction handler (may be null). */
const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >&
getInteractionHandler() const;
/** Returns the media descriptor. */
::comphelper::MediaDescriptor& getMediaDescriptor() const;
......
......@@ -87,8 +87,6 @@ public:
/** Returns the external target of the relation with the passed relation identifier. */
::rtl::OUString getExternalTargetFromRelId( const ::rtl::OUString& rRelId ) const;
/** Returns the external target of the first relation with the passed type. */
::rtl::OUString getExternalTargetFromFirstType( const ::rtl::OUString& rType ) const;
/** Returns the full fragment path for the target of the passed relation. */
::rtl::OUString getFragmentPathFromRelation( const Relation& rRelation ) const;
......
......@@ -89,9 +89,6 @@ typedef ::boost::shared_ptr< TableProperties > TablePropertiesPtr;
// ============================================================================
/** converts the attributes from an CT_Point2D into an awt Point with 1/100th mm */
com::sun::star::awt::Point GetPoint2D( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastAttributeList >& xAttributes );
/** converts the attributes from an CT_TLPoint into an awt Point with 1/1000% */
com::sun::star::awt::Point GetPointPercent( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastAttributeList >& xAttribs );
......@@ -102,11 +99,6 @@ com::sun::star::awt::Size GetSize2D( const ::com::sun::star::uno::Reference< ::c
/** converts the attributes from a CT_RelativeRect to an IntegerRectangle2D */
com::sun::star::geometry::IntegerRectangle2D GetRelativeRect( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastAttributeList >& xAttributes );
/** converts an emu string into 1/100th mmm but constrain as per ST_TextMargin
* see 5.1.12.73
*/
sal_Int32 GetTextMargin( const ::rtl::OUString& sValue );
/** converts EMUs into 1/100th mmm */
sal_Int32 GetCoordinate( sal_Int32 nValue );
......@@ -126,8 +118,6 @@ float GetTextSize( const ::rtl::OUString& rValue );
sal_Int32 GetTextSpacingPoint( const ::rtl::OUString& sValue );
sal_Int32 GetTextSpacingPoint( const sal_Int32 nValue );
::com::sun::star::drawing::TextVerticalAdjust GetTextVerticalAdjust( sal_Int32 nToken );
/** */
::com::sun::star::style::TabAlign GetTabAlign( ::sal_Int32 aToken );
......
......@@ -168,13 +168,6 @@ public:
*/
::rtl::OString readNulCharArray();
/** Reads a NUL-terminated byte character array and returns a Unicode string.
@param eTextEnc
The text encoding used to create the Unicode string.
*/
::rtl::OUString readNulCharArrayUC( rtl_TextEncoding eTextEnc );
/** Reads a NUL-terminated Unicode character array and returns the string.
*/
::rtl::OUString readNulUnicodeArray();
......
......@@ -259,11 +259,6 @@ const Reference< XComponentContext >& FilterBase::getComponentContext() const
return mxImpl->mxComponentContext;
}
const Reference< XMultiComponentFactory >& FilterBase::getComponentFactory() const
{
return mxImpl->mxComponentFactory;
}
const Reference< XMultiServiceFactory >& FilterBase::getServiceFactory() const
{
return mxImpl->mxServiceFactory;
......@@ -294,11 +289,6 @@ const Reference< XStatusIndicator >& FilterBase::getStatusIndicator() const
return mxImpl->mxStatusIndicator;
}
const Reference< XInteractionHandler >& FilterBase::getInteractionHandler() const
{
return mxImpl->mxInteractionHandler;
}
MediaDescriptor& FilterBase::getMediaDescriptor() const
{
return mxImpl->maMediaDesc;
......
......@@ -92,12 +92,6 @@ OUString Relations::getExternalTargetFromRelId( const OUString& rRelId ) const
return (pRelation && pRelation->mbExternal) ? pRelation->maTarget : OUString();
}
OUString Relations::getExternalTargetFromFirstType( const OUString& rType ) const
{
const Relation* pRelation = getRelationFromFirstType( rType );
return (pRelation && pRelation->mbExternal) ? pRelation->maTarget : OUString();
}
OUString Relations::getFragmentPathFromRelation( const Relation& rRelation ) const
{
// no target, no fragment path
......
......@@ -344,16 +344,6 @@ void Diagram::addTo( const ShapePtr & pParentShape )
mpLayout->getNode()->accept( aCreationVisitor );
}
OUString Diagram::getLayoutId() const
{
OUString sLayoutId;
if( mpLayout )
{
sLayoutId = mpLayout->getUniqueId();
}
return sLayoutId;
}
uno::Reference<xml::dom::XDocument> loadFragment(
core::XmlFilterBase& rFilter,
const rtl::Reference< core::FragmentHandler >& rxHandler )
......
......@@ -302,7 +302,6 @@ public:
const DiagramColorMap& getColors() const { return maColors; }
void addTo( const ShapePtr & pShape );
::rtl::OUString getLayoutId() const;
private:
void build( );
DiagramDataPtr mpData;
......
......@@ -47,23 +47,6 @@ namespace drawingml {
// ============================================================================
/** converts an emu string into 1/100th mmm but constrain as per ST_TextMargin
* see 5.1.12.73
*/
sal_Int32 GetTextMargin( const OUString& sValue )
{
sal_Int32 nRet = 0;
if( !::sax::Converter::convertNumber( nRet, sValue ) )
nRet = 0;
else if( nRet < 0 )
nRet = 0;
else if( nRet > 51206400 )
nRet = 51206400;
nRet /= 360;
return nRet;
}
/** converts EMUs into 1/100th mmm */
sal_Int32 GetCoordinate( sal_Int32 nValue )
{
......@@ -97,12 +80,6 @@ double GetPositiveFixedPercentage( const OUString& sValue )
// --------------------------------------------------------------------
/** converts the attributes from an CT_Point2D into an awt Point with 1/100thmm */
Point GetPoint2D( const Reference< XFastAttributeList >& xAttribs )
{
return Point( GetCoordinate( xAttribs->getOptionalValue( XML_x ) ), GetCoordinate( xAttribs->getOptionalValue( XML_y ) ) );
}
/** converts the attributes from an CT_TLPoint into an awt Point with 1/1000% */
Point GetPointPercent( const Reference< XFastAttributeList >& xAttribs )
{
......@@ -136,22 +113,6 @@ sal_Int32 GetTextSpacingPoint( const sal_Int32 nValue )
return ( nValue * 254 + 360 ) / 720;
}
TextVerticalAdjust GetTextVerticalAdjust( sal_Int32 nToken )
{
TextVerticalAdjust rVal = TextVerticalAdjust_TOP;
switch( nToken ) {
case XML_b:
rVal = TextVerticalAdjust_BOTTOM;
break;
case XML_ctr:
rVal = TextVerticalAdjust_CENTER;
break;
}
return rVal;
}
float GetFontHeight( sal_Int32 nHeight )
{
// convert 1/100 points to points
......
......@@ -65,11 +65,6 @@ OString BinaryInputStream::readNulCharArray()
return aBuffer.makeStringAndClear();
}
OUString BinaryInputStream::readNulCharArrayUC( rtl_TextEncoding eTextEnc )
{
return OStringToOUString( readNulCharArray(), eTextEnc );
}
OUString BinaryInputStream::readNulUnicodeArray()
{
OUStringBuffer aBuffer;
......
......@@ -1267,18 +1267,14 @@ ooo::vba::extractIntFromAny(com::sun::star::uno::Any const&, int)
oox::(anonymous namespace)::GenericPropertySet::GenericPropertySet()
oox::AttributeList::getHyperHex(int, long) const
oox::AttributeList::getUnsignedHex(int, unsigned int) const
oox::BinaryInputStream::readNulCharArrayUC(unsigned short)
oox::ContainerHelper::insertByIndex(com::sun::star::uno::Reference<com::sun::star::container::XIndexContainer> const&, int, com::sun::star::uno::Any const&)
oox::GraphicHelper::convertScreenPixelToHmm(com::sun::star::awt::Point const&) const
oox::ObjectContainer::getObject(rtl::OUString const&) const
oox::PropertyMap::dump()
oox::PropertyMap::getProperty(int) const
oox::PropertySet::getProperties(com::sun::star::uno::Sequence<com::sun::star::uno::Any>&, com::sun::star::uno::Sequence<rtl::OUString> const&) const
oox::core::FilterBase::getComponentFactory() const
oox::core::FilterBase::getInteractionHandler() const
oox::core::PowerPointExport::WriteAnimationNodeCommonPropsEnd(boost::shared_ptr<sax_fastparser::FastSerializerHelper>)
oox::core::PowerPointExport::WriteTextStyles(boost::shared_ptr<sax_fastparser::FastSerializerHelper>)
oox::core::Relations::getExternalTargetFromFirstType(rtl::OUString const&) const
oox::core::XmlFilterBase::getChartConverter()
oox::drawingml::ChartExport::exportDataSeq(com::sun::star::uno::Reference<com::sun::star::chart2::data::XDataSequence> const&, int)
oox::drawingml::ChartExport::exportXAxis(oox::drawingml::AxisIdPair)
......@@ -1286,11 +1282,7 @@ oox::drawingml::ChartExport::exportYAxis(oox::drawingml::AxisIdPair)
oox::drawingml::ColorPropertySet::getColor()
oox::drawingml::ColorPropertySet::setColor(int)
oox::drawingml::CustomShapeProperties::getValue(std::__debug::vector<oox::drawingml::CustomShapeGuide, std::allocator<oox::drawingml::CustomShapeGuide> > const&, unsigned int) const
oox::drawingml::Diagram::getLayoutId() const
oox::drawingml::DiagramLayout::layout(std::__debug::vector<oox::drawingml::dgm::Point, std::allocator<oox::drawingml::dgm::Point> > const&, com::sun::star::awt::Point const&)
oox::drawingml::GetPoint2D(com::sun::star::uno::Reference<com::sun::star::xml::sax::XFastAttributeList> const&)
oox::drawingml::GetTextMargin(rtl::OUString const&)
oox::drawingml::GetTextVerticalAdjust(int)
oox::drawingml::GraphicProperties::assignUsed(oox::drawingml::GraphicProperties const&)
oox::drawingml::TextBodyProperties::pushToPropMap(oox::PropertyMap&) const
oox::drawingml::TextListStyle::dump() const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment