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< MigrationModuleInfodetectUIChangesForAllModules () 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
 

Detailed Description

Definition at line 145 of file migration_impl.hxx.

Constructor & Destructor Documentation

◆ MigrationImpl()

desktop::MigrationImpl::MigrationImpl ( )

Definition at line 171 of file migration.cxx.

◆ ~MigrationImpl()

desktop::MigrationImpl::~MigrationImpl ( )

Definition at line 175 of file migration.cxx.

Member Function Documentation

◆ alreadyMigrated()

bool desktop::MigrationImpl::alreadyMigrated ( )
private

Definition at line 123 of file migration.cxx.

References aStr, File, m_aInfo, SAL_INFO, and desktop::install_info::userdata.

Referenced by initializeMigration().

◆ applyPatterns()

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

Definition at line 509 of file migration.cxx.

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

Referenced by compileFileList().

◆ checkMigrationCompleted()

bool desktop::MigrationImpl::checkMigrationCompleted ( )
staticprivate

Definition at line 273 of file migration.cxx.

References Exception, getConfigAccess(), SAL_INFO, and setMigrationCompleted().

Referenced by initializeMigration().

◆ compareOldAndNewConfig()

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

◆ compileFileList()

strings_vr desktop::MigrationImpl::compileFileList ( )
private

◆ copyConfig()

void desktop::MigrationImpl::copyConfig ( )
private

◆ copyFiles()

void desktop::MigrationImpl::copyFiles ( )
private

◆ detectUIChangesForAllModules()

std::vector< MigrationModuleInfo > desktop::MigrationImpl::detectUIChangesForAllModules ( ) const
private

◆ doMigration()

bool desktop::MigrationImpl::doMigration ( )

◆ findInstallation()

install_info desktop::MigrationImpl::findInstallation ( const strings_v rVersions)
staticprivate

◆ findPreferredMigrationProcess()

sal_Int32 desktop::MigrationImpl::findPreferredMigrationProcess ( const migrations_available rAvailableMigrations)
private

◆ getAllFiles()

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

Definition at line 531 of file migration.cxx.

References getAllFiles().

Referenced by compileFileList(), and getAllFiles().

◆ getConfigAccess()

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

◆ initializeMigration()

bool desktop::MigrationImpl::initializeMigration ( )

◆ mergeOldToNewVersion()

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

◆ preXDGConfigDir()

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

Definition at line 402 of file migration.cxx.

References desktop::XDG_CONFIG_PART.

Referenced by findInstallation().

◆ readAvailableMigrations()

void desktop::MigrationImpl::readAvailableMigrations ( migrations_available rAvailableMigrations)
staticprivate

◆ readMigrationSteps()

migrations_vr desktop::MigrationImpl::readMigrationSteps ( const OUString &  rMigrationName)
staticprivate

◆ runServices()

void desktop::MigrationImpl::runServices ( )
private

◆ setInstallInfoIfExist()

void desktop::MigrationImpl::setInstallInfoIfExist ( install_info aInfo,
std::u16string_view  rConfigDir,
const OUString &  rVersion 
)
staticprivate

◆ setMigrationCompleted()

void desktop::MigrationImpl::setMigrationCompleted ( )
staticprivate

Definition at line 262 of file migration.cxx.

References getConfigAccess().

Referenced by checkMigrationCompleted(), and doMigration().

Member Data Documentation

◆ m_aInfo

install_info desktop::MigrationImpl::m_aInfo
private

◆ m_aOldVersionItemsHashMap

MigrationHashMap desktop::MigrationImpl::m_aOldVersionItemsHashMap
private

Definition at line 153 of file migration_impl.hxx.

Referenced by compareOldAndNewConfig(), doMigration(), and mergeOldToNewVersion().

◆ m_vMigrationsAvailable

migrations_available desktop::MigrationImpl::m_vMigrationsAvailable
private

Definition at line 149 of file migration_impl.hxx.

Referenced by initializeMigration().

◆ m_vrFileList

strings_vr desktop::MigrationImpl::m_vrFileList
private

Definition at line 152 of file migration_impl.hxx.

Referenced by copyFiles(), and doMigration().

◆ m_vrMigrations

migrations_vr desktop::MigrationImpl::m_vrMigrations
private

Definition at line 150 of file migration_impl.hxx.

Referenced by compileFileList(), copyConfig(), initializeMigration(), and runServices().


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