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 | |
parent | 1a4467ea3aee785243cca5270952103a5f55bf7c (diff) |
Get rid of some warnings
Diffstat (limited to 'writerperfect')
-rw-r--r-- | writerperfect/source/filter/FilterInternal.hxx | 30 | ||||
-rw-r--r-- | writerperfect/source/filter/OdgGenerator.cxx | 2 | ||||
-rw-r--r-- | writerperfect/source/filter/OdtGenerator.cxx | 16 | ||||
-rw-r--r-- | writerperfect/source/filter/TextRunStyle.cxx | 16 | ||||
-rw-r--r-- | writerperfect/source/filter/TextRunStyle.hxx | 3 |
5 files changed, 36 insertions, 31 deletions
diff --git a/writerperfect/source/filter/FilterInternal.hxx b/writerperfect/source/filter/FilterInternal.hxx index 7bb7edbfe055..6b7a78ef24b8 100644 --- a/writerperfect/source/filter/FilterInternal.hxx +++ b/writerperfect/source/filter/FilterInternal.hxx @@ -43,34 +43,4 @@ struct ltstr } }; -static 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; -} - -static WPXString getParagraphStyleKey(const WPXPropertyList & xPropList, const WPXPropertyListVector & xTabStops) -{ - WPXString sKey = propListToStyleKey(xPropList); - - WPXString sTabStops; - sTabStops.sprintf("[num-tab-stops:%i]", xTabStops.count()); - WPXPropertyListVector::Iter i(xTabStops); - for (i.rewind(); i.next();) - { - sTabStops.append(propListToStyleKey(i())); - } - sKey.append(sTabStops); - - return sKey; -} - #endif diff --git a/writerperfect/source/filter/OdgGenerator.cxx b/writerperfect/source/filter/OdgGenerator.cxx index bbd435cdaad7..3561bd8055f2 100644 --- a/writerperfect/source/filter/OdgGenerator.cxx +++ b/writerperfect/source/filter/OdgGenerator.cxx @@ -1221,7 +1221,7 @@ void OdgGenerator::endEmbeddedGraphics() { } -void OdgGenerator::startTextObject(WPXPropertyList const &propList, WPXPropertyListVector const &propListVec) +void OdgGenerator::startTextObject(WPXPropertyList const &propList, WPXPropertyListVector const &) { TagOpenElement *pDrawFrameOpenElement = new TagOpenElement("draw:frame"); TagOpenElement *pStyleStyleOpenElement = new TagOpenElement("style:style"); diff --git a/writerperfect/source/filter/OdtGenerator.cxx b/writerperfect/source/filter/OdtGenerator.cxx index ba6d02f9a524..1e64a3bf43ae 100644 --- a/writerperfect/source/filter/OdtGenerator.cxx +++ b/writerperfect/source/filter/OdtGenerator.cxx @@ -638,6 +638,22 @@ void OdtGenerator::closeSection() mpImpl->mfSectionSpaceAfter = 0.0; } +static WPXString getParagraphStyleKey(const WPXPropertyList & xPropList, const WPXPropertyListVector & xTabStops) +{ + WPXString sKey = propListToStyleKey(xPropList); + + WPXString sTabStops; + sTabStops.sprintf("[num-tab-stops:%i]", xTabStops.count()); + WPXPropertyListVector::Iter i(xTabStops); + for (i.rewind(); i.next();) + { + sTabStops.append(propListToStyleKey(i())); + } + sKey.append(sTabStops); + + return sKey; +} + void OdtGenerator::openParagraph(const WPXPropertyList &propList, const WPXPropertyListVector &tabStops) { // FIXMENOW: What happens if we open a footnote inside a table? do we then inherit the footnote's style 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; +} + + diff --git a/writerperfect/source/filter/TextRunStyle.hxx b/writerperfect/source/filter/TextRunStyle.hxx index b9b5763805b3..c9e104d97621 100644 --- a/writerperfect/source/filter/TextRunStyle.hxx +++ b/writerperfect/source/filter/TextRunStyle.hxx @@ -60,4 +60,7 @@ public: private: WPXPropertyList mPropList; }; + +WPXString propListToStyleKey(const WPXPropertyList & xPropList); + #endif |