diff options
author | Jan Holesovsky <kendy@collabora.com> | 2014-06-11 17:51:14 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-06-11 17:53:53 +0200 |
commit | 51d1545e0ce8b30eea710501b84853288dd2563b (patch) | |
tree | aa47c93df2c681c95d0bf89881a280556388a318 /writerfilter/source/ooxml/OOXMLFactory.cxx | |
parent | 58d6e4fdc5db08c14e0c11ae50af53579cf0d963 (diff) |
writerfilter: Kill debug_logger.
Does not really log interesting stuff; if anybody wants some kind of logging
like this, better to use SAL_INFO(), and add it only for really interesting
stuff.
Change-Id: I11b4caa9660aaf1e70819322b7fc207a544ea3bb
Diffstat (limited to 'writerfilter/source/ooxml/OOXMLFactory.cxx')
-rw-r--r-- | writerfilter/source/ooxml/OOXMLFactory.cxx | 81 |
1 files changed, 0 insertions, 81 deletions
diff --git a/writerfilter/source/ooxml/OOXMLFactory.cxx b/writerfilter/source/ooxml/OOXMLFactory.cxx index 1f778c3295a3..834d7a686dd8 100644 --- a/writerfilter/source/ooxml/OOXMLFactory.cxx +++ b/writerfilter/source/ooxml/OOXMLFactory.cxx @@ -125,14 +125,6 @@ void OOXMLFactory::attributes(OOXMLFastContextHandler * pHandler, if (pFactory.get() != NULL) { -#ifdef DEBUG_FACTORY - debug_logger->startElement("factory.attributes"); - debug_logger->attribute("define", pFactory->getDefineName(nDefine)); - char sBuffer[256]; - snprintf(sBuffer, sizeof(sBuffer), "%08" SAL_PRIxUINT32, nDefine); - debug_logger->attribute("define-num", sBuffer); -#endif - TokenToIdMapPointer pTokenToIdMap = pFactory->getTokenToIdMap(nDefine); AttributeToResourceMapPointer pMap = pFactory->getAttributeToResourceMap(nDefine); @@ -142,22 +134,12 @@ void OOXMLFactory::attributes(OOXMLFastContextHandler * pHandler, for (aIt = pMap->begin(); aIt != aEndIt; ++aIt) { Id nId = (*pTokenToIdMap)[aIt->first]; -#ifdef DEBUG_FACTORY - debug_logger->startElement("factory.attribute"); - debug_logger->attribute("name", fastTokenToId(aIt->first)); - debug_logger->attribute("tokenid", (*QNameToString::Instance())(nId)); - snprintf(sBuffer, sizeof(sBuffer), "%08" SAL_PRIxUINT32, nId); - debug_logger->attribute("tokenid-num", sBuffer); -#endif if (Attribs->hasAttribute(aIt->first)) { switch (aIt->second.m_nResource) { case RT_Boolean: { -#ifdef DEBUG_FACTORY - debug_logger->element("boolean"); -#endif OUString aValue(Attribs->getValue(aIt->first)); OOXMLFastHelper<OOXMLBooleanValue>::newProperty(pHandler, nId, aValue); @@ -167,9 +149,6 @@ void OOXMLFactory::attributes(OOXMLFastContextHandler * pHandler, break; case RT_String: { -#ifdef DEBUG_FACTORY - debug_logger->element("string"); -#endif OUString aValue(Attribs->getValue(aIt->first)); OOXMLFastHelper<OOXMLStringValue>::newProperty (pHandler, nId, aValue); @@ -180,9 +159,6 @@ void OOXMLFactory::attributes(OOXMLFastContextHandler * pHandler, break; case RT_Integer: { -#ifdef DEBUG_FACTORY - debug_logger->element("integer"); -#endif OUString aValue(Attribs->getValue(aIt->first)); OOXMLFastHelper<OOXMLIntegerValue>::newProperty (pHandler, nId, aValue); @@ -193,9 +169,6 @@ void OOXMLFactory::attributes(OOXMLFastContextHandler * pHandler, break; case RT_Hex: { -#ifdef DEBUG_FACTORY - debug_logger->element("hex"); -#endif OUString aValue(Attribs->getValue(aIt->first)); OOXMLFastHelper<OOXMLHexValue>::newProperty (pHandler, nId, aValue); @@ -206,9 +179,6 @@ void OOXMLFactory::attributes(OOXMLFastContextHandler * pHandler, break; case RT_UniversalMeasure: { -#ifdef DEBUG_FACTORY - debug_logger->element("universalMeasure"); -#endif OUString aValue(Attribs->getValue(aIt->first)); OOXMLFastHelper<OOXMLUniversalMeasureValue>::newProperty(pHandler, nId, aValue); @@ -218,9 +188,6 @@ void OOXMLFactory::attributes(OOXMLFastContextHandler * pHandler, break; case RT_List: { -#ifdef DEBUG_FACTORY - debug_logger->startElement("list"); -#endif ListValueMapPointer pListValueMap = pFactory->getListValueMap(aIt->second.m_nRef); @@ -229,37 +196,19 @@ void OOXMLFactory::attributes(OOXMLFastContextHandler * pHandler, OUString aValue(Attribs->getValue(aIt->first)); sal_uInt32 nValue = (*pListValueMap)[aValue]; -#ifdef DEBUG_FACTORY - debug_logger->attribute("value", aValue); - debug_logger->attribute("value-num", nValue); -#endif - OOXMLFastHelper<OOXMLIntegerValue>::newProperty (pHandler, nId, nValue); OOXMLValue::Pointer_t pValue(new OOXMLIntegerValue(nValue)); pFactory->attributeAction(pHandler, aIt->first, pValue); } -#ifdef DEBUG_FACTORY - debug_logger->endElement(); -#endif } break; default: -#ifdef DEBUG_FACTORY - debug_logger->element("unknown-attribute-type"); -#endif break; } } -#ifdef DEBUG_FACTORY - debug_logger->endElement(); -#endif } - -#ifdef DEBUG_FACTORY - debug_logger->endElement(); -#endif } } @@ -267,11 +216,6 @@ uno::Reference< xml::sax::XFastContextHandler> OOXMLFactory::createFastChildContext(OOXMLFastContextHandler * pHandler, Token_t Element) { -#ifdef DEBUG_FACTORY - debug_logger->startElement("factory.createFastChildContext"); - debug_logger->attribute("token", fastTokenToId(Element)); -#endif - Id nDefine = pHandler->getDefine(); OOXMLFactory_ns::Pointer_t pFactory = getFactoryForNamespace(nDefine); @@ -282,21 +226,12 @@ OOXMLFactory::createFastChildContext(OOXMLFastContextHandler * pHandler, if ((Element & 0xffff) < OOXML_FAST_TOKENS_END) ret = createFastChildContextFromFactory(pHandler, pFactory, Element); -#ifdef DEBUG_FACTORY - debug_logger->endElement(); -#endif - return ret; } void OOXMLFactory::characters(OOXMLFastContextHandler * pHandler, const OUString & rString) { -#ifdef DEBUG_FACTORY - debug_logger->startElement("factory.characters"); - debug_logger->chars(rString); -#endif - Id nDefine = pHandler->getDefine(); OOXMLFactory_ns::Pointer_t pFactory = getFactoryForNamespace(nDefine); @@ -304,10 +239,6 @@ void OOXMLFactory::characters(OOXMLFastContextHandler * pHandler, { pFactory->charactersAction(pHandler, rString); } - -#ifdef DEBUG_FACTORY - debug_logger->endElement(); -#endif } void OOXMLFactory::startAction(OOXMLFastContextHandler * pHandler, Token_t /*nToken*/) @@ -317,13 +248,7 @@ void OOXMLFactory::startAction(OOXMLFastContextHandler * pHandler, Token_t /*nTo if (pFactory.get() != NULL) { -#ifdef DEBUG_ELEMENT - debug_logger->startElement("factory.startAction"); -#endif pFactory->startAction(pHandler); -#ifdef DEBUG_ELEMENT - debug_logger->endElement(); -#endif } } @@ -334,13 +259,7 @@ void OOXMLFactory::endAction(OOXMLFastContextHandler * pHandler, Token_t /*nToke if (pFactory.get() != NULL) { -#ifdef DEBUG_ELEMENT - debug_logger->startElement("factory.endAction"); -#endif pFactory->endAction(pHandler); -#ifdef DEBUG_ELEMENT - debug_logger->endElement(); -#endif } } |