diff options
author | Justin Luth <justin_luth@sil.org> | 2018-07-16 20:55:33 +0300 |
---|---|---|
committer | Justin Luth <justin_luth@sil.org> | 2018-07-21 21:37:18 +0200 |
commit | 6b7f12f6108f136d60bd77e3787ef6a2632038cd (patch) | |
tree | ba776afea901977cc585c317c787f5d5eea0c023 /writerfilter/source/dmapper/DomainMapper_Impl.hxx | |
parent | 71821a74d65765afa9f2273d98b5b0cc3ac2782f (diff) |
writerfilter: default style is the last one
Documentation states, and the examples confirm that
"If this attribute (w:default) is specified by multiple styles, then
the last instance of a style with this property shall be used."
Change-Id: I17f06ab8944a39341a00c479117e978a01d6af7a
Reviewed-on: https://gerrit.libreoffice.org/57510
Tested-by: Jenkins
Reviewed-by: Justin Luth <justin_luth@sil.org>
Diffstat (limited to 'writerfilter/source/dmapper/DomainMapper_Impl.hxx')
-rw-r--r-- | writerfilter/source/dmapper/DomainMapper_Impl.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.hxx b/writerfilter/source/dmapper/DomainMapper_Impl.hxx index 555c2dd35bb9..013f8aaa5799 100644 --- a/writerfilter/source/dmapper/DomainMapper_Impl.hxx +++ b/writerfilter/source/dmapper/DomainMapper_Impl.hxx @@ -475,6 +475,7 @@ private: ::std::vector<DeletableTabStop> m_aCurrentTabStops; OUString m_sCurrentParaStyleName; //highly inaccurate. Overwritten by "overlapping" paragraphs like comments, flys. + OUString m_sDefaultParaStyleName; //caches the ConvertedStyleName of the default paragraph style bool m_bInStyleSheetImport; //in import of fonts, styles, lists or lfos bool m_bInAnyTableImport; //in import of fonts, styles, lists or lfos bool m_bInHeaderFooterImport; @@ -694,6 +695,7 @@ public: void SetCurrentParaStyleName(const OUString& sStringValue) {m_sCurrentParaStyleName = sStringValue;} const OUString GetCurrentParaStyleName(); + const OUString GetDefaultParaStyleName(); css::uno::Any GetPropertyFromStyleSheet(PropertyIds eId); void SetStyleSheetImport( bool bSet ) { m_bInStyleSheetImport = bSet;} |