Kaydet (Commit) d5b4ecce authored tarafından Miklos Vajna's avatar Miklos Vajna

writerfilter: remove unused dumpXml() methods

Unused since 51d1545e (writerfilter:
Kill debug_logger., 2014-06-11).

Change-Id: I01743a9f5c603da06cfd422d29d3258a17d4dd40
üst 0f0a22ad
...@@ -57,33 +57,6 @@ using namespace ::com::sun::star; ...@@ -57,33 +57,6 @@ using namespace ::com::sun::star;
using namespace oox; using namespace oox;
using namespace ::std; using namespace ::std;
#ifdef DEBUG_WRITERFILTER
static string resourceToString(OOXMLFastContextHandler::ResourceEnum_t eResource)
{
string sResult;
switch (eResource)
{
case OOXMLFastContextHandler::STREAM:
sResult = "Stream";
break;
case OOXMLFastContextHandler::PROPERTIES:
sResult = "Properties";
break;
case OOXMLFastContextHandler::TABLE:
sResult = "Table";
break;
case OOXMLFastContextHandler::SHAPE:
sResult = "Shape";
break;
default:
sResult = "??";
}
return sResult;
}
#endif
set<OOXMLFastContextHandler *> aSetContexts; set<OOXMLFastContextHandler *> aSetContexts;
#ifdef DEBUG_WRITERFILTER #ifdef DEBUG_WRITERFILTER
...@@ -375,37 +348,6 @@ void OOXMLFastContextHandler::endAction(Token_t Element) ...@@ -375,37 +348,6 @@ void OOXMLFastContextHandler::endAction(Token_t Element)
OOXMLFactory::getInstance()->endAction(this, Element); OOXMLFactory::getInstance()->endAction(this, Element);
} }
#ifdef DEBUG_WRITERFILTER
void OOXMLFastContextHandler::dumpXml( const TagLogger::Pointer_t pLogger ) const
{
pLogger->startElement("context");
static char sBuffer[128];
snprintf(sBuffer, sizeof(sBuffer), "%p", this);
pLogger->attribute("parent", std::string(sBuffer));
pLogger->attribute("type", getType());
pLogger->attribute("resource", resourceToString(getResource()));
pLogger->attribute("token", fastTokenToId(getToken()));
pLogger->attribute("id", (*QNameToString::Instance())(getId()));
OOXMLValue::Pointer_t pVal(getValue());
if (pVal.get() != nullptr)
pLogger->attribute("value", pVal->toString());
else
pLogger->attribute("value", std::string("(null)"));
pLogger->propertySet(getPropertySet(),
IdToString::Pointer_t(new OOXMLIdToString()));
mpParserState->dumpXml( pLogger );
pLogger->endElement();
}
#endif
void OOXMLFastContextHandler::setId(Id rId) void OOXMLFastContextHandler::setId(Id rId)
{ {
mId = rId; mId = rId;
...@@ -1093,38 +1035,6 @@ OOXMLValue::Pointer_t OOXMLFastContextHandlerProperties::getValue() const ...@@ -1093,38 +1035,6 @@ OOXMLValue::Pointer_t OOXMLFastContextHandlerProperties::getValue() const
return OOXMLValue::Pointer_t(new OOXMLPropertySetValue(mpPropertySet)); return OOXMLValue::Pointer_t(new OOXMLPropertySetValue(mpPropertySet));
} }
#ifdef DEBUG_WRITERFILTER
void OOXMLFastContextHandlerProperties::dumpXml( const TagLogger::Pointer_t pLogger) const
{
pLogger->startElement("context");
static char sBuffer[128];
snprintf(sBuffer, sizeof(sBuffer), "%p", this);
pLogger->attribute("parent", std::string(sBuffer));
pLogger->attribute("type", getType());
pLogger->attribute("resource", resourceToString(getResource()));
pLogger->attribute("token", fastTokenToId(getToken()));
pLogger->attribute("id", (*QNameToString::Instance())(getId()));
OOXMLValue::Pointer_t pVal(getValue());
if (pVal.get() != nullptr)
pLogger->attribute("value", pVal->toString());
else
pLogger->attribute("value", std::string("(null)"));
pLogger->attribute("resolve", mbResolve ? "resolve" : "noResolve");
pLogger->propertySet(getPropertySet(),
IdToString::Pointer_t(new OOXMLIdToString()));
mpParserState->dumpXml( pLogger );
pLogger->endElement();
}
#endif
void OOXMLFastContextHandlerProperties::newProperty void OOXMLFastContextHandlerProperties::newProperty
(const Id & rId, OOXMLValue::Pointer_t pVal) (const Id & rId, OOXMLValue::Pointer_t pVal)
{ {
......
...@@ -203,10 +203,6 @@ public: ...@@ -203,10 +203,6 @@ public:
void sendPropertyToParent(); void sendPropertyToParent();
#ifdef DEBUG_WRITERFILTER
virtual void dumpXml( const TagLogger::Pointer_t pLogger ) const;
#endif
sal_uInt32 getInstanceNumber() { return mnInstanceNumber; } sal_uInt32 getInstanceNumber() { return mnInstanceNumber; }
protected: protected:
OOXMLFastContextHandler * mpParent; OOXMLFastContextHandler * mpParent;
...@@ -306,10 +302,6 @@ public: ...@@ -306,10 +302,6 @@ public:
virtual void setPropertySet(OOXMLPropertySet::Pointer_t pPropertySet) SAL_OVERRIDE; virtual void setPropertySet(OOXMLPropertySet::Pointer_t pPropertySet) SAL_OVERRIDE;
virtual OOXMLPropertySet::Pointer_t getPropertySet() const SAL_OVERRIDE; virtual OOXMLPropertySet::Pointer_t getPropertySet() const SAL_OVERRIDE;
#ifdef DEBUG_WRITERFILTER
virtual void dumpXml( const TagLogger::Pointer_t pLogger ) const SAL_OVERRIDE;
#endif
protected: protected:
/// the properties /// the properties
OOXMLPropertySet::Pointer_t mpPropertySet; OOXMLPropertySet::Pointer_t mpPropertySet;
......
...@@ -264,43 +264,6 @@ void OOXMLParserState::endTxbxContent() ...@@ -264,43 +264,6 @@ void OOXMLParserState::endTxbxContent()
inTxbxContent = false; inTxbxContent = false;
} }
#ifdef DEBUG_WRITERFILTER
void OOXMLParserState::dumpXml( const TagLogger::Pointer_t& pLogger )
{
pLogger->startElement("parserstate");
std::string sTmp;
if (isInSectionGroup())
sTmp += "s";
else
sTmp += "-";
if (isInParagraphGroup())
sTmp += "p";
else
sTmp += "-";
if (isInCharacterGroup())
sTmp += "c";
else
sTmp += "-";
if (isForwardEvents())
sTmp += "f";
else
sTmp += "-";
pLogger->attribute("state", sTmp);
pLogger->attribute("XNoteId", getXNoteId() );
if (mpCharacterProps != OOXMLPropertySet::Pointer_t())
pLogger->chars(mpCharacterProps->toString());
pLogger->endElement();
}
#endif
}} }}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -115,11 +115,6 @@ public: ...@@ -115,11 +115,6 @@ public:
void startTxbxContent(); void startTxbxContent();
void endTxbxContent(); void endTxbxContent();
#ifdef DEBUG_WRITERFILTER
public:
void dumpXml( const TagLogger::Pointer_t& pLogger );
#endif
}; };
}} }}
......
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