LibreOffice Module package (master) 1
Public Member Functions | Private Attributes | List of all members
ZipPackageFolder Class Referencefinal

#include <ZipPackageFolder.hxx>

Inheritance diagram for ZipPackageFolder:
[legend]
Collaboration diagram for ZipPackageFolder:
[legend]

Public Member Functions

 ZipPackageFolder (const css::uno::Reference< css::uno::XComponentContext > &xContext, sal_Int32 nFormat, bool bAllowRemoveOnInsert)
 
virtual ~ZipPackageFolder () override
 
const OUString & GetVersion () const
 
void SetVersion (const OUString &aVersion)
 
bool LookForUnexpectedODF12Streams (std::u16string_view aPath)
 
void setChildStreamsTypeByExtension (const css::beans::StringPair &aPair)
 
void doInsertByName (ZipPackageEntry *pEntry, bool bSetParent)
 
ZipContentInfodoGetByName (const OUString &aName)
 
void setPackageFormat_Impl (sal_Int32 nFormat)
 
void setRemoveOnInsertMode_Impl (bool bRemove)
 
virtual bool saveChild (const OUString &rPath, std::vector< css::uno::Sequence< css::beans::PropertyValue > > &rManList, ZipOutputStream &rZipOut, const css::uno::Sequence< sal_Int8 > &rEncryptionKey, sal_Int32 nPBKDF2IterationCount, const rtlRandomPool &rRandomPool) override
 
void saveContents (const OUString &rPath, std::vector< css::uno::Sequence< css::beans::PropertyValue > > &rManList, ZipOutputStream &rZipOut, const css::uno::Sequence< sal_Int8 > &rEncryptionKey, sal_Int32 nPBKDF2IterationCount, const rtlRandomPool &rRandomPool) const
 
virtual void SAL_CALL insertByName (const OUString &aName, const css::uno::Any &aElement) override
 
virtual void SAL_CALL removeByName (const OUString &Name) override
 
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration () override
 
virtual css::uno::Type SAL_CALL getElementType () override
 
virtual sal_Bool SAL_CALL hasElements () override
 
