Drop unused parts

This commit is contained in:
Julien Nabet 2011-09-04 22:04:35 +02:00
parent 64767120e5
commit f6880eac22
15 changed files with 4 additions and 104 deletions

View file

@ -349,32 +349,6 @@ WW8TableNodeInfo::~WW8TableNodeInfo()
{
}
::std::string WW8TableNodeInfo::toString() const
{
static char buffer[1024];
snprintf(buffer, sizeof(buffer),
"<tableNodeInfo p=\"%p\" depth=\"%" SAL_PRIuUINT32 "\">"
,this, getDepth());
::std::string sResult(buffer);
Inners_t::const_iterator aIt(mInners.begin());
Inners_t::const_iterator aEnd(mInners.end());
while (aIt != aEnd)
{
WW8TableNodeInfoInner::Pointer_t pInner = aIt->second;
sResult += pInner->toString();
aIt++;
}
#if OSL_DEBUG_LEVEL > 1
sResult += dbg_out(*mpNode);
#endif
sResult += "</tableNodeInfo>";
return sResult;
}
void WW8TableNodeInfo::setDepth(sal_uInt32 nDepth)
{
mnDepth = nDepth;
@ -508,11 +482,6 @@ const SwTableBox * WW8TableNodeInfo::getTableBox() const
return getInnerForDepth(mnDepth)->getTableBox();
}
const SwTable * WW8TableNodeInfo::getTable() const
{
return getInnerForDepth(mnDepth)->getTable();
}
WW8TableNodeInfo * WW8TableNodeInfo::getNext() const
{
return mpNext;

View file

@ -167,7 +167,6 @@ public:
bool isFirstInTable() const;
const SwNode * getNode() const;
const SwTableBox * getTableBox() const;
const SwTable * getTable() const;
WW8TableNodeInfo * getNext() const;
const SwNode * getNextNode() const;
const SwRect & getRect() const;
@ -179,8 +178,6 @@ public:
sal_uInt32 getCell() const;
sal_uInt32 getRow() const;
::std::string toString() const;
bool operator < (const WW8TableNodeInfo & rInfo) const;
};

View file

@ -3144,12 +3144,3 @@ writerfilter::XPathLogger::XPathLogger()
writerfilter::XPathLogger::endElement()
writerfilter::XPathLogger::getXPath() const
writerfilter::XPathLogger::startElement(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)
writerfilter::dmapper::FIB::GetData(unsigned int)
writerfilter::dmapper::MeasureHandler::isAutoWidth() const
writerfilter::dmapper::SectionPropertyMap::GetPageStyleName(bool)
writerfilter::dmapper::SectionPropertyMap::SetPageStyleName(bool, rtl::OUString const&)
writerfilter::dmapper::StyleSheetTable::resolveSprmProps(writerfilter::Sprm&)
writerfilter::ooxml::OOXMLFastContextHandler::getResourceString() const
writerfilter::resourcemodel::Fraction::Fraction(writerfilter::resourcemodel::Fraction const&, writerfilter::resourcemodel::Fraction const&)
ww8::WW8TableNodeInfo::getTable() const
ww8::WW8TableNodeInfo::toString() const

View file

@ -39,7 +39,6 @@ class WRITERFILTER_RESOURCEMODEL_DLLPUBLIC Fraction
{
public:
explicit Fraction(sal_Int32 nNumerator, sal_Int32 nDenominator = 1);
explicit Fraction(const Fraction & a, const Fraction & b);
virtual ~Fraction();
void init(sal_Int32 nNumerator, sal_Int32 nDenominator);

View file

@ -164,16 +164,6 @@ typedef ::std::map< ::rtl::OUString, FieldConversion>
FieldConversionMap_t;
sal_Int32 FIB::GetData( Id nName )
{
if( nName >= NS_rtf::LN_WIDENT && nName <= NS_rtf::LN_LCBSTTBFUSSR)
return aFIBData[nName - NS_rtf::LN_WIDENT];
OSL_FAIL( "invalid index in FIB");
return -1;
}
void FIB::SetData( Id nName, sal_Int32 nValue )
{
OSL_ENSURE( nName >= NS_rtf::LN_WIDENT && nName <= NS_rtf::LN_LCBSTTBFUSSR, "invalid index in FIB");

View file

@ -206,7 +206,6 @@ class FIB
sal_Int32 GetLNCHS() const {return nLNCHS;}
void SetLNCHS(sal_Int32 nValue) {nLNCHS = nValue;}
sal_Int32 GetData( Id nName );
void SetData( Id nName, sal_Int32 nValue );
};

View file

@ -112,12 +112,6 @@ sal_Int32 MeasureHandler::getMeasureValue() const
return nRet;
}
bool MeasureHandler::isAutoWidth() const
{
return sal::static_int_cast<Id>(m_nUnit) == NS_ooxml::LN_Value_ST_TblWidth_auto;
}
} //namespace dmapper
} //namespace writerfilter

