merge the formfield patch from ooo-build
[ooovba.git] / applied_patches / 0489-goodies-eps-filter-unix.diff
blob541a33436b672f540ffe9a01262b926841d289b9
1 diff -rup goodies/source/filter.vcl/eps.orig/eps.cxx goodies/source/filter.vcl/eps/eps.cxx
2 --- goodies/source/filter.vcl/eps.orig/eps.cxx 2007-11-26 12:08:53.000000000 +0100
3 +++ goodies/source/filter.vcl/eps/eps.cxx 2007-11-26 17:38:34.000000000 +0100
4 @@ -317,7 +317,11 @@ BOOL PSWriter::WritePS( const Graphic& r
5 // default values for the dialog options
6 mnLevel = 2;
7 mbGrayScale = FALSE;
8 +#ifdef UNX // don't compress by default on unix as ghostscript is unable to read LZW compressed eps
9 + mbCompression = FALSE;
10 +#else
11 mbCompression = TRUE;
12 +#endif
13 mnTextMode = 0; // default0 : export glyph outlines
15 // try to get the dialog selection
16 @@ -335,12 +339,20 @@ BOOL PSWriter::WritePS( const Graphic& r
17 String aVersionStr( RTL_CONSTASCII_USTRINGPARAM( "Version" ) );
18 String aColorStr( RTL_CONSTASCII_USTRINGPARAM( "ColorFormat" ) );
19 String aComprStr( RTL_CONSTASCII_USTRINGPARAM( "CompressionMode" ) );
20 +#ifdef UNX // don't put binary tiff preview ahead of postscript code by default on unix as ghostscript is unable to read it
21 + mnPreview = pFilterConfigItem->ReadInt32( aPreviewStr, 0 );
22 +#else
23 mnPreview = pFilterConfigItem->ReadInt32( aPreviewStr, 1 );
24 +#endif
25 mnLevel = pFilterConfigItem->ReadInt32( aVersionStr, 2 );
26 if ( mnLevel != 1 )
27 mnLevel = 2;
28 mbGrayScale = pFilterConfigItem->ReadInt32( aColorStr, 1 ) == 2;
29 - mbCompression = pFilterConfigItem->ReadInt32( aComprStr, 1 ) == 1;
30 +#ifdef UNX // don't compress by default on unix as ghostscript is unable to read LZW compressed eps
31 + mbCompression = pFilterConfigItem->ReadInt32( aComprStr, 0 ) != 0;
32 +#else
33 + mbCompression = pFilterConfigItem->ReadInt32( aComprStr, 1 ) == 1;
34 +#endif
35 String sTextMode( RTL_CONSTASCII_USTRINGPARAM( "TextMode" ) );
36 mnTextMode = pFilterConfigItem->ReadInt32( sTextMode, 0 );
37 if ( mnTextMode > 2 )