[PATCH] Removed COMPRESSMODE_FULL support from SvStream
Matteo Casalin
matteo.casalin at poste.it
Sat Dec 17 02:14:28 PST 2011
---
.../source/filter.vcl/filter/svt_filter.cxx | 1 -
binfilter/bf_svx/source/xoutdev/svx__xpoly.cxx | 92 --------------------
2 files changed, 0 insertions(+), 93 deletions(-)
diff --git a/binfilter/bf_svtools/source/filter.vcl/filter/svt_filter.cxx b/binfilter/bf_svtools/source/filter.vcl/filter/svt_filter.cxx
index de5f206..a7dfa74 100644
--- a/binfilter/bf_svtools/source/filter.vcl/filter/svt_filter.cxx
+++ b/binfilter/bf_svtools/source/filter.vcl/filter/svt_filter.cxx
@@ -1894,7 +1894,6 @@ USHORT GraphicFilter::ExportGraphic( const Graphic& rGraphic, const String& rPat
SvMemoryStream aMemStm( 65535, 65535 );
- aMemStm.SetCompressMode( COMPRESSMODE_FULL );
( (GDIMetaFile&) aGraphic.GetGDIMetaFile() ).Write( aMemStm );
xActiveDataSource->setOutputStream( ::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream >(
diff --git a/binfilter/bf_svx/source/xoutdev/svx__xpoly.cxx b/binfilter/bf_svx/source/xoutdev/svx__xpoly.cxx
index d7124a2..081ea9f 100644
--- a/binfilter/bf_svx/source/xoutdev/svx__xpoly.cxx
+++ b/binfilter/bf_svx/source/xoutdev/svx__xpoly.cxx
@@ -969,39 +969,6 @@ namespace binfilter {
/*N*/ else
/*N*/ rXPoly.pImpXPolygon->Resize( nMerkPoints );
/*N*/
-/*N*/ // Je nach CompressMode das Polygon einlesen
-/*N*/ if ( rIStream.GetCompressMode() == COMPRESSMODE_FULL )
-/*N*/ {
-/*?*/ i = 0;
-/*?*/ while ( i < nReadPoints )
-/*?*/ {
-/*?*/ rIStream >> bShort >> nCurPoints;
-/*?*/
-/*?*/ if ( bShort )
-/*?*/ {
-/*?*/ for ( nStart = i; i < nStart+nCurPoints; i++ )
-/*?*/ {
-/*?*/ rIStream >> nShortX >> nShortY;
-/*?*/ if (i<nMerkPoints) { // restliche Punkte ueberspringen
-/*?*/ rXPoly.pImpXPolygon->pPointAry[i].X() = nShortX;
-/*?*/ rXPoly.pImpXPolygon->pPointAry[i].Y() = nShortY;
-/*?*/ }
-/*?*/ }
-/*?*/ }
-/*?*/ else
-/*?*/ {
-/*?*/ for ( nStart = i; i < nStart+nCurPoints; i++ )
-/*?*/ {
-/*?*/ rIStream >> nLongX >> nLongY;
-/*?*/ if (i<nMerkPoints) { // restliche Punkte ueberspringen
-/*?*/ rXPoly.pImpXPolygon->pPointAry[i].X() = nLongX;
-/*?*/ rXPoly.pImpXPolygon->pPointAry[i].Y() = nLongY;
-/*?*/ }
-/*?*/ }
-/*?*/ }
-/*?*/ }
-/*N*/ }
-/*N*/ else
/*N*/ {
// Feststellen, ob ueber die Operatoren gelesen werden muss
#if (__SIZEOFLONG) != 4
@@ -1065,65 +1032,6 @@ namespace binfilter {
/*N*/ // Anzahl der Punkte rausschreiben
/*N*/ rOStream << nPoints;
/*N*/
-/*N*/ // Je nach CompressMode das Polygon rausschreiben
-/*N*/ if ( rOStream.GetCompressMode() == COMPRESSMODE_FULL )
-/*N*/ {
-/*?*/ i = 0;
-/*?*/ while ( i < nPoints )
-/*?*/ {
-/*?*/ nStart = i;
-/*?*/
-/*?*/ // Feststellen, welcher Typ geschrieben werden soll
-/*?*/ if ( ((rXPoly.pImpXPolygon->pPointAry[nStart].X() >= SHRT_MIN) &&
-/*?*/ (rXPoly.pImpXPolygon->pPointAry[nStart].X() <= SHRT_MAX)) &&
-/*?*/ ((rXPoly.pImpXPolygon->pPointAry[nStart].Y() >= SHRT_MIN) &&
-/*?*/ (rXPoly.pImpXPolygon->pPointAry[nStart].Y() <= SHRT_MAX)) )
-/*?*/ bShort = TRUE;
-/*?*/ else
-/*?*/ bShort = FALSE;
-/*?*/ while ( i < nPoints )
-/*?*/ {
-/*?*/ // Feststellen, welcher Typ geschrieben werden soll
-/*?*/ if ( ((rXPoly.pImpXPolygon->pPointAry[nStart].X() >= SHRT_MIN) &&
-/*?*/ (rXPoly.pImpXPolygon->pPointAry[nStart].X() <= SHRT_MAX)) &&
-/*?*/ ((rXPoly.pImpXPolygon->pPointAry[nStart].Y() >= SHRT_MIN) &&
-/*?*/ (rXPoly.pImpXPolygon->pPointAry[nStart].Y() <= SHRT_MAX)) )
-/*?*/ bCurShort = TRUE;
-/*?*/ else
-/*?*/ bCurShort = FALSE;
-/*?*/
-/*?*/ // Wenn sich die Werte in einen anderen Bereich begeben,
-/*?*/ // muessen wir neu rausschreiben
-/*?*/ if ( bCurShort != bShort )
-/*?*/ {
-/*?*/ bShort = bCurShort;
-/*?*/ break;
-/*?*/ }
-/*?*/
-/*?*/ i++;
-/*?*/ }
-/*?*/
-/*?*/ rOStream << bShort << (USHORT)(i-nStart);
-/*?*/
-/*?*/ if ( bShort )
-/*?*/ {
-/*?*/ for( ; nStart < i; nStart++ )
-/*?*/ {
-/*?*/ rOStream << (short)rXPoly.pImpXPolygon->pPointAry[nStart].X()
-/*?*/ << (short)rXPoly.pImpXPolygon->pPointAry[nStart].Y();
-/*?*/ }
-/*?*/ }
-/*?*/ else
-/*?*/ {
-/*?*/ for( ; nStart < i; nStart++ )
-/*?*/ {
-/*?*/ rOStream << rXPoly.pImpXPolygon->pPointAry[nStart].X()
-/*?*/ << rXPoly.pImpXPolygon->pPointAry[nStart].Y();
-/*?*/ }
-/*?*/ }
-/*?*/ }
-/*N*/ }
-/*N*/ else
/*N*/ {
// Feststellen, ob ueber die Operatoren geschrieben werden muss
#if (__SIZEOFLONG) != 4
--
1.7.5.4
--------------020107040304000209030001
Content-Type: text/x-diff;
name="0001-Removed-COMPRESSMODE_FULL-support-from-SvStream.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename*0="0001-Removed-COMPRESSMODE_FULL-support-from-SvStream.patch"
More information about the LibreOffice
mailing list