LibreOffice Module desktop (master) 1
|
#include <migration_impl.hxx>
Public Member Functions | |
MigrationImpl () | |
~MigrationImpl () | |
bool | initializeMigration () |
bool | doMigration () |
Private Member Functions | |
bool | alreadyMigrated () |
sal_Int32 | findPreferredMigrationProcess (const migrations_available &) |
strings_vr | compileFileList () |
strings_vr | getAllFiles (const OUString &baseURL) const |
std::vector< MigrationModuleInfo > | detectUIChangesForAllModules () const |
void | compareOldAndNewConfig (const OUString &sParentNodeName, const css::uno::Reference< css::container::XIndexContainer > &xOldIndexContainer, const css::uno::Reference< css::container::XIndexContainer > &xNewIndexContainer, const OUString &sToolbarName) |
void | mergeOldToNewVersion (const css::uno::Reference< css::ui::XUIConfigurationManager > &xCfgManager, const css::uno::Reference< css::container::XIndexContainer > &xIndexContainer, const OUString &sModuleIdentifier, const OUString &sResourceURL) |
void | copyFiles () |
void | copyConfig () |
void | runServices () |
Static Private Member Functions | |
static void | readAvailableMigrations (migrations_available &) |
static migrations_vr | readMigrationSteps (const OUString &rMigrationName) |
static OUString | preXDGConfigDir (const OUString &rConfigDir) |
static void | setInstallInfoIfExist (install_info &aInfo, std::u16string_view rConfigDir, const OUString &rVersion) |
static install_info | findInstallation (const strings_v &rVersions) |
static strings_vr | applyPatterns (const strings_v &vSet, const strings_v &vPatterns) |
static css::uno::Reference< css::container::XNameAccess > | getConfigAccess (const char *path, bool rw=false) |
static void | setMigrationCompleted () |
static bool | checkMigrationCompleted () |
Private Attributes | |
migrations_available | m_vMigrationsAvailable |
migrations_vr | m_vrMigrations |
install_info | m_aInfo |
strings_vr | m_vrFileList |
MigrationHashMap | m_aOldVersionItemsHashMap |
Definition at line 145 of file migration_impl.hxx.
desktop::MigrationImpl::MigrationImpl | ( | ) |
Definition at line 171 of file migration.cxx.
desktop::MigrationImpl::~MigrationImpl | ( | ) |
Definition at line 175 of file migration.cxx.
|
private |
Definition at line 123 of file migration.cxx.
References aStr, File, m_aInfo, SAL_INFO, and desktop::install_info::userdata.
Referenced by initializeMigration().
|
staticprivate |
Definition at line 509 of file migration.cxx.
References end, LANGUAGE_DONTKNOW, utl::TextSearch::SearchForward(), and start.
Referenced by compileFileList().
|
staticprivate |
Definition at line 273 of file migration.cxx.
References Exception, getConfigAccess(), SAL_INFO, and setMigrationCompleted().
Referenced by initializeMigration().
|
private |
Definition at line 964 of file migration.cxx.
References begin, compareOldAndNewConfig(), end, desktop::ITEM_DESCRIPTOR_COMMANDURL, desktop::ITEM_DESCRIPTOR_CONTAINER, m_aOldVersionItemsHashMap, desktop::MigrationItem::m_sCommandURL, desktop::MigrationItem::m_xPopupMenu, n, sName, and u.
Referenced by compareOldAndNewConfig(), and doMigration().
|
private |
Definition at line 580 of file migration.cxx.
References applyPatterns(), getAllFiles(), m_aInfo, m_vrMigrations, and desktop::install_info::userdata.
Referenced by doMigration().
|
private |
Definition at line 672 of file migration.cxx.
References comp, comphelper::containerToSequence(), comphelper::ConfigurationChanges::create(), Exception, File, getConfigAccess(), comphelper::getProcessComponentContext(), utl::ConfigManager::getProductName(), m_aInfo, m_vrMigrations, n, desktop::install_info::productname, SAL_INFO, trim(), and desktop::install_info::userdata.
Referenced by doMigration().
|
private |
Definition at line 822 of file migration.cxx.
References desktop::_checkAndCreateDirectory(), aURL, utl::Bootstrap::locateUserInstallation(), m_aInfo, m_vrFileList, utl::Bootstrap::PATH_EXISTS, SAL_WARN, and desktop::install_info::userdata.
Referenced by doMigration().
|
private |
Definition at line 905 of file migration.cxx.
References desktop::MigrationModuleInfo::bHasMenubar, dp_registry::backend::bundle::create(), comphelper::getProcessComponentContext(), i, m_aInfo, desktop::MigrationModuleInfo::m_vToolbars, nIndex, nLength, desktop::MigrationModuleInfo::sModuleShortName, u, and desktop::install_info::userdata.
Referenced by doMigration().
bool desktop::MigrationImpl::doMigration | ( | ) |
Definition at line 180 of file migration.cxx.
References compareOldAndNewConfig(), compileFileList(), copyConfig(), copyFiles(), dp_registry::backend::bundle::create(), detectUIChangesForAllModules(), desktop::NewVersionUIInfo::getConfigManager(), desktop::NewVersionUIInfo::getNewMenubarSettings(), desktop::NewVersionUIInfo::getNewToolbarSettings(), comphelper::getProcessComponentContext(), i, desktop::NewVersionUIInfo::init(), m_aInfo, m_aOldVersionItemsHashMap, m_vrFileList, desktop::mapModuleShortNameToIdentifier(), mergeOldToNewVersion(), desktop::install_info::productname, result, runServices(), setMigrationCompleted(), TOOLS_WARN_EXCEPTION, u, desktop::install_info::userdata, and xContext.
Referenced by desktop::Migration::migrateSettingsIfNecessary().
|
staticprivate |
Definition at line 449 of file migration.cxx.
References utl::ConfigManager::getProductName(), preXDGConfigDir(), setInstallInfoIfExist(), and desktop::install_info::userdata.
Referenced by findPreferredMigrationProcess().
|
private |
Definition at line 487 of file migration.cxx.
References findInstallation(), i, m_aInfo, nIndex, desktop::install_info::productname, SAL_INFO, and desktop::install_info::userdata.
Referenced by initializeMigration().
|
private |
Definition at line 531 of file migration.cxx.
References getAllFiles().
Referenced by compileFileList(), and getAllFiles().
|
staticprivate |
Definition at line 795 of file migration.cxx.
References comphelper::getProcessComponentContext(), sAccessSrvc, and TOOLS_WARN_EXCEPTION.
Referenced by checkMigrationCompleted(), copyConfig(), readAvailableMigrations(), readMigrationSteps(), and setMigrationCompleted().
bool desktop::MigrationImpl::initializeMigration | ( | ) |
Definition at line 133 of file migration.cxx.
References alreadyMigrated(), checkMigrationCompleted(), findPreferredMigrationProcess(), m_aInfo, m_vMigrationsAvailable, m_vrMigrations, name, nIndex, readAvailableMigrations(), readMigrationSteps(), SAL_INFO, and desktop::install_info::userdata.
Referenced by desktop::Migration::migrateSettingsIfNecessary().
|
private |
Definition at line 1034 of file migration.cxx.
References aProperties, vcl::CommandInfoProvider::GetCommandProperties(), vcl::CommandInfoProvider::GetLabelForCommand(), o3tl::getToken(), i, desktop::ITEM_DESCRIPTOR_COMMANDURL, desktop::ITEM_DESCRIPTOR_CONTAINER, desktop::ITEM_DESCRIPTOR_LABEL, m_aOldVersionItemsHashMap, nCount, nIndex, and o3tl::trim().
Referenced by doMigration().
|
staticprivate |
Definition at line 402 of file migration.cxx.
References desktop::XDG_CONFIG_PART.
Referenced by findInstallation().
|
staticprivate |
Definition at line 304 of file migration.cxx.
References getConfigAccess(), desktop::insertSorted(), desktop::supported_migration::name, desktop::supported_migration::nPriority, SAL_INFO, desktop::supported_migration::supported_versions, and u.
Referenced by initializeMigration().
|
staticprivate |
Definition at line 330 of file migration.cxx.
References desktop::migration_step::excludeConfig, desktop::migration_step::excludeExtensions, desktop::migration_step::excludeFiles, getConfigAccess(), desktop::migration_step::includeConfig, desktop::migration_step::includeFiles, and desktop::migration_step::service.
Referenced by initializeMigration().
|
private |
Definition at line 856 of file migration.cxx.
References Exception, comphelper::getProcessComponentContext(), m_aInfo, m_vrMigrations, desktop::install_info::productname, SAL_WARN, TOOLS_WARN_EXCEPTION, desktop::install_info::userdata, and xContext.
Referenced by doMigration().
|
staticprivate |
Definition at line 432 of file migration.cxx.
References INetURLObject::NONE, desktop::install_info::productname, and desktop::install_info::userdata.
Referenced by findInstallation().
|
staticprivate |
Definition at line 262 of file migration.cxx.
References getConfigAccess().
Referenced by checkMigrationCompleted(), and doMigration().
|
private |
Definition at line 151 of file migration_impl.hxx.
Referenced by alreadyMigrated(), compileFileList(), copyConfig(), copyFiles(), detectUIChangesForAllModules(), doMigration(), findPreferredMigrationProcess(), initializeMigration(), and runServices().
|
private |
Definition at line 153 of file migration_impl.hxx.
Referenced by compareOldAndNewConfig(), doMigration(), and mergeOldToNewVersion().
|
private |
Definition at line 149 of file migration_impl.hxx.
Referenced by initializeMigration().
|
private |
Definition at line 152 of file migration_impl.hxx.
Referenced by copyFiles(), and doMigration().
|
private |
Definition at line 150 of file migration_impl.hxx.
Referenced by compileFileList(), copyConfig(), initializeMigration(), and runServices().