diff options
Diffstat (limited to 'svtools/source/filter/filter2.cxx')
-rw-r--r-- | svtools/source/filter/filter2.cxx | 200 |
1 files changed, 0 insertions, 200 deletions
diff --git a/svtools/source/filter/filter2.cxx b/svtools/source/filter/filter2.cxx index 54649b25c836..5a3687716df1 100644 --- a/svtools/source/filter/filter2.cxx +++ b/svtools/source/filter/filter2.cxx @@ -39,12 +39,6 @@ sal_uInt8* ImplSearchEntry( sal_uInt8* , sal_uInt8* , sal_uLong , sal_uLong ); -/************************************************************************* -|* -|* -|* -\************************************************************************/ - GraphicDescriptor::GraphicDescriptor( const INetURLObject& rPath ) : pFileStm( ::utl::UcbStreamHelper::CreateStream( rPath.GetMainURL( INetURLObject::NO_DECODE ), STREAM_READ ) ), aPathExt( rPath.GetFileExtension().toAsciiLowerCase() ), @@ -53,12 +47,6 @@ GraphicDescriptor::GraphicDescriptor( const INetURLObject& rPath ) : ImpConstruct(); } -/************************************************************************* -|* -|* -|* -\************************************************************************/ - GraphicDescriptor::GraphicDescriptor( SvStream& rInStream, const String* pPath) : pFileStm ( &rInStream ), bOwnStream ( sal_False ) @@ -72,24 +60,12 @@ GraphicDescriptor::GraphicDescriptor( SvStream& rInStream, const String* pPath) } } -/************************************************************************* -|* -|* -|* -\************************************************************************/ - GraphicDescriptor::~GraphicDescriptor() { if ( bOwnStream ) delete pFileStm; } -/************************************************************************* -|* -|* -|* -\************************************************************************/ - sal_Bool GraphicDescriptor::Detect( sal_Bool bExtendedInfo ) { sal_Bool bRet = sal_False; @@ -129,12 +105,6 @@ sal_Bool GraphicDescriptor::Detect( sal_Bool bExtendedInfo ) return bRet; } -/************************************************************************* -|* -|* -|* -\************************************************************************/ - void GraphicDescriptor::ImpConstruct() { nFormat = GFF_NOT; @@ -143,13 +113,6 @@ void GraphicDescriptor::ImpConstruct() bCompressed = sal_False; } - -/************************************************************************* -|* -|* -|* -\************************************************************************/ - sal_Bool GraphicDescriptor::ImpDetectBMP( SvStream& rStm, sal_Bool bExtendedInfo ) { sal_uInt16 nTemp16; @@ -224,13 +187,6 @@ sal_Bool GraphicDescriptor::ImpDetectBMP( SvStream& rStm, sal_Bool bExtendedInfo return bRet; } - -/************************************************************************* -|* -|* -|* -\************************************************************************/ - sal_Bool GraphicDescriptor::ImpDetectGIF( SvStream& rStm, sal_Bool bExtendedInfo ) { sal_uInt32 n32; @@ -272,13 +228,6 @@ sal_Bool GraphicDescriptor::ImpDetectGIF( SvStream& rStm, sal_Bool bExtendedInfo return bRet; } - -/************************************************************************* -|* -|* -|* -\************************************************************************/ - // returns the next jpeg marker, a return value of 0 represents an error sal_uInt8 ImpDetectJPG_GetNextMarker( SvStream& rStm ) { @@ -462,13 +411,6 @@ sal_Bool GraphicDescriptor::ImpDetectJPG( SvStream& rStm, sal_Bool bExtendedInf return bRet; } - -/************************************************************************* -|* -|* -|* -\************************************************************************/ - sal_Bool GraphicDescriptor::ImpDetectPCD( SvStream& rStm, sal_Bool ) { sal_Bool bRet = sal_False; @@ -496,13 +438,6 @@ sal_Bool GraphicDescriptor::ImpDetectPCD( SvStream& rStm, sal_Bool ) return bRet; } - -/************************************************************************* -|* -|* -|* -\************************************************************************/ - sal_Bool GraphicDescriptor::ImpDetectPCX( SvStream& rStm, sal_Bool bExtendedInfo ) { // ! Because 0x0a can be interpreted as LF too ... @@ -585,13 +520,6 @@ sal_Bool GraphicDescriptor::ImpDetectPCX( SvStream& rStm, sal_Bool bExtendedInfo return bRet; } - -/************************************************************************* -|* -|* -|* -\************************************************************************/ - sal_Bool GraphicDescriptor::ImpDetectPNG( SvStream& rStm, sal_Bool bExtendedInfo ) { sal_uInt32 nTemp32; @@ -682,13 +610,6 @@ sal_Bool GraphicDescriptor::ImpDetectPNG( SvStream& rStm, sal_Bool bExtendedInfo return bRet; } - -/************************************************************************* -|* -|* -|* -\************************************************************************/ - sal_Bool GraphicDescriptor::ImpDetectTIF( SvStream& rStm, sal_Bool bExtendedInfo ) { sal_Bool bDetectOk = sal_False; @@ -820,13 +741,6 @@ sal_Bool GraphicDescriptor::ImpDetectTIF( SvStream& rStm, sal_Bool bExtendedInfo return bRet; } - -/************************************************************************* -|* -|* -|* -\************************************************************************/ - sal_Bool GraphicDescriptor::ImpDetectXBM( SvStream&, sal_Bool ) { sal_Bool bRet = aPathExt.CompareToAscii( "xbm", 3 ) == COMPARE_EQUAL; @@ -836,13 +750,6 @@ sal_Bool GraphicDescriptor::ImpDetectXBM( SvStream&, sal_Bool ) return bRet; } - -/************************************************************************* -|* -|* -|* -\************************************************************************/ - sal_Bool GraphicDescriptor::ImpDetectXPM( SvStream&, sal_Bool ) { sal_Bool bRet = aPathExt.CompareToAscii( "xpm", 3 ) == COMPARE_EQUAL; @@ -852,12 +759,6 @@ sal_Bool GraphicDescriptor::ImpDetectXPM( SvStream&, sal_Bool ) return bRet; } -/************************************************************************* -|* -|* -|* -\************************************************************************/ - sal_Bool GraphicDescriptor::ImpDetectPBM( SvStream& rStm, sal_Bool ) { sal_Bool bRet = sal_False; @@ -883,12 +784,6 @@ sal_Bool GraphicDescriptor::ImpDetectPBM( SvStream& rStm, sal_Bool ) return bRet; } -/************************************************************************* -|* -|* -|* -\************************************************************************/ - sal_Bool GraphicDescriptor::ImpDetectPGM( SvStream& rStm, sal_Bool ) { sal_Bool bRet = sal_False; @@ -911,12 +806,6 @@ sal_Bool GraphicDescriptor::ImpDetectPGM( SvStream& rStm, sal_Bool ) return bRet; } -/************************************************************************* -|* -|* -|* -\************************************************************************/ - sal_Bool GraphicDescriptor::ImpDetectPPM( SvStream& rStm, sal_Bool ) { sal_Bool bRet = sal_False; @@ -939,12 +828,6 @@ sal_Bool GraphicDescriptor::ImpDetectPPM( SvStream& rStm, sal_Bool ) return bRet; } -/************************************************************************* -|* -|* -|* -\************************************************************************/ - sal_Bool GraphicDescriptor::ImpDetectRAS( SvStream& rStm, sal_Bool ) { sal_uInt32 nMagicNumber; @@ -961,12 +844,6 @@ sal_Bool GraphicDescriptor::ImpDetectRAS( SvStream& rStm, sal_Bool ) return bRet; } -/************************************************************************* -|* -|* -|* -\************************************************************************/ - sal_Bool GraphicDescriptor::ImpDetectTGA( SvStream&, sal_Bool ) { sal_Bool bRet = aPathExt.CompareToAscii( "tga", 3 ) == COMPARE_EQUAL; @@ -976,12 +853,6 @@ sal_Bool GraphicDescriptor::ImpDetectTGA( SvStream&, sal_Bool ) return bRet; } -/************************************************************************* -|* -|* -|* -\************************************************************************/ - sal_Bool GraphicDescriptor::ImpDetectPSD( SvStream& rStm, sal_Bool bExtendedInfo ) { sal_Bool bRet = sal_False; @@ -1035,12 +906,6 @@ sal_Bool GraphicDescriptor::ImpDetectPSD( SvStream& rStm, sal_Bool bExtendedInfo return bRet; } -/************************************************************************* -|* -|* -|* -\************************************************************************/ - sal_Bool GraphicDescriptor::ImpDetectEPS( SvStream& rStm, sal_Bool ) { // es wird die EPS mit Vorschaubild Variante und die Extensionuebereinstimmung @@ -1067,12 +932,6 @@ sal_Bool GraphicDescriptor::ImpDetectEPS( SvStream& rStm, sal_Bool ) return bRet; } -/************************************************************************* -|* -|* -|* -\************************************************************************/ - sal_Bool GraphicDescriptor::ImpDetectDXF( SvStream&, sal_Bool ) { sal_Bool bRet = aPathExt.CompareToAscii( "dxf", 3 ) == COMPARE_EQUAL; @@ -1082,12 +941,6 @@ sal_Bool GraphicDescriptor::ImpDetectDXF( SvStream&, sal_Bool ) return bRet; } -/************************************************************************* -|* -|* -|* -\************************************************************************/ - sal_Bool GraphicDescriptor::ImpDetectMET( SvStream&, sal_Bool ) { sal_Bool bRet = aPathExt.CompareToAscii( "met", 3 ) == COMPARE_EQUAL; @@ -1097,13 +950,6 @@ sal_Bool GraphicDescriptor::ImpDetectMET( SvStream&, sal_Bool ) return bRet; } - -/************************************************************************* -|* -|* -|* -\************************************************************************/ - extern bool isPCT(SvStream& rStream, sal_uLong nStreamPos, sal_uLong nStreamLen); sal_Bool GraphicDescriptor::ImpDetectPCT( SvStream& rStm, sal_Bool ) @@ -1126,13 +972,6 @@ sal_Bool GraphicDescriptor::ImpDetectPCT( SvStream& rStm, sal_Bool ) return bRet; } - -/************************************************************************* -|* -|* -|* -\************************************************************************/ - sal_Bool GraphicDescriptor::ImpDetectSGF( SvStream& rStm, sal_Bool ) { sal_Bool bRet = sal_False; @@ -1158,13 +997,6 @@ sal_Bool GraphicDescriptor::ImpDetectSGF( SvStream& rStm, sal_Bool ) return bRet; } - -/************************************************************************* -|* -|* -|* -\************************************************************************/ - sal_Bool GraphicDescriptor::ImpDetectSGV( SvStream&, sal_Bool ) { sal_Bool bRet = aPathExt.CompareToAscii( "sgv", 3 ) == COMPARE_EQUAL; @@ -1174,13 +1006,6 @@ sal_Bool GraphicDescriptor::ImpDetectSGV( SvStream&, sal_Bool ) return bRet; } - -/************************************************************************* -|* -|* -|* -\************************************************************************/ - sal_Bool GraphicDescriptor::ImpDetectSVM( SvStream& rStm, sal_Bool bExtendedInfo ) { sal_uInt32 n32; @@ -1253,13 +1078,6 @@ sal_Bool GraphicDescriptor::ImpDetectSVM( SvStream& rStm, sal_Bool bExtendedInfo return bRet; } - -/************************************************************************* -|* -|* -|* -\************************************************************************/ - sal_Bool GraphicDescriptor::ImpDetectWMF( SvStream&, sal_Bool ) { sal_Bool bRet = aPathExt.CompareToAscii( "wmf",3 ) == COMPARE_EQUAL; @@ -1269,12 +1087,6 @@ sal_Bool GraphicDescriptor::ImpDetectWMF( SvStream&, sal_Bool ) return bRet; } -/************************************************************************* -|* -|* -|* -\************************************************************************/ - sal_Bool GraphicDescriptor::ImpDetectEMF( SvStream&, sal_Bool ) { sal_Bool bRet = aPathExt.CompareToAscii( "emf", 3 ) == COMPARE_EQUAL; @@ -1284,12 +1096,6 @@ sal_Bool GraphicDescriptor::ImpDetectEMF( SvStream&, sal_Bool ) return bRet; } -/************************************************************************* -|* -|* -|* -\************************************************************************/ - sal_Bool GraphicDescriptor::ImpDetectSVG( SvStream& /*rStm*/, sal_Bool /*bExtendedInfo*/ ) { sal_Bool bRet = aPathExt.CompareToAscii( "svg", 3 ) == COMPARE_EQUAL; @@ -1299,12 +1105,6 @@ sal_Bool GraphicDescriptor::ImpDetectSVG( SvStream& /*rStm*/, sal_Bool /*bExtend return bRet; } -/************************************************************************* -|* -|* -|* -\************************************************************************/ - String GraphicDescriptor::GetImportFormatShortName( sal_uInt16 nFormat ) { const char *pKeyName = 0; |