summaryrefslogtreecommitdiff
path: root/writerperfect/source/writer/exp/txtparai.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2017-09-05 16:35:11 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-09-05 19:40:54 +0200
commit5270eacdbca0347a56392d706e14a7be18704155 (patch)
tree86c3918a125fa9d12bfe9a4842140f7402fef496 /writerperfect/source/writer/exp/txtparai.cxx
parent7d96c84d153417ff01efacd89f3f19803a64dddb (diff)
EPUB export: handle text properties from paragraph styles
Same as previous EPUB commit, but this time for text properties, not paragraph ones. Change-Id: I46d59d92028cf4155bfbbf68805a1b6c259e81e2 Reviewed-on: https://gerrit.libreoffice.org/41945 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'writerperfect/source/writer/exp/txtparai.cxx')
-rw-r--r--writerperfect/source/writer/exp/txtparai.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/writerperfect/source/writer/exp/txtparai.cxx b/writerperfect/source/writer/exp/txtparai.cxx
index b812549c69b3..932ae744f4e9 100644
--- a/writerperfect/source/writer/exp/txtparai.cxx
+++ b/writerperfect/source/writer/exp/txtparai.cxx
@@ -204,6 +204,17 @@ void XMLParaContext::characters(const OUString &rChars)
for (itProp.rewind(); itProp.next();)
aPropertyList.insert(itProp.key(), itProp()->clone());
}
+ else
+ {
+ itStyle = mrImport.GetTextStyles().find(m_aStyleName);
+ if (itStyle != mrImport.GetTextStyles().end())
+ {
+ // Found a named text style.
+ librevenge::RVNGPropertyList::Iter itProp(itStyle->second);
+ for (itProp.rewind(); itProp.next();)
+ aPropertyList.insert(itProp.key(), itProp()->clone());
+ }
+ }
}
mrImport.GetGenerator().openSpan(aPropertyList);