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_aDenyList
 

Detailed Description

Definition at line 47 of file oo3extensionmigration.hxx.

Member Enumeration Documentation

◆ ScanResult

Enumerator
SCANRESULT_NOTFOUND 
SCANRESULT_MIGRATE_EXTENSION 
SCANRESULT_DONTMIGRATE_EXTENSION 

Definition at line 58 of file oo3extensionmigration.hxx.

Constructor & Destructor Documentation

◆ OO3ExtensionMigration()

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

Definition at line 52 of file oo3extensionmigration.cxx.

References ctx.

◆ ~OO3ExtensionMigration()

migration::OO3ExtensionMigration::~OO3ExtensionMigration ( )
overridevirtual

Definition at line 58 of file oo3extensionmigration.cxx.

Member Function Documentation

◆ execute()

Any migration::OO3ExtensionMigration::execute ( const css::uno::Sequence< css::beans::NamedValue > &  Arguments)
overridevirtual

◆ getImplementationName()

OUString migration::OO3ExtensionMigration::getImplementationName ( )
overridevirtual

Definition at line 260 of file oo3extensionmigration.cxx.

◆ getSupportedServiceNames()

Sequence< OUString > migration::OO3ExtensionMigration::getSupportedServiceNames ( )
overridevirtual

Definition at line 272 of file oo3extensionmigration.cxx.

◆ initialize()

void migration::OO3ExtensionMigration::initialize ( const css::uno::Sequence< css::uno::Any > &  aArguments)
overridevirtual

Definition at line 281 of file oo3extensionmigration.cxx.

References aArguments, Any, m_aDenyList, m_aMutex, and m_sSourceDir.

◆ migrateExtension()

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

Definition at line 235 of file oo3extensionmigration.cxx.

References m_ctx, and TOOLS_WARN_EXCEPTION.

Referenced by execute().

◆ scanDescriptionXml()

bool migration::OO3ExtensionMigration::scanDescriptionXml ( const OUString &  sDescriptionXmlFilePath)
private

◆ scanExtensionFolder()

OO3ExtensionMigration::ScanResult migration::OO3ExtensionMigration::scanExtensionFolder ( const OUString &  sExtFolder)
private

◆ scanUserExtensions()

void migration::OO3ExtensionMigration::scanUserExtensions ( const OUString &  sSourceDir,
TStringVector aMigrateExtensions 
)
private

Definition at line 62 of file oo3extensionmigration.cxx.

References scanExtensionFolder(), and SCANRESULT_MIGRATE_EXTENSION.

Referenced by execute().

◆ supportsService()

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

Definition at line 266 of file oo3extensionmigration.cxx.

References ServiceName, and cppu::supportsService().

Member Data Documentation

◆ m_aDenyList

TStringVector migration::OO3ExtensionMigration::m_aDenyList
private

Definition at line 56 of file oo3extensionmigration.hxx.

Referenced by initialize(), and scanDescriptionXml().

◆ m_aMutex

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

Definition at line 53 of file oo3extensionmigration.hxx.

Referenced by execute(), and initialize().

◆ m_ctx

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

Definition at line 50 of file oo3extensionmigration.hxx.

Referenced by migrateExtension(), and scanDescriptionXml().

◆ m_sSourceDir

OUString migration::OO3ExtensionMigration::m_sSourceDir
private

Definition at line 54 of file oo3extensionmigration.hxx.

Referenced by execute(), and initialize().

◆ m_sTargetDir

OUString migration::OO3ExtensionMigration::m_sTargetDir
private

Definition at line 55 of file oo3extensionmigration.hxx.

Referenced by execute().

◆ m_xDocBuilder

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

Definition at line 51 of file oo3extensionmigration.hxx.

Referenced by scanDescriptionXml().

◆ m_xSimpleFileAccess

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

Definition at line 52 of file oo3extensionmigration.hxx.

Referenced by scanDescriptionXml().


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