diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-03-02 11:45:45 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-03-02 13:36:27 +0100 |
commit | bf1721917c3dd565c102fc14e977cfd3cab1fa0e (patch) | |
tree | 0b18d2776726ca688c824b6e1a0cef1c05866a89 /unotools | |
parent | a0cc0d2a45ae480e4e1f968b213360ec0b17fdee (diff) |
sfx2 classification: use SvtPathOptions
In preparation to be able to edit the policy path from SvxPathTabPage.
Change-Id: I7a8e03e9acf2e8096a5e00d1424c75fe31735c1d
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/config/pathoptions.cxx | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/unotools/source/config/pathoptions.cxx b/unotools/source/config/pathoptions.cxx index 42fcd81cbf76..13fa33500914 100644 --- a/unotools/source/config/pathoptions.cxx +++ b/unotools/source/config/pathoptions.cxx @@ -126,6 +126,7 @@ class SvtPathOptions_Impl const OUString& GetWorkPath() { return GetPath( SvtPathOptions::PATH_WORK ); } const OUString& GetUIConfigPath() { return GetPath( SvtPathOptions::PATH_UICONFIG ); } const OUString& GetFingerprintPath() { return GetPath( SvtPathOptions::PATH_FINGERPRINT ); } + const OUString& GetClassificationPath() { return GetPath( SvtPathOptions::PATH_CLASSIFICATION ); } // set the paths void SetPath( SvtPathOptions::Paths, const OUString& rNewPath ); @@ -151,6 +152,7 @@ class SvtPathOptions_Impl void SetTemplatePath( const OUString& rPath ) { SetPath( SvtPathOptions::PATH_TEMPLATE, rPath ); } void SetUserConfigPath( const OUString& rPath ) { SetPath( SvtPathOptions::PATH_USERCONFIG, rPath ); } void SetWorkPath( const OUString& rPath ) { SetPath( SvtPathOptions::PATH_WORK, rPath ); } + void SetClassificationPath( const OUString& rPath ) { SetPath( SvtPathOptions::PATH_CLASSIFICATION, rPath ); } OUString SubstVar( const OUString& rVar ) const; OUString ExpandMacros( const OUString& rPath ) const; @@ -202,7 +204,8 @@ static const PropertyStruct aPropNames[] = { "UserConfig", SvtPathOptions::PATH_USERCONFIG }, { "Work", SvtPathOptions::PATH_WORK }, { "UIConfig", SvtPathOptions::PATH_UICONFIG }, - { "Fingerprint", SvtPathOptions::PATH_FINGERPRINT } + { "Fingerprint", SvtPathOptions::PATH_FINGERPRINT }, + { "Classification", SvtPathOptions::PATH_CLASSIFICATION } }; static const VarNameAttribute aVarNameAttribute[] = @@ -584,6 +587,11 @@ const OUString& SvtPathOptions::GetWorkPath() const return pImp->GetWorkPath(); } +const OUString& SvtPathOptions::GetClassificationPath() const +{ + return pImp->GetClassificationPath(); +} + void SvtPathOptions::SetAddinPath( const OUString& rPath ) { pImp->SetAddinPath( rPath ); @@ -694,6 +702,11 @@ void SvtPathOptions::SetWorkPath( const OUString& rPath ) pImp->SetWorkPath( rPath ); } +void SvtPathOptions::SetClassificationPath( const OUString& rPath ) +{ + pImp->SetClassificationPath( rPath ); +} + OUString SvtPathOptions::SubstituteVariable( const OUString& rVar ) const { return pImp->SubstVar( rVar ); @@ -778,6 +791,7 @@ bool SvtPathOptions::SearchFile( OUString& rIniFile, Paths ePath ) case PATH_WORK: aPath = GetWorkPath(); break; case PATH_UICONFIG: aPath = GetUIConfigPath(); break; case PATH_FINGERPRINT: aPath = GetFingerprintPath(); break; + case PATH_CLASSIFICATION: aPath = GetClassificationPath(); break; // coverity[dead_error_begin] - following conditions exist to avoid compiler warning case PATH_USERCONFIG: case PATH_COUNT: |