From fb4943338317c8f24b143d7d1f0b8f2069af1577 Mon Sep 17 00:00:00 2001 From: Vitaliy Anderson Date: Fri, 13 Jan 2017 08:37:39 -0800 Subject: tdf#104349, tdf#104668 MS Word compatibility trailing blanks option part 2 Create the option in Tools->Options->LibreOffice Writer->Compatibility Change-Id: I7c766138db9210d3e7a97eea48b9265ee9762199 Reviewed-on: https://gerrit.libreoffice.org/33148 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- include/unotools/compatibility.hxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/unotools/compatibility.hxx b/include/unotools/compatibility.hxx index 229190c42415..551627b251a1 100644 --- a/include/unotools/compatibility.hxx +++ b/include/unotools/compatibility.hxx @@ -40,7 +40,8 @@ enum CompatibilityOptions COPT_USE_OUR_TEXTWRAPPING, COPT_CONSIDER_WRAPPINGSTYLE, COPT_EXPAND_WORDSPACE, - COPT_PROTECT_FORM + COPT_PROTECT_FORM, + COPT_MS_WORD_COMP_TRAILING_BLANKS }; /*-************************************************************************************************************ @@ -61,6 +62,7 @@ enum CompatibilityOptions #define COMPATIBILITY_PROPERTYNAME_CONSIDERWRAPPINGSTYLE "ConsiderWrappingStyle" #define COMPATIBILITY_PROPERTYNAME_EXPANDWORDSPACE "ExpandWordSpace" #define COMPATIBILITY_PROPERTYNAME_PROTECTFORM "ProtectForm" +#define COMPATIBILITY_PROPERTYNAME_MSWORDTRAILINGBLANKS "MsWordCompTrailingBlanks" #define COMPATIBILITY_DEFAULT_NAME "_default" @@ -132,7 +134,8 @@ class UNOTOOLS_DLLPUBLIC SvtCompatibilityOptions: public utl::detail::Options bool bUseOurTextWrapping, bool bConsiderWrappingStyle, bool bExpandWordSpace, - bool bProtectForm ); + bool bProtectForm, + bool bMsWordCompTrailingBlanks ); bool IsUsePrtDevice() const; bool IsAddSpacing() const; @@ -145,6 +148,7 @@ class UNOTOOLS_DLLPUBLIC SvtCompatibilityOptions: public utl::detail::Options bool IsUseOurTextWrapping() const; bool IsConsiderWrappingStyle() const; bool IsExpandWordSpace() const; + bool IsMsWordCompTrailingBlanks() const; private: -- cgit