32 aPathExt( rPath.GetFileExtension().toAsciiLowerCase() ),
39 pFileStm ( &rInStream ),
66 else if (
ImpDetectJPG( rStm, bExtendedInfo ) ) bRet =
true;
67 else if (
ImpDetectBMP( rStm, bExtendedInfo ) ) bRet =
true;
68 else if (
ImpDetectPNG( rStm, bExtendedInfo ) ) bRet =
true;
69 else if (
ImpDetectTIF( rStm, bExtendedInfo ) ) bRet =
true;
71 else if (
ImpDetectDXF( rStm, bExtendedInfo ) ) bRet =
true;
72 else if (
ImpDetectMET( rStm, bExtendedInfo ) ) bRet =
true;
73 else if (
ImpDetectSVM( rStm, bExtendedInfo ) ) bRet =
true;
74 else if (
ImpDetectWMF( rStm, bExtendedInfo ) ) bRet =
true;
75 else if (
ImpDetectEMF( rStm, bExtendedInfo ) ) bRet =
true;
76 else if (
ImpDetectSVG( rStm, bExtendedInfo ) ) bRet =
true;
77 else if (
ImpDetectPCT( rStm, bExtendedInfo ) ) bRet =
true;
78 else if (
ImpDetectXBM( rStm, bExtendedInfo ) ) bRet =
true;
79 else if (
ImpDetectXPM( rStm, bExtendedInfo ) ) bRet =
true;
80 else if (
ImpDetectPBM( rStm, bExtendedInfo ) ) bRet =
true;
81 else if (
ImpDetectPGM( rStm, bExtendedInfo ) ) bRet =
true;
82 else if (
ImpDetectPPM( rStm, bExtendedInfo ) ) bRet =
true;
83 else if (
ImpDetectRAS( rStm, bExtendedInfo ) ) bRet =
true;
84 else if (
ImpDetectTGA( rStm, bExtendedInfo ) ) bRet =
true;
85 else if (
ImpDetectPSD( rStm, bExtendedInfo ) ) bRet =
true;
86 else if (
ImpDetectEPS( rStm, bExtendedInfo ) ) bRet =
true;
87 else if (
ImpDetectPCD( rStm, bExtendedInfo ) ) bRet =
true;
135 while ( nByte != 0xff );
142 while( nByte == 0xff );
151 sal_uInt32 nTemp32 = 0;
154 sal_Int32 nStmPos = rStm.
Tell();
160 if( 0xffd8ff00 == ( nTemp32 & 0xffffff00 ) )
171 bool bScanFailure =
false;
172 bool bScanFinished =
false;
175 while (!bScanFailure && !bScanFinished && rStm.
good())
198 bScanFinished =
true;
211 sal_uInt32 nNextMarkerPos = rStm.
Tell() +
nLength - 2;
218 sal_Int32 nIdentifier = 0;
220 if ( nIdentifier == 0x4a464946 )
226 sal_uInt16 nHorizontalResolution = 0;
227 sal_uInt16 nVerticalResolution = 0;
241 if ( nUnits && nHorizontalResolution && nVerticalResolution )
243 aMap.SetMapUnit( nUnits == 1 ? MapUnit::MapInch : MapUnit::MapCM );
269 sal_uInt16 nNumberOfLines = 0;
270 sal_uInt16 nSamplesPerLine = 0;
274 sal_uInt8 nQuantizationTableDestinationSelector = 0;
281 .
ReadUChar( nQuantizationTableDestinationSelector );
292 if (
aMap.GetMapUnit() != MapUnit::MapPixel)
299 bScanFinished =
true;
303 rStm.
Seek( nNextMarkerPos );
312 rStm.
Seek( nStmPos );
bool ImpDetectDXF(SvStream &rStm, bool bExtendedInfo)
bool ImpDetectSVM(SvStream &rStm, bool bExtendedInfo)
bool ImpDetectWMF(SvStream &rStm, bool bExtendedInfo)
bool ImpDetectPNG(SvStream &rStm, bool bExtendedInfo)
bool ImpDetectTIF(SvStream &rStm, bool bExtendedInfo)
bool ImpDetectPGM(SvStream &rStm, bool bExtendedInfo)
GraphicDescriptor(const GraphicDescriptor &)=delete
static OUString GetImportFormatShortName(GraphicFileFormat nFormat)
bool Detect(bool bExtendedInfo=false)
starts the detection
bool ImpDetectMET(SvStream &rStm, bool bExtendedInfo)
bool ImpDetectRAS(SvStream &rStm, bool bExtendedInfo)
bool ImpDetectPCD(SvStream &rStm, bool bExtendedInfo)
GraphicMetadata aMetadata
bool ImpDetectEPS(SvStream &rStm, bool bExtendedInfo)
bool ImpDetectPPM(SvStream &rStm, bool bExtendedInfo)
bool ImpDetectPSD(SvStream &rStm, bool bExtendedInfo)
bool ImpDetectWEBP(SvStream &rStm, bool bExtendedInfo)
bool ImpDetectXPM(SvStream &rStm, bool bExtendedInfo)
bool ImpDetectPBM(SvStream &rStm, bool bExtendedInfo)
bool ImpDetectXBM(SvStream &rStm, bool bExtendedInfo)
bool ImpDetectBMP(SvStream &rStm, bool bExtendedInfo)
bool ImpDetectJPG(SvStream &rStm, bool bExtendedInfo)
bool ImpDetectSVG(SvStream &rStm, bool bExtendedInfo)
bool ImpDetectGIF(SvStream &rStm, bool bExtendedInfo)
bool ImpDetectPCX(SvStream &rStm)
bool ImpDetectEMF(SvStream &rStm, bool bExtendedInfo)
bool ImpDetectTGA(SvStream &rStm, bool bExtendedInfo)
bool ImpDetectPCT(SvStream &rStm, bool bExtendedInfo)
SAL_WARN_UNUSED_RESULT Point LogicToLogic(const Point &rPtSource, const MapMode *pMapModeSource, const MapMode *pMapModeDest) const
void setWidth(tools::Long nWidth)
void setHeight(tools::Long nHeight)
void SetEndian(SvStreamEndian SvStreamEndian)
SvStream & ReadUInt32(sal_uInt32 &rUInt32)
SvStreamEndian GetEndian() const
void SetError(ErrCode nErrorCode)
sal_uInt64 Seek(sal_uInt64 nPos)
SvStream & ReadInt32(sal_Int32 &rInt32)
sal_uInt64 SeekRel(sal_Int64 nPos)
SvStream & ReadUInt16(sal_uInt16 &rUInt16)
SvStream & ReadUChar(unsigned char &rChar)
static sal_uInt8 ImpDetectJPG_GetNextMarker(SvStream &rStm)
static OUString getImportFormatShortName(GraphicFileFormat nFormat)
HashMap_OWString_Interface aMap