diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-09-03 19:42:24 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-09-03 19:42:24 +0200 |
commit | 91fd138dfed7075f50525a4ccd042c689d3e1b3d (patch) | |
tree | 0f49138f46541deb483e95c6a399a11f1fe12789 /writerperfect/source/filter/TextRunStyle.cxx | |
parent | 1a4467ea3aee785243cca5270952103a5f55bf7c (diff) |
Get rid of some warnings
Diffstat (limited to 'writerperfect/source/filter/TextRunStyle.cxx')
-rw-r--r-- | writerperfect/source/filter/TextRunStyle.cxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/writerperfect/source/filter/TextRunStyle.cxx b/writerperfect/source/filter/TextRunStyle.cxx index e09d3a5ae8a2..c4fdd3c6996c 100644 --- a/writerperfect/source/filter/TextRunStyle.cxx +++ b/writerperfect/source/filter/TextRunStyle.cxx @@ -178,3 +178,19 @@ void SpanStyle::write(OdfDocumentHandler *pHandler) const pHandler->endElement("style:text-properties"); pHandler->endElement("style:style"); } + +WPXString propListToStyleKey(const WPXPropertyList & xPropList) +{ + WPXString sKey; + WPXPropertyList::Iter i(xPropList); + for (i.rewind(); i.next(); ) + { + WPXString sProp; + sProp.sprintf("[%s:%s]", i.key(), i()->getStr().cstr()); + sKey.append(sProp); + } + + return sKey; +} + + |