diff options
author | Krisztian Pinter <pin.terminator@gmail.com> | 2013-02-26 16:43:48 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2013-03-07 10:11:47 +0100 |
commit | 895898596c72fd14db2abec3aeaab74d583769e5 (patch) | |
tree | 61587b3cb2638b20931ede8114b6fc3ae5a32f87 /shell | |
parent | 98645ae6d4bc7b85730a0a9f00bd2de86dd09be9 (diff) |
WIP: fdo#47011 autosave feature
Change-Id: Ib2cbcc33e6188c60c183b5f47e9ae9c9d4c91b95
Diffstat (limited to 'shell')
-rw-r--r-- | shell/source/backends/gconfbe/gconfaccess.cxx | 21 | ||||
-rw-r--r-- | shell/source/backends/gconfbe/gconfaccess.hxx | 1 |
2 files changed, 22 insertions, 0 deletions
diff --git a/shell/source/backends/gconfbe/gconfaccess.cxx b/shell/source/backends/gconfbe/gconfaccess.cxx index 4705013097f6..71276daae499 100644 --- a/shell/source/backends/gconfbe/gconfaccess.cxx +++ b/shell/source/backends/gconfbe/gconfaccess.cxx @@ -34,6 +34,7 @@ #define GCONF_PROXY_MODE_KEY "/system/proxy/mode" #define GCONF_AUTO_SAVE_KEY "/apps/openoffice/auto_save" +#define GCONF_USER_AUTO_SAVE_KEY "/apps/openoffice/user_auto_save" namespace gconfaccess { @@ -433,6 +434,18 @@ sal_Bool SAL_CALL isDependencySatisfied( GConfClient* pClient, const Configurati } } break; + case SETTING_USER_AUTO_SAVE: + { + GConfValue* pGconfValue = gconf_client_get( pClient, GCONF_USER_AUTO_SAVE_KEY, NULL ); + + if( ( pGconfValue != NULL ) ) + { + bool bOk = gconf_value_get_bool( pGconfValue ); + gconf_value_free( pGconfValue ); + if (bOk) return sal_True; + } + } + break; #endif // ENABLE_LOCKDOWN default: @@ -599,6 +612,14 @@ ConfigurationValue const ConfigurationValues[] = }, { + SETTING_USER_AUTO_SAVE, + GCONF_USER_AUTO_SAVE_KEY, + RTL_CONSTASCII_STRINGPARAM("UserAutoSaveEnabled"), + sal_False, + SETTINGS_LAST + }, + + { SETTING_AUTO_SAVE_INTERVAL, "/apps/openoffice/auto_save_interval", RTL_CONSTASCII_STRINGPARAM("AutoSaveTimeIntervall"), diff --git a/shell/source/backends/gconfbe/gconfaccess.hxx b/shell/source/backends/gconfbe/gconfaccess.hxx index 98ce947b2647..7f0a52a61c42 100644 --- a/shell/source/backends/gconfbe/gconfaccess.hxx +++ b/shell/source/backends/gconfbe/gconfaccess.hxx @@ -80,6 +80,7 @@ enum ConfigurationSetting SETTING_CREATE_BACKUP, SETTING_WARN_ALIEN_FORMAT, SETTING_AUTO_SAVE, + SETTING_USER_AUTO_SAVE, SETTING_AUTO_SAVE_INTERVAL, SETTING_WRITER_DEFAULT_DOC_FORMAT, SETTING_IMPRESS_DEFAULT_DOC_FORMAT, |