LibreOffice Module vcl (master)  1
Public Member Functions | Public Attributes | List of all members
vcl::GraphicFormatDetector Class Reference

#include <GraphicFormatDetector.hxx>

Collaboration diagram for vcl::GraphicFormatDetector:
[legend]

Public Member Functions

 GraphicFormatDetector (SvStream &rStream, OUString const &rFormatExtension)
 
bool detect ()
 
bool checkMET ()
 
bool checkBMP ()
 
bool checkWMForEMF ()
 
bool checkPCX ()
 
bool checkTIF ()
 
bool checkGIF ()
 
bool checkPNG ()
 
bool checkJPG ()
 
bool checkSVM ()
 
bool checkPCD ()
 
bool checkPSD ()
 
bool checkEPS ()
 
bool checkDXF ()
 
bool checkPCT ()
 
bool checkPBMorPGMorPPM ()
 
bool checkRAS ()
 
bool checkXPM ()
 
bool checkXBM ()
 
bool checkSVG ()
 
bool checkTGA ()
 
bool checkMOV ()
 
bool checkPDF ()
 

Public Attributes

SvStreammrStream
 
OUString maExtension
 
std::vector< sal_uInt8maFirstBytes
 
sal_uInt32 mnFirstLong
 
sal_uInt32 mnSecondLong
 
sal_uInt64 mnStreamPosition
 
sal_uInt64 mnStreamLength
 
OUString msDetectedFormat
 

Detailed Description

Definition at line 39 of file GraphicFormatDetector.hxx.

Constructor & Destructor Documentation

vcl::GraphicFormatDetector::GraphicFormatDetector ( SvStream rStream,
OUString const &  rFormatExtension 
)

Definition at line 322 of file GraphicFormatDetector.cxx.

Member Function Documentation

bool vcl::GraphicFormatDetector::checkBMP ( )

Definition at line 408 of file GraphicFormatDetector.cxx.

References maFirstBytes, and msDetectedFormat.

Referenced by vcl::peekGraphicFormat().

bool vcl::GraphicFormatDetector::checkDXF ( )

Definition at line 572 of file GraphicFormatDetector.cxx.

References i, maFirstBytes, and msDetectedFormat.

Referenced by vcl::peekGraphicFormat().

bool vcl::GraphicFormatDetector::checkEPS ( )
bool vcl::GraphicFormatDetector::checkGIF ( )

Definition at line 479 of file GraphicFormatDetector.cxx.

References maFirstBytes, mnFirstLong, and msDetectedFormat.

Referenced by vcl::peekGraphicFormat().

bool vcl::GraphicFormatDetector::checkJPG ( )

Definition at line 500 of file GraphicFormatDetector.cxx.

References maFirstBytes, mnFirstLong, and msDetectedFormat.

Referenced by vcl::peekGraphicFormat().

bool vcl::GraphicFormatDetector::checkMET ( )
bool vcl::GraphicFormatDetector::checkMOV ( )

Definition at line 790 of file GraphicFormatDetector.cxx.

References maFirstBytes, and msDetectedFormat.

Referenced by vcl::peekGraphicFormat().

bool vcl::GraphicFormatDetector::checkPBMorPGMorPPM ( )

Definition at line 619 of file GraphicFormatDetector.cxx.

References maFirstBytes, and msDetectedFormat.

Referenced by vcl::peekGraphicFormat().

bool vcl::GraphicFormatDetector::checkPCD ( )
bool vcl::GraphicFormatDetector::checkPCT ( )
bool vcl::GraphicFormatDetector::checkPCX ( )

Definition at line 453 of file GraphicFormatDetector.cxx.

References maFirstBytes, msDetectedFormat, and nVersion.

Referenced by vcl::peekGraphicFormat().

bool vcl::GraphicFormatDetector::checkPDF ( )

Definition at line 803 of file GraphicFormatDetector.cxx.

References maFirstBytes, and msDetectedFormat.

Referenced by vcl::peekGraphicFormat().

bool vcl::GraphicFormatDetector::checkPNG ( )

Definition at line 490 of file GraphicFormatDetector.cxx.

References mnFirstLong, mnSecondLong, and msDetectedFormat.

Referenced by vcl::peekGraphicFormat().

bool vcl::GraphicFormatDetector::checkPSD ( )

Definition at line 544 of file GraphicFormatDetector.cxx.

References mnFirstLong, mnSecondLong, and msDetectedFormat.

Referenced by vcl::peekGraphicFormat().

bool vcl::GraphicFormatDetector::checkRAS ( )

Definition at line 644 of file GraphicFormatDetector.cxx.

References mnFirstLong, and msDetectedFormat.

Referenced by vcl::peekGraphicFormat().

bool vcl::GraphicFormatDetector::checkSVG ( )
bool vcl::GraphicFormatDetector::checkSVM ( )

Definition at line 512 of file GraphicFormatDetector.cxx.

References maFirstBytes, mnFirstLong, and msDetectedFormat.

Referenced by vcl::peekGraphicFormat().

bool vcl::GraphicFormatDetector::checkTGA ( )
bool vcl::GraphicFormatDetector::checkTIF ( )

Definition at line 469 of file GraphicFormatDetector.cxx.

References mnFirstLong, and msDetectedFormat.

Referenced by vcl::peekGraphicFormat().

bool vcl::GraphicFormatDetector::checkWMForEMF ( )

Definition at line 437 of file GraphicFormatDetector.cxx.

References maFirstBytes, mnFirstLong, and msDetectedFormat.

Referenced by vcl::peekGraphicFormat().

bool vcl::GraphicFormatDetector::checkXBM ( )
bool vcl::GraphicFormatDetector::checkXPM ( )
bool vcl::GraphicFormatDetector::detect ( )

Member Data Documentation

OUString vcl::GraphicFormatDetector::maExtension

Definition at line 43 of file GraphicFormatDetector.hxx.

Referenced by checkTGA().

std::vector<sal_uInt8> vcl::GraphicFormatDetector::maFirstBytes
sal_uInt32 vcl::GraphicFormatDetector::mnFirstLong
sal_uInt32 vcl::GraphicFormatDetector::mnSecondLong

Definition at line 47 of file GraphicFormatDetector.hxx.

Referenced by checkPNG(), checkPSD(), and detect().

sal_uInt64 vcl::GraphicFormatDetector::mnStreamLength
sal_uInt64 vcl::GraphicFormatDetector::mnStreamPosition

Definition at line 49 of file GraphicFormatDetector.hxx.

Referenced by checkMET(), checkPCD(), checkPCT(), checkSVG(), checkXBM(), and detect().

SvStream& vcl::GraphicFormatDetector::mrStream
OUString vcl::GraphicFormatDetector::msDetectedFormat

The documentation for this class was generated from the following files: