diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2008-04-18 11:10:47 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2008-04-18 11:10:47 +0000 |
commit | 773328c8d2130f82f8eea2caf9dc3bd5bbf5d5fa (patch) | |
tree | d2424061d4282d10c783ddb2e2e7b18c08d32ba6 /writerfilter/inc | |
parent | INTEGRATION: CWS xmlfilter04 (1.13.14); FILE MERGED (diff) | |
download | core-773328c8d2130f82f8eea2caf9dc3bd5bbf5d5fa.tar.gz core-773328c8d2130f82f8eea2caf9dc3bd5bbf5d5fa.zip |
INTEGRATION: CWS xmlfilter04 (1.4.14); FILE MERGED
2008/03/04 13:33:19 hbrinkm 1.4.14.1: new classes for debug output: XMLAttribute and XMLTag
Diffstat (limited to 'writerfilter/inc')
-rw-r--r-- | writerfilter/inc/resourcemodel/QNameToString.hxx | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/writerfilter/inc/resourcemodel/QNameToString.hxx b/writerfilter/inc/resourcemodel/QNameToString.hxx index 22145860af64..88baa05e3301 100644 --- a/writerfilter/inc/resourcemodel/QNameToString.hxx +++ b/writerfilter/inc/resourcemodel/QNameToString.hxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: QNameToString.hxx,v $ - * $Revision: 1.5 $ + * $Revision: 1.6 $ * * This file is part of OpenOffice.org. * @@ -89,6 +89,40 @@ string WRITERFILTER_DLLPUBLIC xmlify(const string & str); string WRITERFILTER_DLLPUBLIC propertysetToString (uno::Reference<beans::XPropertySet> const & rProps); +struct XMLAttribute +{ + string mName; + string mValue; +public: + XMLAttribute(string sName, string sValue) + : mName(sName), mValue(sValue) + { + } + +}; + +class WRITERFILTER_DLLPUBLIC XMLTag +{ +public: + enum eMode { START, END, COMPLETE }; + typedef boost::shared_ptr<XMLTag> Pointer_t; + +private: + string mTag; + string mChars; + vector<XMLAttribute> mAttrs; + vector<XMLTag::Pointer_t> mTags; + eMode mMode; + +public: + XMLTag(string sTag, eMode mode = COMPLETE) : mTag(sTag), mMode(mode) {} + + void addAttr(string name, string value); + void addTag(Pointer_t pTag); + void chars(const string & rChars); + string toString() const; +}; + } #endif // INCLUDED_QNAME_TO_STRING_HXX |