LibreOffice Module package (master) 1
|
#include <ZipPackageFolder.hxx>
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) |
ZipContentInfo & | doGetByName (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 |
Definition at line 61 of file ZipPackageFolder.hxx.
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.
|
overridevirtual |
Definition at line 69 of file ZipPackageFolder.cxx.
|
overridevirtual |
Definition at line 176 of file ZipPackageFolder.cxx.
References maContents.
ZipContentInfo & ZipPackageFolder::doGetByName | ( | const OUString & | aName | ) |
Definition at line 190 of file ZipPackageFolder.cxx.
References aName, maContents, and THROW_WHERE.
Referenced by ZipPackage::getByHierarchicalName(), getByName(), ZipPackage::getZipFileContents(), and ZipPackage::hasByHierarchicalName().
void ZipPackageFolder::doInsertByName | ( | ZipPackageEntry * | pEntry, |
bool | bSetParent | ||
) |
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().
|
overridevirtual |
Definition at line 198 of file ZipPackageFolder.cxx.
References aName, and doGetByName().
Referenced by ZipPackage::getByHierarchicalName().
|
overridevirtual |
Definition at line 202 of file ZipPackageFolder.cxx.
References maContents, and comphelper::mapKeysToSequence().
|
overridevirtual |
Definition at line 181 of file ZipPackageFolder.cxx.
References cppu::UnoType< typename T >::get().
|
overridevirtual |
Definition at line 371 of file ZipPackageFolder.cxx.
|
overridevirtual |
Definition at line 343 of file ZipPackageFolder.cxx.
References m_sVersion.
|
overridevirtual |
Definition at line 376 of file ZipPackageFolder.cxx.
|
inline |
Definition at line 79 of file ZipPackageFolder.hxx.
References m_sVersion.
Referenced by saveChild().
|
overridevirtual |
Definition at line 206 of file ZipPackageFolder.cxx.
References aName, and maContents.
Referenced by ZipPackageEntry::doSetParent(), ZipPackage::getByHierarchicalName(), ZipPackage::getZipFileContents(), ZipPackage::hasByHierarchicalName(), insertByName(), replaceByName(), ZipPackageEntry::setName(), and ZipPackageEntry::setParent().
|
overridevirtual |
Definition at line 185 of file ZipPackageFolder.cxx.
References maContents.
|
overridevirtual |
Definition at line 147 of file ZipPackageFolder.cxx.
References aName, doInsertByName(), ZipPackageEntry::getName(), hasByName(), ZipPackageEntry::setName(), and THROW_WHERE.
Referenced by replaceByName().
bool ZipPackageFolder::LookForUnexpectedODF12Streams | ( | std::u16string_view | aPath | ) |
Definition at line 73 of file ZipPackageFolder.cxx.
References maContents, and u.
|
overridevirtual |
Definition at line 168 of file ZipPackageFolder.cxx.
References maContents, Name, and THROW_WHERE.
Referenced by replaceByName(), ZipPackageEntry::setName(), and ZipPackageEntry::setParent().
|
overridevirtual |
Definition at line 211 of file ZipPackageFolder.cxx.
References aName, hasByName(), insertByName(), removeByName(), and THROW_WHERE.
|
overridevirtual |
Definition at line 220 of file ZipPackageFolder.cxx.
References GetVersion(), m_nFormat, PKG_MNFST_FULLPATH, PKG_MNFST_MEDIATYPE, PKG_MNFST_VERSION, PKG_SIZE_NOENCR_MNFST, and 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 |
css::uno::RuntimeException |
Definition at line 253 of file ZipPackageFolder.cxx.
References m_nFormat, maContents, ZipEntry::nExtraLen, ZipEntry::nPathLen, OUStringToOString(), ZipOutputStream::rawCloseEntry(), ZipOutputStream::setEntry(), ZipEntry::sPath, THROW_WHERE, and ZipOutputStream::writeLOC().
Referenced by saveChild().
void ZipPackageFolder::setChildStreamsTypeByExtension | ( | const css::beans::StringPair & | aPair | ) |
Definition at line 124 of file ZipPackageFolder.cxx.
References maContents.
|
inline |
Definition at line 94 of file ZipPackageFolder.hxx.
References m_nFormat.
|
overridevirtual |
Definition at line 326 of file ZipPackageFolder.cxx.
References m_sVersion.
|
inline |
Definition at line 95 of file ZipPackageFolder.hxx.
|
inline |
Definition at line 80 of file ZipPackageFolder.hxx.
References m_sVersion.
|
overridevirtual |
Definition at line 381 of file ZipPackageFolder.cxx.
References cppu::supportsService().
|
private |
Definition at line 70 of file ZipPackageFolder.hxx.
Referenced by getPropertyValue(), GetVersion(), setPropertyValue(), and SetVersion().
|
private |
Definition at line 69 of file ZipPackageFolder.hxx.
Referenced by createEnumeration(), doGetByName(), doInsertByName(), getElementNames(), hasByName(), hasElements(), LookForUnexpectedODF12Streams(), removeByName(), saveContents(), and setChildStreamsTypeByExtension().