LibreOffice Module configmgr (master) 1
|
#include <components.hxx>
Classes | |
class | WriteThread |
Public Member Functions | |
rtl::Reference< Node > | resolvePathRepresentation (OUString const &pathRepresentation, OUString *canonicRepresentation, std::vector< OUString > *path, int *finalizedLayer) const |
rtl::Reference< Node > | getTemplate (OUString const &fullName) const |
void | addRootAccess (rtl::Reference< RootAccess > const &access) |
void | removeRootAccess (RootAccess *access) |
void | initGlobalBroadcaster (Modifications const &modifications, rtl::Reference< RootAccess > const &exclude, Broadcaster *broadcaster) |
void | addModification (std::vector< OUString > const &path) |
void | writeModifications () |
void | flushModifications () |
void | insertExtensionXcsFile (bool shared, OUString const &fileUri) |
void | insertExtensionXcuFile (bool shared, OUString const &fileUri, Modifications *modifications) |
void | removeExtensionXcuFile (OUString const &fileUri, Modifications *modifications) |
void | insertModificationXcuFile (OUString const &fileUri, std::set< OUString > const &includedPaths, std::set< OUString > const &excludedPaths, Modifications *modifications) |
css::beans::Optional< css::uno::Any > | getExternalValue (std::u16string_view descriptor) |
Components (css::uno::Reference< css::uno::XComponentContext > const &context) | |
~Components () | |
Static Public Member Functions | |
static Components & | getSingleton (css::uno::Reference< css::uno::XComponentContext > const &context) |
static bool | allLocales (std::u16string_view locale) |
Private Types | |
enum class | ModificationTarget { None , File , Dconf } |
typedef void | FileParser(OUString const &, int, Data &, Partial const *, Modifications *, Additions *) |
typedef config_map< css::uno::Reference< css::beans::XPropertySet > > | ExternalServices |
Private Member Functions | |
Components (const Components &)=delete | |
Components & | operator= (const Components &)=delete |
void | parseFileLeniently (FileParser *parseFile, OUString const &url, int layer, Partial const *partial, Modifications *modifications, Additions *additions) |
void | parseFiles (int layer, OUString const &extension, FileParser *parseFile, OUString const &url, bool recursive) |
void | parseFileList (int layer, FileParser *parseFile, std::u16string_view urls, bool recordAdditions) |
void | parseXcdFiles (int layer, OUString const &url) |
void | parseXcsXcuLayer (int layer, OUString const &url) |
void | parseXcsXcuIniLayer (int layer, OUString const &url, bool recordAdditions) |
void | parseResLayer (int layer, std::u16string_view url) |
void | parseModificationLayer (int layer, OUString const &url) |
int | getExtensionLayer (bool shared) const |
Private Attributes | |
css::uno::Reference< css::uno::XComponentContext > | context_ |
Data | data_ |
o3tl::sorted_vector< RootAccess * > | roots_ |
ExternalServices | externalServices_ |
rtl::Reference< WriteThread > | writeThread_ |
int | sharedExtensionLayer_ |
int | userExtensionLayer_ |
ModificationTarget | modificationTarget_ |
OUString | modificationFileUrl_ |
std::shared_ptr< osl::Mutex > | lock_ |
Definition at line 51 of file components.hxx.
|
private |
Definition at line 145 of file components.hxx.
|
private |
Definition at line 105 of file components.hxx.
|
strongprivate |
Enumerator | |
---|---|
None | |
File | |
Dconf |
Definition at line 149 of file components.hxx.
|
privatedelete |
|
explicit |
Definition at line 462 of file components.cxx.
References configmgr::CURRENT_USER, data_, configmgr::dumpWindowsRegistry(), eType, i, ignore, configmgr::LOCAL_MACHINE, configmgr::lock(), lock_, modificationFileUrl_, modificationTarget_, n, configmgr::Data::NO_LAYER, None, parseFileLeniently(), parseModificationLayer(), parseResLayer(), parseXcsXcuIniLayer(), parseXcsXcuLayer(), configmgr::dconf::readLayer(), SAL_INFO, sharedExtensionLayer_, type, and userExtensionLayer_.
configmgr::Components::~Components | ( | ) |
Definition at line 608 of file components.cxx.
References flushModifications(), comphelper::BackupFileHelper::getExitWasCalled(), lock_, roots_, SAL_WARN_IF, and writeThread_.
void configmgr::Components::addModification | ( | std::vector< OUString > const & | path | ) |
Definition at line 270 of file components.cxx.
References configmgr::Modifications::add(), data_, and configmgr::Data::modifications.
Referenced by configmgr::ChildAccess::commitChanges(), and configmgr::Access::commitChildChanges().
void configmgr::Components::addRootAccess | ( | rtl::Reference< RootAccess > const & | access | ) |
Definition at line 225 of file components.cxx.
References roots_.
|
static |
Definition at line 207 of file components.cxx.
References u.
Referenced by configmgr::Access::asProperty(), configmgr::ChildAccess::asValue(), configmgr::Access::checkKnownProperty(), configmgr::Access::checkLocalizedPropertyAccess(), configmgr::Access::getSubChild(), configmgr::Access::initBroadcasterAndChanges(), configmgr::Access::isValue(), and configmgr::ChildAccess::setProperty().
void configmgr::Components::flushModifications | ( | ) |
Definition at line 297 of file components.cxx.
References lock_, and writeThread_.
Referenced by ~Components().
|
private |
Definition at line 884 of file components.cxx.
References sharedExtensionLayer_, and userExtensionLayer_.
Referenced by insertExtensionXcsFile(), and insertExtensionXcuFile().
css::beans::Optional< css::uno::Any > configmgr::Components::getExternalValue | ( | std::u16string_view | descriptor | ) |
Definition at line 408 of file components.cxx.
References context_, externalServices_, cppu::getCaughtException(), i, name, TOOLS_WARN_EXCEPTION, and value.
Referenced by configmgr::PropertyNode::getValue().
|
static |
Definition at line 199 of file components.cxx.
rtl::Reference< Node > configmgr::Components::getTemplate | ( | OUString const & | fullName | ) | const |
Definition at line 220 of file components.cxx.
References data_, configmgr::Data::getTemplate(), and configmgr::Data::NO_LAYER.
Referenced by configmgr::Access::createInstance().
void configmgr::Components::initGlobalBroadcaster | ( | Modifications const & | modifications, |
rtl::Reference< RootAccess > const & | exclude, | ||
Broadcaster * | broadcaster | ||
) |
Definition at line 233 of file components.cxx.
References configmgr::Modifications::Node::children, configmgr::Modifications::getRoot(), and roots_.
Referenced by configmgr::RootAccess::commitChanges().
void configmgr::Components::insertExtensionXcsFile | ( | bool | shared, |
OUString const & | fileUri | ||
) |
Definition at line 309 of file components.cxx.
References data_, and getExtensionLayer().
void configmgr::Components::insertExtensionXcuFile | ( | bool | shared, |
OUString const & | fileUri, | ||
Modifications * | modifications | ||
) |
Definition at line 321 of file components.cxx.
References configmgr::Data::addExtensionXcuAdditions(), data_, getExtensionLayer(), and configmgr::Data::removeExtensionXcuAdditions().
void configmgr::Components::insertModificationXcuFile | ( | OUString const & | fileUri, |
std::set< OUString > const & | includedPaths, | ||
std::set< OUString > const & | excludedPaths, | ||
Modifications * | modifications | ||
) |
Definition at line 390 of file components.cxx.
References excludedPaths, includedPaths, configmgr::Data::NO_LAYER, parseFileLeniently(), and TOOLS_WARN_EXCEPTION.
|
privatedelete |
|
private |
Definition at line 645 of file components.cxx.
References data_, and TOOLS_WARN_EXCEPTION.
Referenced by Components(), insertModificationXcuFile(), parseFileList(), parseFiles(), and parseModificationLayer().
|
private |
Definition at line 719 of file components.cxx.
References configmgr::Data::addExtensionXcuAdditions(), data_, o3tl::getToken(), i, parseFileLeniently(), configmgr::Data::removeExtensionXcuAdditions(), and TOOLS_WARN_EXCEPTION.
Referenced by parseXcsXcuIniLayer().
|
private |
Definition at line 664 of file components.cxx.
References i, parseFileLeniently(), parseFiles(), SAL_MAX_UINT32, and SAL_WARN.
Referenced by parseFiles(), parseModificationLayer(), parseResLayer(), and parseXcsXcuLayer().
|
private |
Definition at line 866 of file components.cxx.
References parseFileLeniently(), parseFiles(), SAL_CONFIGFILE, and SAL_INFO.
Referenced by Components().
|
private |
Definition at line 860 of file components.cxx.
References parseFiles(), and parseXcdFiles().
Referenced by Components().
|
private |
Definition at line 745 of file components.cxx.
References data_, i, manager, name, SAL_MAX_UINT32, and SAL_WARN.
Referenced by parseResLayer(), and parseXcsXcuLayer().
|
private |
Definition at line 826 of file components.cxx.
References i, parseFileList(), and prefix.
Referenced by Components().
|
private |
Definition at line 820 of file components.cxx.
References parseFiles(), and parseXcdFiles().
Referenced by Components().
void configmgr::Components::removeExtensionXcuFile | ( | OUString const & | fileUri, |
Modifications * | modifications | ||
) |
Definition at line 336 of file components.cxx.
References configmgr::Modifications::add(), data_, configmgr::Data::getComponents(), i, configmgr::Node::KIND_GROUP, configmgr::Node::KIND_SET, map, configmgr::Data::modifications, configmgr::Data::NO_LAYER, configmgr::Modifications::remove(), configmgr::Data::removeExtensionXcuAdditions(), and writeModifications().
void configmgr::Components::removeRootAccess | ( | RootAccess * | access | ) |
Definition at line 229 of file components.cxx.
References roots_.
Referenced by configmgr::RootAccess::~RootAccess().
rtl::Reference< Node > configmgr::Components::resolvePathRepresentation | ( | OUString const & | pathRepresentation, |
OUString * | canonicRepresentation, | ||
std::vector< OUString > * | path, | ||
int * | finalizedLayer | ||
) | const |
Definition at line 211 of file components.cxx.
References data_, and configmgr::Data::resolvePathRepresentation().
Referenced by configmgr::RootAccess::getNode().
void configmgr::Components::writeModifications | ( | ) |
Definition at line 274 of file components.cxx.
References data_, configmgr::Modifications::empty(), modificationFileUrl_, configmgr::Data::modifications, modificationTarget_, configmgr::dconf::writeModifications(), and writeThread_.
Referenced by configmgr::RootAccess::commitChanges(), and removeExtensionXcuFile().
|
private |
Definition at line 152 of file components.hxx.
Referenced by getExternalValue().
|
private |
Definition at line 153 of file components.hxx.
Referenced by addModification(), Components(), configmgr::Components::WriteThread::execute(), getTemplate(), insertExtensionXcsFile(), insertExtensionXcuFile(), parseFileLeniently(), parseFileList(), parseXcdFiles(), removeExtensionXcuFile(), resolvePathRepresentation(), and writeModifications().
|
private |
Definition at line 155 of file components.hxx.
Referenced by getExternalValue().
|
private |
Definition at line 161 of file components.hxx.
Referenced by Components(), configmgr::Components::WriteThread::execute(), flushModifications(), and ~Components().
|
private |
Definition at line 160 of file components.hxx.
Referenced by Components(), and writeModifications().
|
private |
Definition at line 159 of file components.hxx.
Referenced by Components(), and writeModifications().
|
private |
Definition at line 154 of file components.hxx.
Referenced by addRootAccess(), initGlobalBroadcaster(), removeRootAccess(), and ~Components().
|
private |
Definition at line 157 of file components.hxx.
Referenced by Components(), and getExtensionLayer().
|
private |
Definition at line 158 of file components.hxx.
Referenced by Components(), and getExtensionLayer().
|
private |
Definition at line 156 of file components.hxx.
Referenced by flushModifications(), writeModifications(), and ~Components().