LibreOffice Module desktop (master)  1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
desktop::MigrationImpl Class Reference

#include <migration_impl.hxx>

Collaboration diagram for desktop::MigrationImpl:
[legend]

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< MigrationModuleInfodectectUIChangesForAllModules () 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, const OUString &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 sal_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
 

Detailed Description

Definition at line 154 of file migration_impl.hxx.

Constructor & Destructor Documentation

desktop::MigrationImpl::MigrationImpl ( )

Definition at line 215 of file migration.cxx.

desktop::MigrationImpl::~MigrationImpl ( )

Definition at line 219 of file migration.cxx.

Member Function Documentation

bool desktop::MigrationImpl::alreadyMigrated ( )
private

Definition at line 166 of file migration.cxx.

References aStr, File, and SAL_INFO.

strings_vr desktop::MigrationImpl::applyPatterns ( const strings_v vSet,
const strings_v vPatterns 
)
staticprivate

Definition at line 553 of file migration.cxx.

References end, LANGUAGE_DONTKNOW, and utl::TextSearch::SearchForward().

bool desktop::MigrationImpl::checkMigrationCompleted ( )
staticprivate

Definition at line 317 of file migration.cxx.

References Exception, and SAL_INFO.

void desktop::MigrationImpl::compareOldAndNewConfig ( const OUString &  sParentNodeName,
const css::uno::Reference< css::container::XIndexContainer > &  xOldIndexContainer,
const css::uno::Reference< css::container::XIndexContainer > &  xNewIndexContainer,
const OUString &  sToolbarName 
)
private
strings_vr desktop::MigrationImpl::compileFileList ( )
private

Definition at line 626 of file migration.cxx.

void desktop::MigrationImpl::copyConfig ( )
private
void desktop::MigrationImpl::copyFiles ( )
private
std::vector< MigrationModuleInfo > desktop::MigrationImpl::dectectUIChangesForAllModules ( ) const
private
bool desktop::MigrationImpl::doMigration ( )
install_info desktop::MigrationImpl::findInstallation ( const strings_v rVersions)
staticprivate
sal_Int32 desktop::MigrationImpl::findPreferredMigrationProcess ( const migrations_available rAvailableMigrations)
private

Definition at line 531 of file migration.cxx.

References i, desktop::install_info::productname, and SAL_INFO.

strings_vr desktop::MigrationImpl::getAllFiles ( const OUString &  baseURL) const
private

Definition at line 575 of file migration.cxx.

uno::Reference< XNameAccess > desktop::MigrationImpl::getConfigAccess ( const sal_Char path,
bool  rw = false 
)
staticprivate
bool desktop::MigrationImpl::initializeMigration ( )

Definition at line 177 of file migration.cxx.

References name, and SAL_INFO.

Referenced by desktop::Migration::migrateSettingsIfNecessary().

void desktop::MigrationImpl::mergeOldToNewVersion ( const css::uno::Reference< css::ui::XUIConfigurationManager > &  xCfgManager,
const css::uno::Reference< css::container::XIndexContainer > &  xIndexContainer,
const OUString &  sModuleIdentifier,
const OUString &  sResourceURL 
)
private

Definition at line 982 of file migration.cxx.

References Name, and desktop::retrieveLabelFromCommand().

OUString desktop::MigrationImpl::preXDGConfigDir ( const OUString &  rConfigDir)
staticprivate

Definition at line 446 of file migration.cxx.

References desktop::XDG_CONFIG_PART.

void desktop::MigrationImpl::readAvailableMigrations ( migrations_available rAvailableMigrations)
staticprivate
migrations_vr desktop::MigrationImpl::readMigrationSteps ( const OUString &  rMigrationName)
staticprivate
void desktop::MigrationImpl::runServices ( )
private
void desktop::MigrationImpl::setInstallInfoIfExist ( install_info aInfo,
const OUString &  rConfigDir,
const OUString &  rVersion 
)
staticprivate
void desktop::MigrationImpl::setMigrationCompleted ( )
staticprivate

Definition at line 306 of file migration.cxx.

Member Data Documentation

install_info desktop::MigrationImpl::m_aInfo
private

Definition at line 160 of file migration_impl.hxx.

MigrationHashMap desktop::MigrationImpl::m_aOldVersionItemsHashMap
private

Definition at line 162 of file migration_impl.hxx.

migrations_available desktop::MigrationImpl::m_vMigrationsAvailable
private

Definition at line 158 of file migration_impl.hxx.

strings_vr desktop::MigrationImpl::m_vrFileList
private

Definition at line 161 of file migration_impl.hxx.

migrations_vr desktop::MigrationImpl::m_vrMigrations
private

Definition at line 159 of file migration_impl.hxx.


The documentation for this class was generated from the following files: