diff options
author | Oliver Specht <oliver.specht@cib.de> | 2016-04-22 11:20:02 +0200 |
---|---|---|
committer | Oliver Specht <oliver.specht@cib.de> | 2016-04-22 13:18:40 +0000 |
commit | 8d41866f76ce3909b8d1bba6d0b74c4acb91202b (patch) | |
tree | 8cc312d7f4ebb3f02c854752bad86988bcc066b6 /include/unotools/compatibility.hxx | |
parent | 334599030e7b45153107a3075f9049a7463aac80 (diff) |
tdf#81833: form protection can be modified as compatibility option
ProtectForm is supported to prevent editing outside of form controls
but could only be imported from doc and stored in odt but not changed.
Now it is part of Writer's compatibility settings dialog.
Change-Id: I7337fb3f0774d3c1d26cd8e1485958399b2a70e2
Reviewed-on: https://gerrit.libreoffice.org/24294
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Oliver Specht <oliver.specht@cib.de>
Diffstat (limited to 'include/unotools/compatibility.hxx')
-rw-r--r-- | include/unotools/compatibility.hxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/unotools/compatibility.hxx b/include/unotools/compatibility.hxx index 554f51ed6e78..0cf64faa7e2c 100644 --- a/include/unotools/compatibility.hxx +++ b/include/unotools/compatibility.hxx @@ -40,7 +40,8 @@ enum CompatibilityOptions COPT_USE_OBJECTPOSITIONING, COPT_USE_OUR_TEXTWRAPPING, COPT_CONSIDER_WRAPPINGSTYLE, - COPT_EXPAND_WORDSPACE + COPT_EXPAND_WORDSPACE, + COPT_PROTECT_FORM }; /*-************************************************************************************************************ @@ -60,6 +61,7 @@ enum CompatibilityOptions #define COMPATIBILITY_PROPERTYNAME_USEOURTEXTWRAPPING "UseOurTextWrapping" #define COMPATIBILITY_PROPERTYNAME_CONSIDERWRAPPINGSTYLE "ConsiderWrappingStyle" #define COMPATIBILITY_PROPERTYNAME_EXPANDWORDSPACE "ExpandWordSpace" +#define COMPATIBILITY_PROPERTYNAME_PROTECTFORM "ProtectForm" #define COMPATIBILITY_DEFAULT_NAME "_default" @@ -147,7 +149,8 @@ class UNOTOOLS_DLLPUBLIC SvtCompatibilityOptions: public utl::detail::Options bool bUseObjectPositioning, bool bUseOurTextWrapping, bool bConsiderWrappingStyle, - bool bExpandWordSpace ); + bool bExpandWordSpace, + bool bProtectForm ); bool IsUsePrtDevice() const; bool IsAddSpacing() const; @@ -160,6 +163,7 @@ class UNOTOOLS_DLLPUBLIC SvtCompatibilityOptions: public utl::detail::Options bool IsUseOurTextWrapping() const; bool IsConsiderWrappingStyle() const; bool IsExpandWordSpace() const; + bool IsProtectForm() const; // private methods |