summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2008-06-20 06:20:06 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2008-06-20 06:20:06 +0000
commit253399a912d3ce4e6fe20edc5b6785e0b5cfd0b4 (patch)
tree7325ed3a9db3ac3257bfb5675df8c82ac78511bf
parent1fa173d06c51f750ee05259a7b12e576a7eb0abf (diff)
INTEGRATION: CWS fwk88 (1.16.8); FILE MERGED
2008/05/27 15:57:23 mav 1.16.8.1: #i86348# integrate the patch
-rw-r--r--package/source/zipapi/Deflater.cxx83
1 files changed, 1 insertions, 82 deletions
diff --git a/package/source/zipapi/Deflater.cxx b/package/source/zipapi/Deflater.cxx
index cda811ef73d2..338f4e4364a0 100644
--- a/package/source/zipapi/Deflater.cxx
+++ b/package/source/zipapi/Deflater.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: Deflater.cxx,v $
- * $Revision: 1.16 $
+ * $Revision: 1.17 $
*
* This file is part of OpenOffice.org.
*
@@ -74,30 +74,6 @@ void Deflater::init (sal_Int32 nLevelArg, sal_Int32 nStrategyArg, sal_Bool bNowr
}
}
-Deflater::Deflater()
-: bFinish(sal_False)
-, bFinished(sal_False)
-, bSetParams(sal_False)
-, nLevel(DEFAULT_COMPRESSION)
-, nStrategy(DEFAULT_STRATEGY)
-, nOffset(0)
-, nLength(0)
-{
- init(DEFAULT_COMPRESSION, DEFAULT_STRATEGY, sal_False);
-}
-
-Deflater::Deflater(sal_Int32 nSetLevel)
-: bFinish(sal_False)
-, bFinished(sal_False)
-, bSetParams(sal_False)
-, nLevel(nSetLevel)
-, nStrategy(DEFAULT_STRATEGY)
-, nOffset(0)
-, nLength(0)
-{
- init(nSetLevel, DEFAULT_STRATEGY, sal_False);
-}
-
Deflater::Deflater(sal_Int32 nSetLevel, sal_Bool bNowrap)
: bFinish(sal_False)
, bFinished(sal_False)
@@ -176,54 +152,6 @@ void SAL_CALL Deflater::setInputSegment( const uno::Sequence< sal_Int8 >& rBuffe
nOffset = nNewOffset;
nLength = nNewLength;
}
-void SAL_CALL Deflater::setInput( const uno::Sequence< sal_Int8 >& rBuffer )
-{
- sInBuffer = rBuffer;
- nOffset = 0;
- nLength = rBuffer.getLength();
-}
-void SAL_CALL Deflater::setDictionarySegment( const uno::Sequence< sal_Int8 >& rBuffer, sal_Int32 nNewOffset, sal_Int32 nNewLength )
-{
- if (pStream == NULL)
- {
- // do error handling
- }
- if (nNewOffset < 0 || nNewLength < 0 || nNewOffset + nNewLength > rBuffer.getLength())
- {
- // do error handling
- }
-#ifdef SYSTEM_ZLIB
- deflateSetDictionary(pStream, (const unsigned char*)rBuffer.getConstArray()+nOffset, nLength);
-#else
- z_deflateSetDictionary(pStream, (const unsigned char*)rBuffer.getConstArray()+nOffset, nLength);
-#endif
-}
-void SAL_CALL Deflater::setDictionary( const uno::Sequence< sal_Int8 >& rBuffer )
-{
- if (pStream == NULL)
- {
- // do error handling
- }
-#ifdef SYSTEM_ZLIB
- deflateSetDictionary(pStream, (const unsigned char*)rBuffer.getConstArray(), rBuffer.getLength());
-#else
- z_deflateSetDictionary(pStream, (const unsigned char*)rBuffer.getConstArray(), rBuffer.getLength());
-#endif
-}
-void SAL_CALL Deflater::setStrategy( sal_Int32 nNewStrategy )
-{
- if (nNewStrategy != DEFAULT_STRATEGY &&
- nNewStrategy != FILTERED &&
- nNewStrategy != HUFFMAN_ONLY)
- {
- // do error handling
- }
- if (nStrategy != nNewStrategy)
- {
- nStrategy = nNewStrategy;
- bSetParams = sal_True;
- }
-}
void SAL_CALL Deflater::setLevel( sal_Int32 nNewLevel )
{
if ((nNewLevel < 0 || nNewLevel > 9) && nNewLevel != DEFAULT_COMPRESSION)
@@ -253,15 +181,6 @@ sal_Int32 SAL_CALL Deflater::doDeflateSegment( uno::Sequence< sal_Int8 >& rBuffe
OSL_ASSERT( !(nNewOffset < 0 || nNewLength < 0 || nNewOffset + nNewLength > rBuffer.getLength()));
return doDeflateBytes(rBuffer, nNewOffset, nNewLength);
}
-sal_Int32 SAL_CALL Deflater::doDeflate( uno::Sequence< sal_Int8 >& rBuffer )
-{
- return doDeflateBytes(rBuffer, 0, rBuffer.getLength());
-}
-
-sal_Int32 SAL_CALL Deflater::getAdler( )
-{
- return pStream->adler;
-}
sal_Int32 SAL_CALL Deflater::getTotalIn( )
{
return pStream->total_in;