LibreOffice Module unotools (master) 1
|
#include <pathoptions.hxx>
Public Types | |
enum class | Paths : sal_uInt16 { AddIn , AutoCorrect , AutoText , Backup , Basic , Bitmap , Config , Dictionary , Favorites , Filter , Gallery , Graphic , Help , IconSet , Linguistic , Module , Palette , Plugin , Storage , Temp , Template , UserConfig , Work , Classification , UIConfig , Fingerprint , NumberText , LAST } |
Public Member Functions | |
SvtPathOptions () | |
virtual | ~SvtPathOptions () override |
const OUString & | GetAddinPath () const |
const OUString & | GetAutoCorrectPath () const |
const OUString & | GetAutoTextPath () const |
const OUString & | GetBackupPath () const |
const OUString & | GetBasicPath () const |
const OUString & | GetBitmapPath () const |
const OUString & | GetConfigPath () const |
const OUString & | GetDictionaryPath () const |
const OUString & | GetFavoritesPath () const |
const OUString & | GetFilterPath () const |
const OUString & | GetGalleryPath () const |
const OUString & | GetGraphicPath () const |
const OUString & | GetHelpPath () const |
const OUString & | GetLinguisticPath () const |
const OUString & | GetModulePath () const |
const OUString & | GetIconsetPath () const |
const OUString & | GetPalettePath () const |
const OUString & | GetPluginPath () const |
const OUString & | GetStoragePath () const |
const OUString & | GetTempPath () const |
const OUString & | GetTemplatePath () const |
const OUString & | GetUserConfigPath () const |
const OUString & | GetWorkPath () const |
const OUString & | GetFingerprintPath () const |
const OUString & | GetNumbertextPath () const |
const OUString & | GetClassificationPath () const |
void | SetAutoTextPath (const OUString &rPath) |
void | SetBasicPath (const OUString &rPath) |
void | SetTempPath (const OUString &rPath) |
OUString | SubstituteVariable (const OUString &rVar) const |
OUString | ExpandMacros (const OUString &rPath) const |
OUString | UseVariable (const OUString &rVar) const |
bool | SearchFile (OUString &rIniFile, Paths ePath=Paths::UserConfig) |
Public Member Functions inherited from utl::detail::Options | |
Options () | |
virtual | ~Options () override=0 |
Public Member Functions inherited from utl::ConfigurationBroadcaster | |
void | AddListener (utl::ConfigurationListener *pListener) |
void | RemoveListener (utl::ConfigurationListener const *pListener) |
void | NotifyListeners (ConfigurationHints nHint) |
ConfigurationBroadcaster () | |
ConfigurationBroadcaster (ConfigurationBroadcaster const &) | |
virtual | ~ConfigurationBroadcaster () |
ConfigurationBroadcaster & | operator= (ConfigurationBroadcaster const &other) |
virtual void | BlockBroadcasts (bool bBlock) |
Public Member Functions inherited from utl::ConfigurationListener | |
virtual | ~ConfigurationListener () |
virtual void | ConfigurationChanged (ConfigurationBroadcaster *p, ConfigurationHints nHint)=0 |
Private Attributes | |
std::shared_ptr< SvtPathOptions_Impl > | pImpl |
Additional Inherited Members | |
Protected Member Functions inherited from utl::detail::Options | |
virtual void | ConfigurationChanged (::utl::ConfigurationBroadcaster *p, ConfigurationHints nHint) override |
Handle various defined paths
All path functions return URLs!
Definition at line 34 of file pathoptions.hxx.
|
strong |
Definition at line 41 of file pathoptions.hxx.
SvtPathOptions::SvtPathOptions | ( | ) |
Definition at line 425 of file pathoptions.cxx.
References g_pOptions, ItemHolder1::holdConfigItem(), PathOptions, and pImpl.
|
overridevirtual |
Definition at line 439 of file pathoptions.cxx.
References pImpl.
OUString SvtPathOptions::ExpandMacros | ( | const OUString & | rPath | ) | const |
Definition at line 597 of file pathoptions.cxx.
References pImpl.
const OUString & SvtPathOptions::GetAddinPath | ( | ) | const |
const OUString & SvtPathOptions::GetAutoCorrectPath | ( | ) | const |
const OUString & SvtPathOptions::GetAutoTextPath | ( | ) | const |
const OUString & SvtPathOptions::GetBackupPath | ( | ) | const |
const OUString & SvtPathOptions::GetBasicPath | ( | ) | const |
const OUString & SvtPathOptions::GetBitmapPath | ( | ) | const |
const OUString & SvtPathOptions::GetClassificationPath | ( | ) | const |
const OUString & SvtPathOptions::GetConfigPath | ( | ) | const |
const OUString & SvtPathOptions::GetDictionaryPath | ( | ) | const |
const OUString & SvtPathOptions::GetFavoritesPath | ( | ) | const |
const OUString & SvtPathOptions::GetFilterPath | ( | ) | const |
const OUString & SvtPathOptions::GetFingerprintPath | ( | ) | const |
const OUString & SvtPathOptions::GetGalleryPath | ( | ) | const |
const OUString & SvtPathOptions::GetGraphicPath | ( | ) | const |
const OUString & SvtPathOptions::GetHelpPath | ( | ) | const |
const OUString & SvtPathOptions::GetIconsetPath | ( | ) | const |
const OUString & SvtPathOptions::GetLinguisticPath | ( | ) | const |
const OUString & SvtPathOptions::GetModulePath | ( | ) | const |
const OUString & SvtPathOptions::GetNumbertextPath | ( | ) | const |
const OUString & SvtPathOptions::GetPalettePath | ( | ) | const |
const OUString & SvtPathOptions::GetPluginPath | ( | ) | const |
const OUString & SvtPathOptions::GetStoragePath | ( | ) | const |
const OUString & SvtPathOptions::GetTemplatePath | ( | ) | const |
const OUString & SvtPathOptions::GetTempPath | ( | ) | const |
const OUString & SvtPathOptions::GetUserConfigPath | ( | ) | const |
const OUString & SvtPathOptions::GetWorkPath | ( | ) | const |
bool SvtPathOptions::SearchFile | ( | OUString & | rIniFile, |
SvtPathOptions::Paths | ePath = Paths::UserConfig |
||
) |
Definition at line 607 of file pathoptions.cxx.
References AddIn, aURL, AutoCorrect, AutoText, Backup, Basic, Bitmap, Classification, Config, Dictionary, utl::UCBContentHelper::Exists(), Favorites, Filter, Fingerprint, Gallery, Translate::get(), GetAddinPath(), GetAutoCorrectPath(), GetAutoTextPath(), GetBackupPath(), GetBasicPath(), GetBitmapPath(), GetClassificationPath(), GetConfigPath(), GetDictionaryPath(), GetFavoritesPath(), GetFilterPath(), GetFingerprintPath(), GetGalleryPath(), GetGraphicPath(), GetHelpPath(), GetIconsetPath(), GetLinguisticPath(), INetURLObject::GetMainURL(), GetModulePath(), GetNumbertextPath(), GetPalettePath(), GetPluginPath(), INetURLObject::GetProtocol(), GetStoragePath(), GetTemplatePath(), GetTempPath(), o3tl::getToken(), INetURLObject::GetURLPath(), GetUserConfigPath(), GetWorkPath(), Graphic, INetURLObject::HasError(), Help, IconSet, INetURLObject::insertName(), LAST, Linguistic, Module, INetURLObject::NONE, NumberText, Palette, pImpl, Plugin, SAL_WARN, SEARCHPATH_DELIMITER, INetURLObject::SetSmartURL(), INetURLObject::SetURL(), Storage, Temp, Template, UIConfig, UserConfig, INetURLObject::WithCharset, and Work.
void SvtPathOptions::SetAutoTextPath | ( | const OUString & | rPath | ) |
Definition at line 577 of file pathoptions.cxx.
References pImpl.
void SvtPathOptions::SetBasicPath | ( | const OUString & | rPath | ) |
Definition at line 582 of file pathoptions.cxx.
References pImpl.
void SvtPathOptions::SetTempPath | ( | const OUString & | rPath | ) |
Definition at line 587 of file pathoptions.cxx.
References pImpl.
OUString SvtPathOptions::SubstituteVariable | ( | const OUString & | rVar | ) | const |
Definition at line 592 of file pathoptions.cxx.
References pImpl.
Referenced by SvtDefaultOptions::GetDefaultPath().
OUString SvtPathOptions::UseVariable | ( | const OUString & | rVar | ) | const |
Definition at line 602 of file pathoptions.cxx.
References pImpl.
|
private |
Definition at line 37 of file pathoptions.hxx.
Referenced by ExpandMacros(), GetAddinPath(), GetAutoCorrectPath(), GetAutoTextPath(), GetBackupPath(), GetBasicPath(), GetBitmapPath(), GetClassificationPath(), GetConfigPath(), GetDictionaryPath(), GetFavoritesPath(), GetFilterPath(), GetFingerprintPath(), GetGalleryPath(), GetGraphicPath(), GetHelpPath(), GetIconsetPath(), GetLinguisticPath(), GetModulePath(), GetNumbertextPath(), GetPalettePath(), GetPluginPath(), GetStoragePath(), GetTemplatePath(), GetTempPath(), GetUserConfigPath(), GetWorkPath(), SearchFile(), SetAutoTextPath(), SetBasicPath(), SetTempPath(), SubstituteVariable(), SvtPathOptions(), UseVariable(), and ~SvtPathOptions().