LibreOffice Module desktop (master) 1
|
#include <oo3extensionmigration.hxx>
Public Member Functions | |
OO3ExtensionMigration (css::uno::Reference< css::uno::XComponentContext > const &ctx) | |
virtual | ~OO3ExtensionMigration () override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &rServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
virtual void SAL_CALL | initialize (const css::uno::Sequence< css::uno::Any > &aArguments) override |
virtual css::uno::Any SAL_CALL | execute (const css::uno::Sequence< css::beans::NamedValue > &Arguments) override |
Private Types | |
enum | ScanResult { SCANRESULT_NOTFOUND , SCANRESULT_MIGRATE_EXTENSION , SCANRESULT_DONTMIGRATE_EXTENSION } |
Private Member Functions | |
ScanResult | scanExtensionFolder (const OUString &sExtFolder) |
void | scanUserExtensions (const OUString &sSourceDir, TStringVector &aMigrateExtensions) |
bool | scanDescriptionXml (const OUString &sDescriptionXmlFilePath) |
void | migrateExtension (const OUString &sSourceDir) |
Private Attributes | |
css::uno::Reference< css::uno::XComponentContext > | m_ctx |
css::uno::Reference< css::xml::dom::XDocumentBuilder > | m_xDocBuilder |
css::uno::Reference< css::ucb::XSimpleFileAccess3 > | m_xSimpleFileAccess |
::osl::Mutex | m_aMutex |
OUString | m_sSourceDir |
OUString | m_sTargetDir |
TStringVector | m_aDenyList |
Definition at line 47 of file oo3extensionmigration.hxx.
|
private |
Enumerator | |
---|---|
SCANRESULT_NOTFOUND | |
SCANRESULT_MIGRATE_EXTENSION | |
SCANRESULT_DONTMIGRATE_EXTENSION |
Definition at line 58 of file oo3extensionmigration.hxx.
|
explicit |
Definition at line 52 of file oo3extensionmigration.cxx.
References ctx.
|
overridevirtual |
Definition at line 58 of file oo3extensionmigration.cxx.
|
overridevirtual |
Definition at line 310 of file oo3extensionmigration.cxx.
References Any, utl::Bootstrap::locateUserInstallation(), m_aMutex, m_sSourceDir, m_sTargetDir, migrateExtension(), utl::Bootstrap::PATH_EXISTS, and scanUserExtensions().
|
overridevirtual |
Definition at line 260 of file oo3extensionmigration.cxx.
|
overridevirtual |
Definition at line 272 of file oo3extensionmigration.cxx.
|
overridevirtual |
Definition at line 281 of file oo3extensionmigration.cxx.
References aArguments, Any, m_aDenyList, m_aMutex, and m_sSourceDir.
|
private |
Definition at line 235 of file oo3extensionmigration.cxx.
References m_ctx, and TOOLS_WARN_EXCEPTION.
Referenced by execute().
|
private |
Definition at line 143 of file oo3extensionmigration.cxx.
References dp_registry::backend::bundle::create(), end, i, LANGUAGE_DONTKNOW, m_aDenyList, m_ctx, m_xDocBuilder, m_xSimpleFileAccess, utl::SearchParam::Regexp, utl::TextSearch::SearchForward(), and start.
Referenced by scanExtensionFolder().
|
private |
Definition at line 105 of file oo3extensionmigration.cxx.
References scanDescriptionXml(), scanExtensionFolder(), SCANRESULT_DONTMIGRATE_EXTENSION, SCANRESULT_MIGRATE_EXTENSION, and SCANRESULT_NOTFOUND.
Referenced by scanExtensionFolder(), and scanUserExtensions().
|
private |
Definition at line 62 of file oo3extensionmigration.cxx.
References scanExtensionFolder(), and SCANRESULT_MIGRATE_EXTENSION.
Referenced by execute().
|
overridevirtual |
Definition at line 266 of file oo3extensionmigration.cxx.
References ServiceName, and cppu::supportsService().
|
private |
Definition at line 56 of file oo3extensionmigration.hxx.
Referenced by initialize(), and scanDescriptionXml().
|
private |
Definition at line 53 of file oo3extensionmigration.hxx.
Referenced by execute(), and initialize().
|
private |
Definition at line 50 of file oo3extensionmigration.hxx.
Referenced by migrateExtension(), and scanDescriptionXml().
|
private |
Definition at line 54 of file oo3extensionmigration.hxx.
Referenced by execute(), and initialize().
|
private |
Definition at line 55 of file oo3extensionmigration.hxx.
Referenced by execute().
|
private |
Definition at line 51 of file oo3extensionmigration.hxx.
Referenced by scanDescriptionXml().
|
private |
Definition at line 52 of file oo3extensionmigration.hxx.
Referenced by scanDescriptionXml().