1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: pathoptions.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef INCLUDED_SVTOOLS_PATHOPTIONS_HXX
31 #define INCLUDED_SVTOOLS_PATHOPTIONS_HXX
33 #include <tools/string.hxx>
34 #include <com/sun/star/lang/Locale.hpp>
35 #include <bf_svtools/options.hxx>
37 #define SVT_SEARCHPATH_DELIMITER ';'
42 // class SvtPathOptions --------------------------------------------------
44 class SvtPathOptions_Impl
;
45 class SvtPathOptions
: public Options
48 SvtPathOptions_Impl
* pImp
;
78 PATH_COUNT
// should always be the last element
82 virtual ~SvtPathOptions();
84 // get the pathes, not const because of using a mutex
85 const String
& GetAddinPath() const;
86 const String
& GetAutoCorrectPath() const;
87 const String
& GetAutoTextPath() const;
88 const String
& GetBackupPath() const;
89 const String
& GetBasicPath() const;
90 const String
& GetBitmapPath() const;
91 const String
& GetConfigPath() const;
92 const String
& GetDictionaryPath() const;
93 const String
& GetFavoritesPath() const;
94 const String
& GetFilterPath() const;
95 const String
& GetGalleryPath() const;
96 const String
& GetGraphicPath() const;
97 const String
& GetHelpPath() const;
98 const String
& GetLinguisticPath() const;
99 const String
& GetModulePath() const;
100 const String
& GetPalettePath() const;
101 const String
& GetPluginPath() const;
102 const String
& GetStoragePath() const;
103 const String
& GetTempPath() const;
104 const String
& GetTemplatePath() const;
105 const String
& GetUserConfigPath() const;
106 const String
& GetUserDictionaryPath() const;
107 const String
& GetWorkPath() const;
108 const String
& GetUIConfigPath() const;
109 const String
& GetFingerprintPath() const;
112 void SetBasicPath( const String
& rPath
);
114 String
SubstituteVariable( const String
& rVar
);
115 String
UseVariable( const String
& rVar
);
116 sal_Bool
SearchFile( String
& rIniFile
, Pathes ePath
= PATH_USERCONFIG
);
117 sal_Bool
IsReadonly() const;
122 #endif // #ifndef INCLUDED_SVTOOLS_PATHOPTIONS_HXX