diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-11-24 09:11:32 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-11-24 11:14:21 +0100 |
commit | de523ce9b834b2d8f29409fe21d68b81ef314fe5 (patch) | |
tree | 725ca00ea058a0c682e4779c05b4c7a7f72ad6da /writerperfect/source/writer/exp/xmltbli.cxx | |
parent | 0baecd418e79a703dcf89fec3f66e416beefcf56 (diff) |
EPUB export: handle cell border size/style/color
By adding support for automatic cell styles.
Change-Id: I31ff2bb6fed3391f571705505ccbbd89087e5972
Reviewed-on: https://gerrit.libreoffice.org/45201
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'writerperfect/source/writer/exp/xmltbli.cxx')
-rw-r--r-- | writerperfect/source/writer/exp/xmltbli.cxx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/writerperfect/source/writer/exp/xmltbli.cxx b/writerperfect/source/writer/exp/xmltbli.cxx index cdaabdab0349..15444bc33e0b 100644 --- a/writerperfect/source/writer/exp/xmltbli.cxx +++ b/writerperfect/source/writer/exp/xmltbli.cxx @@ -50,9 +50,14 @@ void XMLTableCellContext::startElement(const OUString &/*rName*/, const css::uno const OUString &rAttributeName = xAttribs->getNameByIndex(i); const OUString &rAttributeValue = xAttribs->getValueByIndex(i); - OString sName = OUStringToOString(rAttributeName, RTL_TEXTENCODING_UTF8); - OString sValue = OUStringToOString(rAttributeValue, RTL_TEXTENCODING_UTF8); - aPropertyList.insert(sName.getStr(), sValue.getStr()); + if (rAttributeName == "table:style-name") + FillStyles(rAttributeValue, mrImport.GetAutomaticCellStyles(), mrImport.GetCellStyles(), aPropertyList); + else + { + OString sName = OUStringToOString(rAttributeName, RTL_TEXTENCODING_UTF8); + OString sValue = OUStringToOString(rAttributeValue, RTL_TEXTENCODING_UTF8); + aPropertyList.insert(sName.getStr(), sValue.getStr()); + } } mrImport.GetGenerator().openTableCell(aPropertyList); } |