Kaydet (Commit) 132e7c45 authored tarafından Thomas Arnhold's avatar Thomas Arnhold

writerfilter: remove using namespace from headers

Change-Id: Ibbb234a15de9ddb71552ef083ade72d2ac724ee0
üst 4f6e3433
...@@ -1045,7 +1045,7 @@ void TableManager<T, PropertiesPointer>::resolveCurrentTable() ...@@ -1045,7 +1045,7 @@ void TableManager<T, PropertiesPointer>::resolveCurrentTable()
mpTableDataHandler->endTable(mTableDataStack.size() - 1); mpTableDataHandler->endTable(mTableDataStack.size() - 1);
} }
catch (uno::Exception const& e) catch (css::uno::Exception const& e)
{ {
(void) e; (void) e;
#if OSL_DEBUG_LEVEL > 0 #if OSL_DEBUG_LEVEL > 0
......
...@@ -19,21 +19,20 @@ ...@@ -19,21 +19,20 @@
#ifndef INCLUDED_WRITERFILTER_INC_RESOURCEMODEL_UTIL_HXX #ifndef INCLUDED_WRITERFILTER_INC_RESOURCEMODEL_UTIL_HXX
#define INCLUDED_WRITERFILTER_INC_RESOURCEMODEL_UTIL_HXX #define INCLUDED_WRITERFILTER_INC_RESOURCEMODEL_UTIL_HXX
#include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/text/XTextRange.hpp> #include <com/sun/star/text/XTextRange.hpp>
#include <string> #include <string>
namespace writerfilter namespace writerfilter
{ {
using namespace ::std; std::string xmlify(const std::string & str);
using namespace ::com::sun::star;
string xmlify(const string & str);
#if OSL_DEBUG_LEVEL > 1 #if OSL_DEBUG_LEVEL > 1
string toString(uno::Reference< text::XTextRange > textRange); std::string toString(css::uno::Reference< css::text::XTextRange > textRange);
#endif #endif
} }
#endif // INCLUDED_WRITERFILTER_INC_RESOURCEMODEL_UTIL_HXX #endif // INCLUDED_WRITERFILTER_INC_RESOURCEMODEL_UTIL_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -83,7 +83,7 @@ class DomainMapperTableHandler : public TableDataHandler<Handle_t , TablePropert ...@@ -83,7 +83,7 @@ class DomainMapperTableHandler : public TableDataHandler<Handle_t , TablePropert
sal_Int32 m_nCellIndex; sal_Int32 m_nCellIndex;
sal_Int32 m_nRowIndex; sal_Int32 m_nRowIndex;
TableStyleSheetEntry * endTableGetTableStyle(TableInfo & rInfo, uno::Sequence<beans::PropertyValue>& rFrameProperties); TableStyleSheetEntry * endTableGetTableStyle(TableInfo & rInfo, css::uno::Sequence<css::beans::PropertyValue>& rFrameProperties);
CellPropertyValuesSeq_t endTableGetCellProperties(TableInfo & rInfo, std::vector<HorizontallyMergedCell>& rMerges); CellPropertyValuesSeq_t endTableGetCellProperties(TableInfo & rInfo, std::vector<HorizontallyMergedCell>& rMerges);
RowPropertyValuesSeq_t endTableGetRowProperties(); RowPropertyValuesSeq_t endTableGetRowProperties();
......
...@@ -181,8 +181,8 @@ struct TextAppendContext ...@@ -181,8 +181,8 @@ struct TextAppendContext
const ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextCursor >& xCur ) : const ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextCursor >& xCur ) :
xTextAppend( xAppend ) xTextAppend( xAppend )
{ {
xCursor.set(xCur, uno::UNO_QUERY); xCursor.set(xCur, css::uno::UNO_QUERY);
xInsertPosition.set(xCursor, uno::UNO_QUERY); xInsertPosition.set(xCursor, css::uno::UNO_QUERY);
} }
}; };
...@@ -246,7 +246,7 @@ struct RedlineParams ...@@ -246,7 +246,7 @@ struct RedlineParams
sal_Int32 m_nToken; sal_Int32 m_nToken;
/// This can hold properties of runs that had formatted 'track changes' properties /// This can hold properties of runs that had formatted 'track changes' properties
uno::Sequence<beans::PropertyValue> m_aRevertProperties; css::uno::Sequence<css::beans::PropertyValue> m_aRevertProperties;
}; };
typedef boost::shared_ptr< RedlineParams > RedlineParamsPtr; typedef boost::shared_ptr< RedlineParams > RedlineParamsPtr;
...@@ -272,19 +272,19 @@ struct LineNumberSettings ...@@ -272,19 +272,19 @@ struct LineNumberSettings
/// Contains information about a table that will be potentially converted to a floating one at the section end. /// Contains information about a table that will be potentially converted to a floating one at the section end.
struct FloatingTableInfo struct FloatingTableInfo
{ {
uno::Reference<text::XTextRange> m_xStart; css::uno::Reference<css::text::XTextRange> m_xStart;
uno::Reference<text::XTextRange> m_xEnd; css::uno::Reference<css::text::XTextRange> m_xEnd;
uno::Sequence<beans::PropertyValue> m_aFrameProperties; css::uno::Sequence<css::beans::PropertyValue> m_aFrameProperties;
sal_Int32 m_nTableWidth; sal_Int32 m_nTableWidth;
FloatingTableInfo(uno::Reference<text::XTextRange> xStart, uno::Reference<text::XTextRange> xEnd, const uno::Sequence<beans::PropertyValue>& aFrameProperties, sal_Int32 nTableWidth) FloatingTableInfo(css::uno::Reference<css::text::XTextRange> xStart, css::uno::Reference<css::text::XTextRange> xEnd, const css::uno::Sequence<css::beans::PropertyValue>& aFrameProperties, sal_Int32 nTableWidth)
: m_xStart(xStart), : m_xStart(xStart),
m_xEnd(xEnd), m_xEnd(xEnd),
m_aFrameProperties(aFrameProperties), m_aFrameProperties(aFrameProperties),
m_nTableWidth(nTableWidth) m_nTableWidth(nTableWidth)
{ {
} }
uno::Any getPropertyValue(const OUString &propertyName); css::uno::Any getPropertyValue(const OUString &propertyName);
}; };
class DomainMapper; class DomainMapper;
...@@ -304,7 +304,7 @@ private: ...@@ -304,7 +304,7 @@ private:
::com::sun::star::uno::Reference < com::sun::star::uno::XComponentContext > m_xComponentContext; ::com::sun::star::uno::Reference < com::sun::star::uno::XComponentContext > m_xComponentContext;
::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > m_xPageStyles; ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > m_xPageStyles;
::com::sun::star::uno::Reference< ::com::sun::star::text::XText > m_xBodyText; ::com::sun::star::uno::Reference< ::com::sun::star::text::XText > m_xBodyText;
::com::sun::star::uno::Reference<text::XTextContent> m_xEmbedded; ::com::sun::star::uno::Reference< css::text::XTextContent > m_xEmbedded;
TextAppendStack m_aTextAppendStack; TextAppendStack m_aTextAppendStack;
...@@ -365,9 +365,9 @@ private: ...@@ -365,9 +365,9 @@ private:
bool m_bIsCustomFtnMark; bool m_bIsCustomFtnMark;
//registered frame properties //registered frame properties
::com::sun::star::uno::Sequence< beans::PropertyValue > m_aFrameProperties; ::com::sun::star::uno::Sequence< css::beans::PropertyValue > m_aFrameProperties;
::com::sun::star::uno::Reference< text::XTextRange > m_xFrameStartRange; ::com::sun::star::uno::Reference< css::text::XTextRange > m_xFrameStartRange;
::com::sun::star::uno::Reference< text::XTextRange > m_xFrameEndRange; ::com::sun::star::uno::Reference< css::text::XTextRange > m_xFrameEndRange;
// Redline stack // Redline stack
std::stack< std::vector< RedlineParamsPtr > > m_aRedlines; std::stack< std::vector< RedlineParamsPtr > > m_aRedlines;
...@@ -388,11 +388,11 @@ private: ...@@ -388,11 +388,11 @@ private:
bool m_bSdt; bool m_bSdt;
bool m_bIsFirstRun; bool m_bIsFirstRun;
uno::Reference< text::XTextCursor > xTOCMarkerCursor; css::uno::Reference< css::text::XTextCursor > xTOCMarkerCursor;
uno::Reference< text::XTextCursor > mxTOCTextCursor; css::uno::Reference< css::text::XTextCursor > mxTOCTextCursor;
//annotation import //annotation import
uno::Reference< beans::XPropertySet > m_xAnnotationField; css::uno::Reference< css::beans::XPropertySet > m_xAnnotationField;
sal_Int32 m_nAnnotationId; sal_Int32 m_nAnnotationId;
AnnotationPositions_t m_aAnnotationPositions; AnnotationPositions_t m_aAnnotationPositions;
...@@ -414,10 +414,10 @@ private: ...@@ -414,10 +414,10 @@ private:
public: public:
DomainMapper_Impl( DomainMapper_Impl(
DomainMapper& rDMapper, DomainMapper& rDMapper,
uno::Reference < uno::XComponentContext > xContext, css::uno::Reference < css::uno::XComponentContext > xContext,
uno::Reference< lang::XComponent > xModel, css::uno::Reference< css::lang::XComponent > xModel,
SourceDocumentType eDocumentType, SourceDocumentType eDocumentType,
uno::Reference< text::XTextRange > xInsertTextRange, css::uno::Reference< css::text::XTextRange > xInsertTextRange,
bool bIsNewDoc ); bool bIsNewDoc );
virtual ~DomainMapper_Impl(); virtual ~DomainMapper_Impl();
...@@ -440,7 +440,7 @@ public: ...@@ -440,7 +440,7 @@ public:
{ {
return m_xTextDocument; return m_xTextDocument;
} }
void SetDocumentSettingsProperty( const OUString& rPropName, const uno::Any& rValue ); void SetDocumentSettingsProperty( const OUString& rPropName, const css::uno::Any& rValue );
void CreateRedline( ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > xRange, RedlineParamsPtr& pRedline ); void CreateRedline( ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > xRange, RedlineParamsPtr& pRedline );
...@@ -481,7 +481,7 @@ public: ...@@ -481,7 +481,7 @@ public:
void finishParagraph( PropertyMapPtr pPropertyMap ); void finishParagraph( PropertyMapPtr pPropertyMap );
void appendTextPortion( const OUString& rString, PropertyMapPtr pPropertyMap ); void appendTextPortion( const OUString& rString, PropertyMapPtr pPropertyMap );
void appendTextContent( const ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextContent >, void appendTextContent( const ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextContent >,
const uno::Sequence< beans::PropertyValue >& ); const css::uno::Sequence< css::beans::PropertyValue >& );
void appendOLE( const OUString& rStreamName, OLEHandlerPtr pOleHandler ); void appendOLE( const OUString& rStreamName, OLEHandlerPtr pOleHandler );
void appendStarMath( const Value& v ); void appendStarMath( const Value& v );
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > appendTextSectionAfter( ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > appendTextSectionAfter(
...@@ -580,36 +580,36 @@ public: ...@@ -580,36 +580,36 @@ public:
void handleFieldAsk void handleFieldAsk
(FieldContextPtr pContext, (FieldContextPtr pContext,
PropertyNameSupplier& rPropNameSupplier, PropertyNameSupplier& rPropNameSupplier,
uno::Reference< uno::XInterface > & xFieldInterface, css::uno::Reference< css::uno::XInterface > & xFieldInterface,
uno::Reference< beans::XPropertySet > xFieldProperties); css::uno::Reference< css::beans::XPropertySet > xFieldProperties);
void handleAutoNum void handleAutoNum
(FieldContextPtr pContext, (FieldContextPtr pContext,
PropertyNameSupplier& rPropNameSupplier, PropertyNameSupplier& rPropNameSupplier,
uno::Reference< uno::XInterface > & xFieldInterface, css::uno::Reference< css::uno::XInterface > & xFieldInterface,
uno::Reference< beans::XPropertySet > xFieldProperties); css::uno::Reference< css::beans::XPropertySet > xFieldProperties);
void handleAuthor void handleAuthor
(OUString const& rFirstParam, (OUString const& rFirstParam,
PropertyNameSupplier& rPropNameSupplier, PropertyNameSupplier& rPropNameSupplier,
uno::Reference< uno::XInterface > & xFieldInterface, css::uno::Reference< css::uno::XInterface > & xFieldInterface,
uno::Reference< beans::XPropertySet > xFieldProperties, css::uno::Reference< css::beans::XPropertySet > xFieldProperties,
FieldId eFieldId); FieldId eFieldId);
void handleDocProperty void handleDocProperty
(FieldContextPtr pContext, (FieldContextPtr pContext,
OUString const& rFirstParam, OUString const& rFirstParam,
PropertyNameSupplier& rPropNameSupplier, PropertyNameSupplier& rPropNameSupplier,
uno::Reference< uno::XInterface > & xFieldInterface, css::uno::Reference< css::uno::XInterface > & xFieldInterface,
uno::Reference< beans::XPropertySet > xFieldProperties); css::uno::Reference< css::beans::XPropertySet > xFieldProperties);
void handleToc void handleToc
(FieldContextPtr pContext, (FieldContextPtr pContext,
PropertyNameSupplier& rPropNameSupplier, PropertyNameSupplier& rPropNameSupplier,
uno::Reference< uno::XInterface > & xFieldInterface, css::uno::Reference< css::uno::XInterface > & xFieldInterface,
uno::Reference< beans::XPropertySet > xFieldProperties, css::uno::Reference< css::beans::XPropertySet > xFieldProperties,
const OUString & sTOCServiceName); const OUString & sTOCServiceName);
void handleIndex void handleIndex
(FieldContextPtr pContext, (FieldContextPtr pContext,
PropertyNameSupplier& rPropNameSupplier, PropertyNameSupplier& rPropNameSupplier,
uno::Reference< uno::XInterface > & xFieldInterface, css::uno::Reference< css::uno::XInterface > & xFieldInterface,
uno::Reference< beans::XPropertySet > xFieldProperties, css::uno::Reference< css::beans::XPropertySet > xFieldProperties,
const OUString & sTOCServiceName); const OUString & sTOCServiceName);
void handleBibliography void handleBibliography
...@@ -701,7 +701,7 @@ public: ...@@ -701,7 +701,7 @@ public:
void SetCurrentRedlineDate( const OUString& sDate ); void SetCurrentRedlineDate( const OUString& sDate );
void SetCurrentRedlineId( sal_Int32 nId ); void SetCurrentRedlineId( sal_Int32 nId );
void SetCurrentRedlineToken( sal_Int32 nToken ); void SetCurrentRedlineToken( sal_Int32 nToken );
void SetCurrentRedlineRevertProperties( const uno::Sequence<beans::PropertyValue>& aProperties ); void SetCurrentRedlineRevertProperties( const css::uno::Sequence<css::beans::PropertyValue>& aProperties );
void RemoveCurrentRedline( ); void RemoveCurrentRedline( );
void ResetParaMarkerRedline( ); void ResetParaMarkerRedline( );
void SetCurrentRedlineInitials( const OUString& sInitials ); void SetCurrentRedlineInitials( const OUString& sInitials );
...@@ -762,8 +762,8 @@ public: ...@@ -762,8 +762,8 @@ public:
std::vector<FloatingTableInfo> m_aPendingFloatingTables; std::vector<FloatingTableInfo> m_aPendingFloatingTables;
/// Append a property to a sub-grabbag if necessary (e.g. 'lineRule', 'auto') /// Append a property to a sub-grabbag if necessary (e.g. 'lineRule', 'auto')
void appendGrabBag(std::vector<beans::PropertyValue>& rInteropGrabBag, const OUString& aKey, const OUString& aValue); void appendGrabBag(std::vector<css::beans::PropertyValue>& rInteropGrabBag, const OUString& aKey, const OUString& aValue);
void appendGrabBag(std::vector<beans::PropertyValue>& rInteropGrabBag, const OUString& aKey, std::vector<beans::PropertyValue>& rValue); void appendGrabBag(std::vector<css::beans::PropertyValue>& rInteropGrabBag, const OUString& aKey, std::vector<css::beans::PropertyValue>& rValue);
/// Enable, disable an check status of grabbags /// Enable, disable an check status of grabbags
void enableInteropGrabBag(const OUString& aName); void enableInteropGrabBag(const OUString& aName);
...@@ -774,10 +774,10 @@ public: ...@@ -774,10 +774,10 @@ public:
OUString m_aInteropGrabBagName; OUString m_aInteropGrabBagName;
/// A toplevel dmapper grabbag, like 'pPr'. /// A toplevel dmapper grabbag, like 'pPr'.
std::vector<beans::PropertyValue> m_aInteropGrabBag; std::vector<css::beans::PropertyValue> m_aInteropGrabBag;
/// A sub-grabbag of m_aInteropGrabBag, like 'spacing'. /// A sub-grabbag of m_aInteropGrabBag, like 'spacing'.
std::vector<beans::PropertyValue> m_aSubInteropGrabBag; std::vector<css::beans::PropertyValue> m_aSubInteropGrabBag;
/// ST_PositivePercentage values we received /// ST_PositivePercentage values we received
std::queue<OUString> m_aPositivePercentages; std::queue<OUString> m_aPositivePercentages;
...@@ -791,7 +791,7 @@ public: ...@@ -791,7 +791,7 @@ public:
private: private:
void PushPageHeaderFooter(bool bHeader, SectionPropertyMap::PageType eType); void PushPageHeaderFooter(bool bHeader, SectionPropertyMap::PageType eType);
std::vector<uno::Reference< drawing::XShape > > m_vTextFramesForChaining ; std::vector<css::uno::Reference< css::drawing::XShape > > m_vTextFramesForChaining ;
}; };
} //namespace dmapper } //namespace dmapper
} //namespace writerfilter } //namespace writerfilter
......
...@@ -50,7 +50,7 @@ enum StyleType ...@@ -50,7 +50,7 @@ enum StyleType
struct StyleSheetTable_Impl; struct StyleSheetTable_Impl;
class StyleSheetEntry class StyleSheetEntry
{ {
std::vector<beans::PropertyValue> m_aInteropGrabBag; std::vector<css::beans::PropertyValue> m_aInteropGrabBag;
public: public:
OUString sStyleIdentifierI; OUString sStyleIdentifierI;
OUString sStyleIdentifierD; OUString sStyleIdentifierD;
...@@ -64,13 +64,13 @@ public: ...@@ -64,13 +64,13 @@ public:
OUString sStyleName1; OUString sStyleName1;
PropertyMapPtr pProperties; PropertyMapPtr pProperties;
OUString sConvertedStyleName; OUString sConvertedStyleName;
std::vector<beans::PropertyValue> aLatentStyles; ///< Attributes of latentStyles std::vector<css::beans::PropertyValue> aLatentStyles; ///< Attributes of latentStyles
std::vector<beans::PropertyValue> aLsdExceptions; ///< List of lsdException attribute lists std::vector<css::beans::PropertyValue> aLsdExceptions; ///< List of lsdException attribute lists
bool bAutoRedefine; ///< Writer calls this auto-update. bool bAutoRedefine; ///< Writer calls this auto-update.
void AppendInteropGrabBag(beans::PropertyValue aValue); void AppendInteropGrabBag(css::beans::PropertyValue aValue);
beans::PropertyValue GetInteropGrabBag(); ///< Used for table styles, has a name. css::beans::PropertyValue GetInteropGrabBag(); ///< Used for table styles, has a name.
beans::PropertyValues GetInteropGrabBagSeq(); ///< Used for existing styles, just a list of properties. css::beans::PropertyValues GetInteropGrabBagSeq(); ///< Used for existing styles, just a list of properties.
StyleSheetEntry(); StyleSheetEntry();
virtual ~StyleSheetEntry(); virtual ~StyleSheetEntry();
......
...@@ -39,9 +39,9 @@ typedef TableManager<Handle_t , TablePropertyMapPtr > DomainMapperTableManager_B ...@@ -39,9 +39,9 @@ typedef TableManager<Handle_t , TablePropertyMapPtr > DomainMapperTableManager_B
class TablePropertiesHandler class TablePropertiesHandler
{ {
private: private:
vector< PropertyMapPtr > m_rPropertiesStack; std::vector< PropertyMapPtr > m_rPropertiesStack;
PropertyMapPtr m_pCurrentProperties; PropertyMapPtr m_pCurrentProperties;
std::vector<beans::PropertyValue>* m_pCurrentInteropGrabBag; std::vector<css::beans::PropertyValue>* m_pCurrentInteropGrabBag;
DomainMapperTableManager_Base_t *m_pTableManager; DomainMapperTableManager_Base_t *m_pTableManager;
bool m_bOOXML; bool m_bOOXML;
...@@ -61,7 +61,7 @@ public: ...@@ -61,7 +61,7 @@ public:
m_pCurrentProperties = pProperties; m_pCurrentProperties = pProperties;
}; };
void SetInteropGrabBag(std::vector<beans::PropertyValue>& rValue); void SetInteropGrabBag(std::vector<css::beans::PropertyValue>& rValue);
private: private:
......
...@@ -25,6 +25,8 @@ ...@@ -25,6 +25,8 @@
#include "dmapperLoggers.hxx" #include "dmapperLoggers.hxx"
using namespace css;
namespace writerfilter { namespace writerfilter {
namespace dmapper { namespace dmapper {
......
...@@ -57,7 +57,7 @@ private: ...@@ -57,7 +57,7 @@ private:
TblStyleType m_nType; TblStyleType m_nType;
PropertyMapPtr m_pProperties; PropertyMapPtr m_pProperties;
std::vector<beans::PropertyValue> m_aInteropGrabBag; std::vector<css::beans::PropertyValue> m_aInteropGrabBag;
// Properties // Properties
virtual void lcl_attribute(Id Name, Value & val) SAL_OVERRIDE; virtual void lcl_attribute(Id Name, Value & val) SAL_OVERRIDE;
...@@ -71,7 +71,7 @@ public: ...@@ -71,7 +71,7 @@ public:
inline TblStyleType getType() { return m_nType; }; inline TblStyleType getType() { return m_nType; };
OUString getTypeString(); OUString getTypeString();
void appendInteropGrabBag(const OUString& aKey, const OUString& aValue); void appendInteropGrabBag(const OUString& aKey, const OUString& aValue);
beans::PropertyValue getInteropGrabBag(const OUString& aName); css::beans::PropertyValue getInteropGrabBag(const OUString& aName);
private: private:
......
...@@ -24,6 +24,8 @@ ...@@ -24,6 +24,8 @@
#include <resourcemodel/QNameToString.hxx> #include <resourcemodel/QNameToString.hxx>
#include <boost/unordered_map.hpp> #include <boost/unordered_map.hpp>
using namespace css;
namespace writerfilter namespace writerfilter
{ {
TagLogger::TagLogger(const char* name) TagLogger::TagLogger(const char* name)
...@@ -38,12 +40,12 @@ namespace writerfilter ...@@ -38,12 +40,12 @@ namespace writerfilter
} }
#ifdef DEBUG_IMPORT #ifdef DEBUG_IMPORT
void TagLogger::setFileName( const string & filename ) void TagLogger::setFileName( const std::string & filename )
{ {
if ( pWriter ) if ( pWriter )
endDocument(); endDocument();
string fileName; std::string fileName;
char * temp = getenv("TAGLOGGERTMP"); char * temp = getenv("TAGLOGGERTMP");
if (temp != NULL) if (temp != NULL)
...@@ -51,7 +53,7 @@ namespace writerfilter ...@@ -51,7 +53,7 @@ namespace writerfilter
else else
fileName += "/tmp"; fileName += "/tmp";
string sPrefix = filename; std::string sPrefix = filename;
size_t nLastSlash = sPrefix.find_last_of('/'); size_t nLastSlash = sPrefix.find_last_of('/');
size_t nLastBackslash = sPrefix.find_last_of('\\'); size_t nLastBackslash = sPrefix.find_last_of('\\');
size_t nCutPos = nLastSlash; size_t nCutPos = nLastSlash;
...@@ -87,19 +89,19 @@ namespace writerfilter ...@@ -87,19 +89,19 @@ namespace writerfilter
TagLogger::Pointer_t TagLogger::getInstance(const char * name) TagLogger::Pointer_t TagLogger::getInstance(const char * name)
{ {
typedef boost::unordered_map<string, TagLogger::Pointer_t> TagLoggerHashMap_t; typedef boost::unordered_map<std::string, TagLogger::Pointer_t> TagLoggerHashMap_t;
static TagLoggerHashMap_t tagLoggers; static TagLoggerHashMap_t tagLoggers;
TagLoggerHashMap_t::iterator aIt = tagLoggers.end(); TagLoggerHashMap_t::iterator aIt = tagLoggers.end();
string sName = name; std::string sName = name;
if (! tagLoggers.empty()) if (! tagLoggers.empty())
aIt = tagLoggers.find(sName); aIt = tagLoggers.find(sName);
if (aIt == tagLoggers.end()) if (aIt == tagLoggers.end())
{ {
TagLogger::Pointer_t pTagLogger(new TagLogger(name)); TagLogger::Pointer_t pTagLogger(new TagLogger(name));
pair<string, TagLogger::Pointer_t> entry(sName, pTagLogger); std::pair<std::string, TagLogger::Pointer_t> entry(sName, pTagLogger);
aIt = tagLoggers.insert(entry).first; aIt = tagLoggers.insert(entry).first;
} }
...@@ -107,7 +109,7 @@ namespace writerfilter ...@@ -107,7 +109,7 @@ namespace writerfilter
} }
#ifdef DEBUG_DOMAINMAPPER #ifdef DEBUG_DOMAINMAPPER
void TagLogger::element(const string & name) void TagLogger::element(const std::string & name)
{ {
startElement(name); startElement(name);
endElement(); endElement();
...@@ -148,7 +150,7 @@ namespace writerfilter ...@@ -148,7 +150,7 @@ namespace writerfilter
#endif #endif
#if OSL_DEBUG_LEVEL > 1 #if OSL_DEBUG_LEVEL > 1
void TagLogger::startElement(const string & name) void TagLogger::startElement(const std::string & name)
{ {
xmlChar* xmlName = xmlCharStrdup( name.c_str() ); xmlChar* xmlName = xmlCharStrdup( name.c_str() );
xmlTextWriterStartElement( pWriter, xmlName ); xmlTextWriterStartElement( pWriter, xmlName );
...@@ -156,7 +158,7 @@ namespace writerfilter ...@@ -156,7 +158,7 @@ namespace writerfilter
} }
#endif #endif
void TagLogger::attribute(const string & name, const string & value) void TagLogger::attribute(const std::string & name, const std::string & value)
{ {
xmlChar* xmlName = xmlCharStrdup( name.c_str() ); xmlChar* xmlName = xmlCharStrdup( name.c_str() );
xmlChar* xmlValue = xmlCharStrdup( value.c_str() ); xmlChar* xmlValue = xmlCharStrdup( value.c_str() );
...@@ -167,12 +169,12 @@ namespace writerfilter ...@@ -167,12 +169,12 @@ namespace writerfilter
} }
#if OSL_DEBUG_LEVEL > 1 #if OSL_DEBUG_LEVEL > 1
void TagLogger::attribute(const string & name, const OUString & value) void TagLogger::attribute(const std::string & name, const OUString & value)
{ {
attribute( name, OUStringToOString( value, RTL_TEXTENCODING_ASCII_US ).getStr() ); attribute( name, OUStringToOString( value, RTL_TEXTENCODING_ASCII_US ).getStr() );
} }
void TagLogger::attribute(const string & name, sal_uInt32 value) void TagLogger::attribute(const std::string & name, sal_uInt32 value)
{ {
xmlChar* xmlName = xmlCharStrdup( name.c_str() ); xmlChar* xmlName = xmlCharStrdup( name.c_str() );
xmlTextWriterWriteFormatAttribute( pWriter, xmlName, xmlTextWriterWriteFormatAttribute( pWriter, xmlName,
...@@ -180,11 +182,11 @@ namespace writerfilter ...@@ -180,11 +182,11 @@ namespace writerfilter
xmlFree( xmlName ); xmlFree( xmlName );
} }
void TagLogger::attribute(const string & name, const uno::Any aAny) void TagLogger::attribute(const std::string & name, const uno::Any aAny)
{ {
string aTmpStrInt; std::string aTmpStrInt;
string aTmpStrFloat; std::string aTmpStrFloat;
string aTmpStrString; std::string aTmpStrString;
sal_Int32 nInt = 0; sal_Int32 nInt = 0;
float nFloat = 0.0; float nFloat = 0.0;
...@@ -208,7 +210,7 @@ namespace writerfilter ...@@ -208,7 +210,7 @@ namespace writerfilter
xmlFree( xmlName ); xmlFree( xmlName );
} }
void TagLogger::chars(const string & rChars) void TagLogger::chars(const std::string & rChars)
{ {
xmlChar* xmlChars = xmlCharStrdup( rChars.c_str() ); xmlChar* xmlChars = xmlCharStrdup( rChars.c_str() );
xmlTextWriterWriteString( pWriter, xmlChars ); xmlTextWriterWriteString( pWriter, xmlChars );
...@@ -277,7 +279,7 @@ namespace writerfilter ...@@ -277,7 +279,7 @@ namespace writerfilter
{ {
m_pLogger->startElement( "sprm" ); m_pLogger->startElement( "sprm" );
string sName; std::string sName;
if (mpIdToString != IdToString::Pointer_t()) if (mpIdToString != IdToString::Pointer_t())
sName = mpIdToString->toString(rSprm.getId()); sName = mpIdToString->toString(rSprm.getId());
......
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