virtual css::uno::Any SAL_CALL getByName (const OUString &aName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames () override
 
virtual sal_Bool SAL_CALL hasByName (const OUString &aName) override
 
virtual void SAL_CALL replaceByName (const OUString &aName, const css::uno::Any &aElement) override
 
virtual void SAL_CALL setPropertyValue (const OUString &aPropertyName, const css::uno::Any &aValue) override
 
virtual css::uno::Any SAL_CALL getPropertyValue (const OUString &PropertyName) override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 

Private Attributes

ContentHash maContents
 
OUString m_sVersion
 

Detailed Description

Definition at line 61 of file ZipPackageFolder.hxx.

Constructor & Destructor Documentation

◆ ZipPackageFolder()

ZipPackageFolder::ZipPackageFolder ( const css::uno::Reference< css::uno::XComponentContext > &  xContext,
sal_Int32  nFormat,
bool  bAllowRemoveOnInsert 
)

Definition at line 51 of file ZipPackageFolder.cxx.

References m_nFormat, and m_xContext.

◆ ~ZipPackageFolder()

ZipPackageFolder::~ZipPackageFolder ( )
overridevirtual

Definition at line 69 of file ZipPackageFolder.cxx.

Member Function Documentation

◆ createEnumeration()

uno::Reference< XEnumeration > SAL_CALL ZipPackageFolder::createEnumeration ( )
overridevirtual

Definition at line 176 of file ZipPackageFolder.cxx.

References maContents.

◆ doGetByName()

ZipContentInfo & ZipPackageFolder::doGetByName ( const OUString &  aName)

◆ doInsertByName()

void ZipPackageFolder::doInsertByName ( ZipPackageEntry pEntry,
bool  bSetParent 
)
Exceptions
css::lang::IllegalArgumentException
css::container::ElementExistException
css::lang::WrappedTargetException
css::uno::RuntimeException

Definition at line 361 of file ZipPackageFolder.cxx.

References ZipPackageEntry::getName(), ZipPackageEntry::IsFolder(), maContents, and ZipPackageEntry::setParent().

Referenced by ZipPackageEntry::doSetParent(), insertByName(), and ZipPackageEntry::setName().

◆ getByName()

uno::Any SAL_CALL ZipPackageFolder::getByName ( const OUString &  aName)
overridevirtual

Definition at line 198 of file ZipPackageFolder.cxx.

References aName, and doGetByName().

Referenced by ZipPackage::getByHierarchicalName().

◆ getElementNames()

uno::Sequence< OUString > SAL_CALL ZipPackageFolder::getElementNames ( )
overridevirtual

Definition at line 202 of file ZipPackageFolder.cxx.

References maContents, and comphelper::mapKeysToSequence().

◆ getElementType()

uno::Type SAL_CALL ZipPackageFolder::getElementType ( )
overridevirtual

Definition at line 181 of file ZipPackageFolder.cxx.

References cppu::UnoType< typename T >::get().

◆ getImplementationName()

OUString ZipPackageFolder::getImplementationName ( )
overridevirtual

Definition at line 371 of file ZipPackageFolder.cxx.

◆ getPropertyValue()

uno::Any SAL_CALL ZipPackageFolder::getPropertyValue ( const OUString &  PropertyName)
overridevirtual

Definition at line 343 of file ZipPackageFolder.cxx.

References m_sVersion.

◆ getSupportedServiceNames()

uno::Sequence< OUString > ZipPackageFolder::getSupportedServiceNames ( )
overridevirtual

Definition at line 376 of file ZipPackageFolder.cxx.

◆ GetVersion()

const OUString & ZipPackageFolder::GetVersion ( ) const
inline

Definition at line 79 of file ZipPackageFolder.hxx.

References m_sVersion.

Referenced by saveChild().

◆ hasByName()

sal_Bool SAL_CALL ZipPackageFolder::hasByName ( const OUString &  aName)
overridevirtual

◆ hasElements()

sal_Bool SAL_CALL ZipPackageFolder::hasElements ( )
overridevirtual

Definition at line 185 of file ZipPackageFolder.cxx.

References maContents.

◆ insertByName()

void SAL_CALL ZipPackageFolder::insertByName ( const OUString &  aName,
const css::uno::Any &  aElement 
)
overridevirtual

◆ LookForUnexpectedODF12Streams()

bool ZipPackageFolder::LookForUnexpectedODF12Streams ( std::u16string_view  aPath)

Definition at line 73 of file ZipPackageFolder.cxx.

References maContents, and u.

◆ removeByName()

void SAL_CALL ZipPackageFolder::removeByName ( const OUString &  Name)
overridevirtual

◆ replaceByName()

void SAL_CALL ZipPackageFolder::replaceByName ( const OUString &  aName,
const css::uno::Any &  aElement 
)
overridevirtual

Definition at line 211 of file ZipPackageFolder.cxx.

References aName, hasByName(), insertByName(), removeByName(), and THROW_WHERE.

◆ saveChild()

bool ZipPackageFolder::saveChild ( const OUString &  rPath,
std::vector< css::uno::Sequence< css::beans::PropertyValue > > &  rManList,
ZipOutputStream rZipOut,
const css::uno::Sequence< sal_Int8 > &  rEncryptionKey,
sal_Int32  nPBKDF2IterationCount,
const rtlRandomPool rRandomPool 
)
overridevirtual

◆ saveContents()

void ZipPackageFolder::saveContents ( const OUString &  rPath,
std::vector< css::uno::Sequence< css::beans::PropertyValue > > &  rManList,
ZipOutputStream rZipOut,
const css::uno::Sequence< sal_Int8 > &  rEncryptionKey,
sal_Int32  nPBKDF2IterationCount,
const rtlRandomPool rRandomPool 
) const

◆ setChildStreamsTypeByExtension()

void ZipPackageFolder::setChildStreamsTypeByExtension ( const css::beans::StringPair &  aPair)

Definition at line 124 of file ZipPackageFolder.cxx.

References maContents.

◆ setPackageFormat_Impl()

void ZipPackageFolder::setPackageFormat_Impl ( sal_Int32  nFormat)
inline

Definition at line 94 of file ZipPackageFolder.hxx.

References m_nFormat.

◆ setPropertyValue()

void SAL_CALL ZipPackageFolder::setPropertyValue ( const OUString &  aPropertyName,
const css::uno::Any &  aValue 
)
overridevirtual

Definition at line 326 of file ZipPackageFolder.cxx.

References m_sVersion.

◆ setRemoveOnInsertMode_Impl()

void ZipPackageFolder::setRemoveOnInsertMode_Impl ( bool  bRemove)
inline

Definition at line 95 of file ZipPackageFolder.hxx.

◆ SetVersion()

void ZipPackageFolder::SetVersion ( const OUString &  aVersion)
inline

Definition at line 80 of file ZipPackageFolder.hxx.

References m_sVersion.

◆ supportsService()

sal_Bool SAL_CALL ZipPackageFolder::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 381 of file ZipPackageFolder.cxx.

References cppu::supportsService().

Member Data Documentation

◆ m_sVersion

OUString ZipPackageFolder::m_sVersion
private

Definition at line 70 of file ZipPackageFolder.hxx.

Referenced by getPropertyValue(), GetVersion(), setPropertyValue(), and SetVersion().

◆ maContents

ContentHash ZipPackageFolder::maContents
private

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