LibreOffice Module unotools (master) 1
Public Member Functions | Private Attributes | List of all members
utl::ZipPackageHelper Class Reference

#include <ZipPackageHelper.hxx>

Public Member Functions

 ZipPackageHelper (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const OUString &sPackageURL)
 
void savePackage ()
 
void addFile (css::uno::Reference< css::uno::XInterface > const &xRootFolder, const OUString &rSourceFile)
 
css::uno::Reference< css::uno::XInterface > addFolder (css::uno::Reference< css::uno::XInterface > const &xRootFolder, const OUString &rName)
 
void addFolderWithContent (css::uno::Reference< css::uno::XInterface > const &xRootFolder, const OUString &rDirURL)
 
css::uno::Reference< css::uno::XInterface > & getRootFolder ()
 

Private Attributes

css::uno::Reference< css::uno::XComponentContext > mxContext
 
css::uno::Reference< css::container::XHierarchicalNameAccess > mxHNameAccess
 
css::uno::Reference< css::lang::XSingleServiceFactory > mxFactory
 
css::uno::Reference< css::uno::XInterface > mxRootFolder
 

Detailed Description

Definition at line 32 of file ZipPackageHelper.hxx.

Constructor & Destructor Documentation

◆ ZipPackageHelper()

ZipPackageHelper::ZipPackageHelper ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
const OUString &  sPackageURL 
)

Member Function Documentation

◆ addFile()

void ZipPackageHelper::addFile ( css::uno::Reference< css::uno::XInterface > const &  xRootFolder,
const OUString &  rSourceFile 
)
Exceptions
css::uno::Exception

Definition at line 148 of file ZipPackageHelper.cxx.

References aName, Any, aURL, encodeZipUri(), mxFactory, and xSink.

Referenced by addFolderWithContent().

◆ addFolder()

Reference< XInterface > ZipPackageHelper::addFolder ( css::uno::Reference< css::uno::XInterface > const &  xRootFolder,
const OUString &  rName 
)
Exceptions
css::uno::Exception

Definition at line 92 of file ZipPackageHelper.cxx.

References aName, encodeZipUri(), and mxFactory.

Referenced by addFolderWithContent().

◆ addFolderWithContent()

void ZipPackageHelper::addFolderWithContent ( css::uno::Reference< css::uno::XInterface > const &  xRootFolder,
const OUString &  rDirURL 
)

Definition at line 112 of file ZipPackageHelper.cxx.

References addFile(), addFolder(), and addFolderWithContent().

Referenced by addFolderWithContent().

◆ getRootFolder()

Reference< XInterface > & ZipPackageHelper::getRootFolder ( )

Definition at line 87 of file ZipPackageHelper.cxx.

References mxRootFolder.

◆ savePackage()

void ZipPackageHelper::savePackage ( )

Definition at line 166 of file ZipPackageHelper.cxx.

References mxHNameAccess.

Member Data Documentation

◆ mxContext

css::uno::Reference< css::uno::XComponentContext > utl::ZipPackageHelper::mxContext
private

Definition at line 54 of file ZipPackageHelper.hxx.

Referenced by ZipPackageHelper().

◆ mxFactory

css::uno::Reference< css::lang::XSingleServiceFactory > utl::ZipPackageHelper::mxFactory
private

Definition at line 56 of file ZipPackageHelper.hxx.

Referenced by addFile(), addFolder(), and ZipPackageHelper().

◆ mxHNameAccess

css::uno::Reference< css::container::XHierarchicalNameAccess > utl::ZipPackageHelper::mxHNameAccess
private

Definition at line 55 of file ZipPackageHelper.hxx.

Referenced by savePackage(), and ZipPackageHelper().

◆ mxRootFolder

css::uno::Reference< css::uno::XInterface > utl::ZipPackageHelper::mxRootFolder
private

Definition at line 57 of file ZipPackageHelper.hxx.

Referenced by getRootFolder(), and ZipPackageHelper().


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