diff options
author | Sarper Akdemir <sarper.akdemir@collabora.com> | 2021-05-09 20:56:41 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-06-23 23:30:38 +0200 |
commit | 3e65f59f3cf43db02ab4f25cc5668d74d77cdb59 (patch) | |
tree | d6b92956c0dba218aaa2d53296d3e8deeecaaacd /oox/source | |
parent | tdf#59323: ooxml import: hasNoninheritedBodyProperties (diff) | |
download | core-3e65f59f3cf43db02ab4f25cc5668d74d77cdb59.tar.gz core-3e65f59f3cf43db02ab4f25cc5668d74d77cdb59.zip |
tdf#59323: ooxml import: hasListStyleOnImport
Introduces hasListStyleOnImport to determine whether or not the textbody had a
non-empty lstStyle tag in it on import.
Change-Id: Iccb8cfb20e4402e7cadb8e2f2b9a1f6fa178ade4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117007
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117534
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'oox/source')
-rw-r--r-- | oox/source/drawingml/textliststyle.cxx | 1 | ||||
-rw-r--r-- | oox/source/drawingml/textliststylecontext.cxx | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/oox/source/drawingml/textliststyle.cxx b/oox/source/drawingml/textliststyle.cxx index 15475ddcacb0..59061f16eafa 100644 --- a/oox/source/drawingml/textliststyle.cxx +++ b/oox/source/drawingml/textliststyle.cxx @@ -23,6 +23,7 @@ namespace oox { namespace drawingml { TextListStyle::TextListStyle() + : mbHasListStyleOnImport(false) { for ( int i = 0; i < 9; i++ ) { diff --git a/oox/source/drawingml/textliststylecontext.cxx b/oox/source/drawingml/textliststylecontext.cxx index 9c43e7206f1b..dee3a71e3f80 100644 --- a/oox/source/drawingml/textliststylecontext.cxx +++ b/oox/source/drawingml/textliststylecontext.cxx @@ -42,6 +42,7 @@ TextListStyleContext::~TextListStyleContext() ContextHandlerRef TextListStyleContext::onCreateContext( sal_Int32 aElementToken, const AttributeList& rAttribs ) { + mrTextListStyle.setHasListStyleOnImport(); switch( aElementToken ) { case A_TOKEN( defPPr ): // CT_TextParagraphProperties |