View file

@ -55,8 +55,6 @@ public:
virtual ~MeasureHandler();
sal_Int32 getMeasureValue() const;
//at least tables can have automatic width
bool isAutoWidth() const;
sal_Int16 GetRowHeightSizeType() const { return m_nRowHeightSizeType;}
};

View file

@ -331,21 +331,6 @@ SectionPropertyMap::~SectionPropertyMap()
}
const ::rtl::OUString& SectionPropertyMap::GetPageStyleName( bool bFirst )
{
return bFirst ? m_sFirstPageStyleName : m_sFollowPageStyleName;
}
void SectionPropertyMap::SetPageStyleName( bool bFirst, const ::rtl::OUString& rName)
{
if( bFirst )
m_sFirstPageStyleName = rName;
else
m_sFollowPageStyleName = rName;
}
::rtl::OUString lcl_FindUnusedPageStyleName(const uno::Sequence< ::rtl::OUString >& rPageStyleNames)
{
static const sal_Char cDefaultStyle[] = "Converted";

View file

@ -225,9 +225,6 @@ public:
m_xStartingRange = xRange;
}
const ::rtl::OUString& GetPageStyleName( bool bFirst );
void SetPageStyleName( bool bFirst, const ::rtl::OUString& rName);
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > GetPageStyle(
const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >& xStyles,
const ::com::sun::star::uno::Reference < ::com::sun::star::lang::XMultiServiceFactory >& xTextFactory,

View file

@ -1166,13 +1166,6 @@ static const sal_Char* const aStyleNamePairs[] =
return sRet;
}
void StyleSheetTable::resolveSprmProps(Sprm & rSprm)
{
writerfilter::Reference<Properties>::Pointer_t pProperties = rSprm.getProps();
if( pProperties.get())
pProperties->resolve(*this);
}
void StyleSheetTable::resolveAttributeProperties(Value & val)
{
writerfilter::Reference<Properties>::Pointer_t pProperties = val.getProperties();

View file

@ -114,7 +114,6 @@ private:
virtual void lcl_entry(int pos, writerfilter::Reference<Properties>::Pointer_t ref);
void resolveAttributeProperties(Value & val);
void resolveSprmProps(Sprm & sprm_);
void applyDefaults(bool bParaProperties);
};
typedef boost::shared_ptr< StyleSheetTable > StyleSheetTablePtr;

View file

@ -67,6 +67,7 @@ using ::com::sun::star::lang::XMultiComponentFactory;
using namespace ::com::sun::star;
using namespace ::std;
#if OSL_DEBUG_LEVEL > 1
static string resourceToString
(OOXMLFastContextHandler::ResourceEnum_t eResource)
{
@ -92,6 +93,7 @@ static string resourceToString
return sResult;
}
#endif
set<OOXMLFastContextHandler *> aSetContexts;
@ -414,7 +416,7 @@ void OOXMLFastContextHandler::dumpXml( const TagLogger::Pointer_t pLogger ) cons
pLogger->attribute("parent", sBuffer);
pLogger->attribute("type", getType());
pLogger->attribute("resource", getResourceString());
pLogger->attribute("resource", resourceToString(getResource()));
pLogger->attribute("token", fastTokenToId(getToken()));
pLogger->attribute("id", (*QNameToString::Instance())(getId()));
@ -435,11 +437,6 @@ void OOXMLFastContextHandler::dumpXml( const TagLogger::Pointer_t pLogger ) cons
#endif
string OOXMLFastContextHandler::getResourceString() const
{
return resourceToString(getResource());
}
void OOXMLFastContextHandler::setId(Id rId)
{
#ifdef DEBUG_CONTEXT_HANDLER
@ -1317,7 +1314,7 @@ void OOXMLFastContextHandlerProperties::dumpXml( const TagLogger::Pointer_t pLog
pLogger->attribute("parent", sBuffer);
pLogger->attribute("type", getType());
pLogger->attribute("resource", getResourceString());
pLogger->attribute("resource", resourceToString(getResource()));
pLogger->attribute("token", fastTokenToId(getToken()));
pLogger->attribute("id", (*QNameToString::Instance())(getId()));

View file

@ -275,9 +275,6 @@ protected:
virtual void lcl_endAction(Token_t Element);
// Returns string for resource of this context. (debug)
string getResourceString() const;
virtual OOXMLPropertySet * getPicturePropSet
(const ::rtl::OUString & rId);
virtual void resolvePropertySetAttrs();

View file

@ -79,11 +79,6 @@ Fraction::Fraction(sal_Int32 nNumerator, sal_Int32 nDenominator)
init(nNumerator, nDenominator);
}
Fraction::Fraction(const Fraction & a, const Fraction & b)
{
init(a.mnNumerator * b.mnDenominator, a.mnDenominator * b.mnNumerator);
}
Fraction::~Fraction()
{
}