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

#include <oo3extensionmigration.hxx>

Inheritance diagram for migration::OO3ExtensionMigration:
[legend]
Collaboration diagram for migration::OO3ExtensionMigration:
[legend]

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_aBlackList
 

Detailed Description

Definition at line 63 of file oo3extensionmigration.hxx.

Member Enumeration Documentation

Enumerator
SCANRESULT_NOTFOUND 
SCANRESULT_MIGRATE_EXTENSION 
SCANRESULT_DONTMIGRATE_EXTENSION 

Definition at line 74 of file oo3extensionmigration.hxx.

Constructor & Destructor Documentation

migration::OO3ExtensionMigration::OO3ExtensionMigration ( css::uno::Reference< css::uno::XComponentContext > const &  ctx)
explicit

Definition at line 73 of file oo3extensionmigration.cxx.

migration::OO3ExtensionMigration::~OO3ExtensionMigration ( )
overridevirtual

Definition at line 79 of file oo3extensionmigration.cxx.

Member Function Documentation

Any migration::OO3ExtensionMigration::execute ( const css::uno::Sequence< css::beans::NamedValue > &  Arguments)
overridevirtual
OUString migration::OO3ExtensionMigration::getImplementationName ( )
overridevirtual
Sequence< OUString > migration::OO3ExtensionMigration::getSupportedServiceNames ( )
overridevirtual
void migration::OO3ExtensionMigration::initialize ( const css::uno::Sequence< css::uno::Any > &  aArguments)
overridevirtual

Definition at line 305 of file oo3extensionmigration.cxx.

References Any, m_aBlackList, m_aMutex, and m_sSourceDir.

void migration::OO3ExtensionMigration::migrateExtension ( const OUString &  sSourceDir)
private

Definition at line 257 of file oo3extensionmigration.cxx.

References m_ctx, and TOOLS_WARN_EXCEPTION.

Referenced by execute().

bool migration::OO3ExtensionMigration::scanDescriptionXml ( const OUString &  sDescriptionXmlFilePath)
private
OO3ExtensionMigration::ScanResult migration::OO3ExtensionMigration::scanExtensionFolder ( const OUString &  sExtFolder)
private
void migration::OO3ExtensionMigration::scanUserExtensions ( const OUString &  sSourceDir,
TStringVector aMigrateExtensions 
)
private

Definition at line 83 of file oo3extensionmigration.cxx.

References scanExtensionFolder(), and SCANRESULT_MIGRATE_EXTENSION.

Referenced by execute().

sal_Bool migration::OO3ExtensionMigration::supportsService ( const OUString &  rServiceName)
overridevirtual

Definition at line 290 of file oo3extensionmigration.cxx.

References cppu::supportsService().

Member Data Documentation

TStringVector migration::OO3ExtensionMigration::m_aBlackList
private

Definition at line 72 of file oo3extensionmigration.hxx.

Referenced by initialize(), and scanDescriptionXml().

::osl::Mutex migration::OO3ExtensionMigration::m_aMutex
private

Definition at line 69 of file oo3extensionmigration.hxx.

Referenced by execute(), and initialize().

css::uno::Reference< css::uno::XComponentContext > migration::OO3ExtensionMigration::m_ctx
private

Definition at line 66 of file oo3extensionmigration.hxx.

Referenced by migrateExtension(), and scanDescriptionXml().

OUString migration::OO3ExtensionMigration::m_sSourceDir
private

Definition at line 70 of file oo3extensionmigration.hxx.

Referenced by execute(), and initialize().

OUString migration::OO3ExtensionMigration::m_sTargetDir
private

Definition at line 71 of file oo3extensionmigration.hxx.

Referenced by execute().

css::uno::Reference< css::xml::dom::XDocumentBuilder > migration::OO3ExtensionMigration::m_xDocBuilder
private

Definition at line 67 of file oo3extensionmigration.hxx.

Referenced by scanDescriptionXml().

css::uno::Reference< css::ucb::XSimpleFileAccess3 > migration::OO3ExtensionMigration::m_xSimpleFileAccess
private

Definition at line 68 of file oo3extensionmigration.hxx.

Referenced by scanDescriptionXml().


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