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 144 of file migration_impl.hxx.
desktop::MigrationImpl::MigrationImpl | ( | ) |
Definition at line 169 of file migration.cxx.
desktop::MigrationImpl::~MigrationImpl | ( | ) |
Definition at line 173 of file migration.cxx.
|
private |
Definition at line 121 of file migration.cxx.
|
staticprivate |
Definition at line 507 of file migration.cxx.
References end, LANGUAGE_DONTKNOW, utl::TextSearch::SearchForward(), and start.
|
staticprivate |
Definition at line 271 of file migration.cxx.
|
private |
Definition at line 858 of file migration.cxx.
References begin, end, desktop::MigrationItem::m_sCommandURL, desktop::MigrationItem::m_xPopupMenu, n, sName, and u.
|
private |
Definition at line 578 of file migration.cxx.
|
private |
Definition at line 621 of file migration.cxx.
References comp, comphelper::containerToSequence(), File, comphelper::getProcessComponentContext(), n, and SAL_INFO.
|
private |
Definition at line 716 of file migration.cxx.
References desktop::_checkAndCreateDirectory(), aURL, utl::Bootstrap::locateUserInstallation(), utl::Bootstrap::PATH_EXISTS, INetURLObject::removeSegment(), and SAL_WARN.
|
private |
Definition at line 799 of file migration.cxx.
References desktop::MigrationModuleInfo::bHasMenubar, dp_registry::backend::bundle::create(), comphelper::getProcessComponentContext(), desktop::MigrationModuleInfo::m_vToolbars, nIndex, nLength, desktop::MigrationModuleInfo::sModuleShortName, and u.
bool desktop::MigrationImpl::doMigration | ( | ) |
Definition at line 178 of file migration.cxx.
References dp_registry::backend::bundle::create(), desktop::NewVersionUIInfo::getConfigManager(), desktop::NewVersionUIInfo::getNewMenubarSettings(), desktop::NewVersionUIInfo::getNewToolbarSettings(), comphelper::getProcessComponentContext(), i, desktop::NewVersionUIInfo::init(), desktop::mapModuleShortNameToIdentifier(), result, TOOLS_WARN_EXCEPTION, u, and xContext.
Referenced by desktop::Migration::migrateSettingsIfNecessary().
|
staticprivate |
Definition at line 447 of file migration.cxx.
References utl::ConfigManager::getProductName(), and desktop::install_info::userdata.
|
private |
Definition at line 485 of file migration.cxx.
References i, nIndex, desktop::install_info::productname, and SAL_INFO.
|
private |
Definition at line 529 of file migration.cxx.
|
staticprivate |
Definition at line 689 of file migration.cxx.
References comphelper::getProcessComponentContext(), sAccessSrvc, and TOOLS_WARN_EXCEPTION.
bool desktop::MigrationImpl::initializeMigration | ( | ) |
Definition at line 131 of file migration.cxx.
References name, nIndex, and SAL_INFO.
Referenced by desktop::Migration::migrateSettingsIfNecessary().
|
private |
Definition at line 928 of file migration.cxx.
References aProperties, vcl::CommandInfoProvider::GetCommandProperties(), vcl::CommandInfoProvider::GetLabelForCommand(), o3tl::getToken(), nCount, nIndex, and o3tl::trim().
|
staticprivate |
Definition at line 400 of file migration.cxx.
References desktop::XDG_CONFIG_PART.
|
staticprivate |
Definition at line 302 of file migration.cxx.
References desktop::insertSorted(), desktop::supported_migration::name, desktop::supported_migration::nPriority, SAL_INFO, desktop::supported_migration::supported_versions, and u.
|
staticprivate |
|
private |
Definition at line 750 of file migration.cxx.
References Exception, comphelper::getProcessComponentContext(), SAL_WARN, TOOLS_WARN_EXCEPTION, and xContext.
|
staticprivate |
Definition at line 430 of file migration.cxx.
References INetURLObject::NONE, desktop::install_info::productname, and desktop::install_info::userdata.
|
staticprivate |
Definition at line 260 of file migration.cxx.
|
private |
Definition at line 150 of file migration_impl.hxx.
|
private |
Definition at line 152 of file migration_impl.hxx.
|
private |
Definition at line 148 of file migration_impl.hxx.
|
private |
Definition at line 151 of file migration_impl.hxx.
|
private |
Definition at line 149 of file migration_impl.hxx.