diff options
-rw-r--r-- | writerperfect/source/writer/EPUBPackage.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/writerperfect/source/writer/EPUBPackage.cxx b/writerperfect/source/writer/EPUBPackage.cxx index 7589dae19722..520fece6d9ca 100644 --- a/writerperfect/source/writer/EPUBPackage.cxx +++ b/writerperfect/source/writer/EPUBPackage.cxx @@ -59,11 +59,16 @@ void EPUBPackage::openXMLFile(const char *pName) mxOutputWriter->startDocument(); } -void EPUBPackage::openElement(const char *pName, const librevenge::RVNGPropertyList &/*rAttributes*/) +void EPUBPackage::openElement(const char *pName, const librevenge::RVNGPropertyList &rAttributes) { assert(mxOutputWriter.is()); rtl::Reference<SvXMLAttributeList> pAttributeList(new SvXMLAttributeList()); + + librevenge::RVNGPropertyList::Iter it(rAttributes); + for (it.rewind(); it.next();) + pAttributeList->AddAttribute(OUString::fromUtf8(it.key()), OUString::fromUtf8(it()->getStr().cstr())); + mxOutputWriter->startElement(OUString::fromUtf8(pName), uno::Reference<xml::sax::XAttributeList>(pAttributeList.get())); } |