summaryrefslogtreecommitdiff
path: root/package/inc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2017-01-10 22:05:13 -0500
committerKohei Yoshida <libreoffice@kohei.us>2017-01-11 14:43:57 +0000
commita544fd5fa233135f150b44c843a14be461952ecd (patch)
tree7bbe8bb6bc3c5324c024dfa64f174de38b03165a /package/inc
parentbe7d0697b0e2d55ce01dcd4abec5d106115d8920 (diff)
Remove unnecessary UNO-ness from ZipFile class.
This class is only used inside package module, and totally private to the module. Change-Id: Ib00e7066c22a74c0b16c8d6ecf72b99ac42682dd Reviewed-on: https://gerrit.libreoffice.org/32945 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
Diffstat (limited to 'package/inc')
-rw-r--r--package/inc/ZipFile.hxx49
1 files changed, 13 insertions, 36 deletions
diff --git a/package/inc/ZipFile.hxx b/package/inc/ZipFile.hxx
index c32d58209e0b..bfc056f191ff 100644
--- a/package/inc/ZipFile.hxx
+++ b/package/inc/ZipFile.hxx
@@ -53,7 +53,6 @@ class ZipEnumeration;
class ZipFile
{
-protected:
::osl::Mutex m_aMutex;
EntryHash aEntries;
@@ -82,20 +81,21 @@ protected:
void getSizeAndCRC( sal_Int64 nOffset, sal_Int64 nCompressedSize, sal_Int64 *nSize, sal_Int32 *nCRC );
+ bool readLOC( ZipEntry &rEntry );
+ sal_Int32 readCEN();
+ sal_Int32 findEND();
+ void recover();
+
public:
ZipFile( css::uno::Reference < css::io::XInputStream > &xInput,
const css::uno::Reference < css::uno::XComponentContext > &rxContext,
- bool bInitialise
- )
- throw(css::io::IOException, css::packages::zip::ZipException, css::uno::RuntimeException);
+ bool bInitialise );
ZipFile( css::uno::Reference < css::io::XInputStream > &xInput,
const css::uno::Reference < css::uno::XComponentContext > &rxContext,
bool bInitialise,
- bool bForceRecover
- )
- throw(css::io::IOException, css::packages::zip::ZipException, css::uno::RuntimeException);
+ bool bForceRecover );
~ZipFile();
@@ -106,8 +106,7 @@ public:
ZipEntry& rEntry,
const ::rtl::Reference < EncryptionData > &rData,
bool bDecrypt,
- const rtl::Reference<SotMutexHolder>& aMutexHolder )
- throw(css::io::IOException, css::packages::zip::ZipException, css::uno::RuntimeException);
+ const rtl::Reference<SotMutexHolder>& aMutexHolder );
static css::uno::Reference< css::xml::crypto::XDigestContext > StaticGetDigestContextForChecksum(
const css::uno::Reference< css::uno::XComponentContext >& xArgContext,
@@ -135,10 +134,7 @@ public:
static css::uno::Reference< css::io::XInputStream > StaticGetDataFromRawStream(
const css::uno::Reference< css::uno::XComponentContext >& rxContext,
const css::uno::Reference< css::io::XInputStream >& xStream,
- const ::rtl::Reference < EncryptionData > &rData )
- throw ( css::packages::WrongPasswordException,
- css::packages::zip::ZipIOException,
- css::uno::RuntimeException );
+ const ::rtl::Reference < EncryptionData > &rData );
static bool StaticHasValidPassword (
const css::uno::Reference< css::uno::XComponentContext >& rxContext,
@@ -149,40 +145,21 @@ public:
ZipEntry& rEntry,
const ::rtl::Reference < EncryptionData > &rData,
bool bDecrypt,
- const rtl::Reference<SotMutexHolder>& aMutexHolder )
- throw(css::io::IOException, css::packages::zip::ZipException, css::uno::RuntimeException);
+ const rtl::Reference<SotMutexHolder>& aMutexHolder );
css::uno::Reference< css::io::XInputStream > SAL_CALL getDataStream(
ZipEntry& rEntry,
const ::rtl::Reference < EncryptionData > &rData,
bool bDecrypt,
- const rtl::Reference<SotMutexHolder>& aMutexHolder )
- throw ( css::packages::WrongPasswordException,
- css::io::IOException,
- css::packages::zip::ZipException,
- css::uno::RuntimeException );
+ const rtl::Reference<SotMutexHolder>& aMutexHolder );
css::uno::Reference< css::io::XInputStream > SAL_CALL getWrappedRawStream(
ZipEntry& rEntry,
const ::rtl::Reference < EncryptionData > &rData,
const OUString& aMediaType,
- const rtl::Reference<SotMutexHolder>& aMutexHolder )
- throw ( css::packages::NoEncryptionException,
- css::io::IOException,
- css::packages::zip::ZipException,
- css::uno::RuntimeException );
-
- ZipEnumeration * SAL_CALL entries( );
-protected:
- bool readLOC ( ZipEntry &rEntry)
- throw(css::io::IOException, css::packages::zip::ZipException, css::uno::RuntimeException);
- sal_Int32 readCEN()
- throw(css::io::IOException, css::packages::zip::ZipException, css::uno::RuntimeException);
- sal_Int32 findEND()
- throw(css::io::IOException, css::packages::zip::ZipException, css::uno::RuntimeException);
- void recover()
- throw(css::io::IOException, css::packages::zip::ZipException, css::uno::RuntimeException);
+ const rtl::Reference<SotMutexHolder>& aMutexHolder );
+ ZipEnumeration* entries();
};
#endif