diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-04-01 15:03:46 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-04-01 15:03:46 +0100 |
commit | c0b9eff24e4bdfa0c5fe8b8f435e1c1730b65ee1 (patch) | |
tree | c103f83aacbc87d95a3365c25d79e685669875e1 /sw | |
parent | cc2b6dbb262db76afe006847a7dddbd0827a8380 (diff) |
support avoiding config in SwTableAutoFormatTable
Change-Id: I9d62efc7f57e8893fc5fbd1a8bec1f7cbbbeb2e7
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/tblafmt.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/source/core/doc/tblafmt.cxx b/sw/source/core/doc/tblafmt.cxx index 57cacf03a8c0..13c0e7383834 100644 --- a/sw/source/core/doc/tblafmt.cxx +++ b/sw/source/core/doc/tblafmt.cxx @@ -25,6 +25,7 @@ #include <svl/urihelper.hxx> #include <svl/zforlist.hxx> #include <svl/zformat.hxx> +#include <unotools/configmgr.hxx> #include <unotools/pathoptions.hxx> #include <sfx2/app.hxx> #include <svx/dialmgr.hxx> @@ -1286,6 +1287,8 @@ SwTableAutoFormatTable::SwTableAutoFormatTable() bool SwTableAutoFormatTable::Load() { + if (utl::ConfigManager::IsAvoidConfig()) + return false; bool bRet = false; OUString sNm(AUTOTABLE_FORMAT_NAME); SvtPathOptions aOpt; @@ -1301,6 +1304,8 @@ bool SwTableAutoFormatTable::Load() bool SwTableAutoFormatTable::Save() const { + if (utl::ConfigManager::IsAvoidConfig()) + return false; SvtPathOptions aPathOpt; const OUString sNm( aPathOpt.GetUserConfigPath() + "/" AUTOTABLE_FORMAT_NAME ); SfxMedium aStream(sNm, StreamMode::STD_WRITE ); |