summaryrefslogtreecommitdiff
path: root/writerperfect/source/writer/exp/xmltbli.cxx
diff options
context:
space:
mode:
authorMark Hung <marklh9@gmail.com>2018-02-20 18:40:38 +0800
committerMiklos Vajna <vmiklos@collabora.co.uk>2018-04-10 09:33:51 +0200
commitc6d3d0642e0f5d24cab402a8a7c6f81406d044cf (patch)
tree849e29a0ef41b537e3d7038f6542ecf807dd729c /writerperfect/source/writer/exp/xmltbli.cxx
parent8cbf84ed33014339cfc9741c1371cd065110060f (diff)
tdf#115623: invoke openPageSpan / closePageSpan
* For paragraphs or tables whose styles specify style:master-page-name, it indicate starting a new page style and should invoke openPageSpan / closePageSapn properly. * closePageSpan at the end of text body is invoked. Change-Id: Ic85157c9b1a43c94a027b464ad9105e9072afcf7 Reviewed-on: https://gerrit.libreoffice.org/52082 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.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/writerperfect/source/writer/exp/xmltbli.cxx b/writerperfect/source/writer/exp/xmltbli.cxx
index bec52dab0f22..82468e12a91a 100644
--- a/writerperfect/source/writer/exp/xmltbli.cxx
+++ b/writerperfect/source/writer/exp/xmltbli.cxx
@@ -205,7 +205,10 @@ void XMLTableContext::startElement(const OUString &/*rName*/, const css::uno::Re
const OUString &rAttributeValue = xAttribs->getValueByIndex(i);
if (rAttributeName == "table:style-name")
+ {
FillStyles(rAttributeValue, mrImport.GetAutomaticTableStyles(), mrImport.GetTableStyles(), m_aPropertyList);
+ mrImport.HandlePageSpan(m_aPropertyList);
+ }
else
{
OString sName = OUStringToOString(rAttributeName, RTL_TEXTENCODING_UTF8);