summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-07-23 20:05:19 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-07-24 22:52:27 +0200
commit6f07012a344101f2afbf9c96dc7857127f39a25f (patch)
treef2ae2713ef5d1a6a244252e337c0ee849eb71c2f /unotools
parentd904a21d5516ce2786f634d0bcc555c4b345e95d (diff)
use officecfg to retrieve AutoSave
Change-Id: I613ca68123cfd316cd4e6384f743aa6756d9291d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119459 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/config/saveopt.cxx48
1 files changed, 3 insertions, 45 deletions
diff --git a/unotools/source/config/saveopt.cxx b/unotools/source/config/saveopt.cxx
index 5bb82488695a..f1ccc712e810 100644
--- a/unotools/source/config/saveopt.cxx
+++ b/unotools/source/config/saveopt.cxx
@@ -71,7 +71,6 @@ class SvtSaveOptions_Impl : public utl::ConfigItem
bool bROAutoSaveTime,
bROUseUserData,
bROBackup,
- bROAutoSave,
bROUserAutoSave,
bROWarnAlienFormat,
bROLoadDocPrinter,
@@ -87,7 +86,6 @@ public:
sal_Int32 GetAutoSaveTime() const { return nAutoSaveTime; }
bool IsUseUserData() const { return bUseUserData; }
bool IsBackup() const { return bBackup; }
- bool IsAutoSave() const { return bAutoSave; }
bool IsUserAutoSave() const { return bUserAutoSave; }
bool IsWarnAlienFormat() const { return bWarnAlienFormat; }
bool IsLoadDocPrinter() const { return bLoadDocPrinter; }
@@ -98,7 +96,6 @@ public:
void SetAutoSaveTime( sal_Int32 n );
void SetUseUserData( bool b );
void SetBackup( bool b );
- void SetAutoSave( bool b );
void SetUserAutoSave( bool b );
void SetWarnAlienFormat( bool _bDoPP );
void SetLoadDocPrinter( bool bNew );
@@ -137,16 +134,6 @@ void SvtSaveOptions_Impl::SetBackup( bool b )
}
}
-void SvtSaveOptions_Impl::SetAutoSave( bool b )
-{
- if (!bROAutoSave && bAutoSave!=b)
- {
- bAutoSave = b;
- SetModified();
- Commit();
- }
-}
-
void SvtSaveOptions_Impl::SetUserAutoSave( bool b )
{
if (!bROUserAutoSave && bUserAutoSave!=b)
@@ -198,9 +185,6 @@ bool SvtSaveOptions_Impl::IsReadOnly( SvtSaveOptions::EOption eOption ) const
case SvtSaveOptions::EOption::Backup :
bReadOnly = bROBackup;
break;
- case SvtSaveOptions::EOption::AutoSave :
- bReadOnly = bROAutoSave;
- break;
case SvtSaveOptions::EOption::UserAutoSave :
bReadOnly = bROUserAutoSave;
break;
@@ -221,10 +205,9 @@ bool SvtSaveOptions_Impl::IsReadOnly( SvtSaveOptions::EOption eOption ) const
#define TIMEINTERVALL 1
#define USEUSERDATA 2
#define CREATEBACKUP 3
-#define AUTOSAVE 4
-#define WARNALIENFORMAT 5
-#define LOADDOCPRINTER 6
-#define ODFDEFAULTVERSION 7
+#define WARNALIENFORMAT 4
+#define LOADDOCPRINTER 5
+#define ODFDEFAULTVERSION 6
static Sequence< OUString > GetPropertyNames()
{
@@ -234,7 +217,6 @@ static Sequence< OUString > GetPropertyNames()
"Document/AutoSaveTimeIntervall",
"Document/UseUserData",
"Document/CreateBackup",
- "Document/AutoSave",
"Document/WarnAlienFormat",
"Document/LoadPrinter",
"ODF/DefaultVersion"
@@ -254,7 +236,6 @@ SvtSaveOptions_Impl::SvtSaveOptions_Impl()
, nAutoSaveTime( 0 )
, bUseUserData( false )
, bBackup( false )
- , bAutoSave( false )
, bUserAutoSave( false )
, bWarnAlienFormat( true )
, bLoadDocPrinter( true )
@@ -262,7 +243,6 @@ SvtSaveOptions_Impl::SvtSaveOptions_Impl()
, bROAutoSaveTime( CFG_READONLY_DEFAULT )
, bROUseUserData( CFG_READONLY_DEFAULT )
, bROBackup( CFG_READONLY_DEFAULT )
- , bROAutoSave( CFG_READONLY_DEFAULT )
, bROUserAutoSave( CFG_READONLY_DEFAULT )
, bROWarnAlienFormat( CFG_READONLY_DEFAULT )
, bROLoadDocPrinter( CFG_READONLY_DEFAULT )
@@ -330,10 +310,6 @@ SvtSaveOptions_Impl::SvtSaveOptions_Impl()
bBackup = bTemp;
bROBackup = pROStates[nProp];
break;
- case AUTOSAVE :
- bAutoSave = bTemp;
- bROAutoSave = pROStates[nProp];
- break;
case WARNALIENFORMAT:
bWarnAlienFormat = bTemp;
@@ -416,14 +392,6 @@ void SvtSaveOptions_Impl::ImplCommit()
++nRealCount;
}
break;
- case AUTOSAVE :
- if (!bROAutoSave)
- {
- pValues[nRealCount] <<= bAutoSave;
- pNames[nRealCount] = pOrgNames[i];
- ++nRealCount;
- }
- break;
case WARNALIENFORMAT:
if (!bROWarnAlienFormat)
{
@@ -581,16 +549,6 @@ bool SvtSaveOptions::IsBackup() const
return pImp->pSaveOpt->IsBackup();
}
-void SvtSaveOptions::SetAutoSave( bool b )
-{
- pImp->pSaveOpt->SetAutoSave( b );
-}
-
-bool SvtSaveOptions::IsAutoSave() const
-{
- return pImp->pSaveOpt->IsAutoSave();
-}
-
void SvtSaveOptions::SetUserAutoSave( bool b )
{
pImp->pSaveOpt->SetUserAutoSave( b );