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 30 of file GraphicFormatDetector.hxx.

Constructor & Destructor Documentation

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

Definition at line 73 of file GraphicFormatDetector.cxx.

Member Function Documentation

bool vcl::GraphicFormatDetector::checkBMP ( )

Definition at line 159 of file GraphicFormatDetector.cxx.

References maFirstBytes, and msDetectedFormat.

Referenced by ImpPeekGraphicFormat().

bool vcl::GraphicFormatDetector::checkDXF ( )

Definition at line 323 of file GraphicFormatDetector.cxx.

References i, maFirstBytes, and msDetectedFormat.

Referenced by ImpPeekGraphicFormat().

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

Definition at line 230 of file GraphicFormatDetector.cxx.

References maFirstBytes, mnFirstLong, and msDetectedFormat.

Referenced by ImpPeekGraphicFormat().

bool vcl::GraphicFormatDetector::checkJPG ( )

Definition at line 251 of file GraphicFormatDetector.cxx.

References maFirstBytes, mnFirstLong, and msDetectedFormat.

Referenced by ImpPeekGraphicFormat().

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

Definition at line 524 of file GraphicFormatDetector.cxx.

References maFirstBytes, and msDetectedFormat.

Referenced by ImpPeekGraphicFormat().

bool vcl::GraphicFormatDetector::checkPBMorPGMorPPM ( )

Definition at line 370 of file GraphicFormatDetector.cxx.

References maFirstBytes, and msDetectedFormat.

Referenced by ImpPeekGraphicFormat().

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

Definition at line 204 of file GraphicFormatDetector.cxx.

References maFirstBytes, msDetectedFormat, and nVersion.

Referenced by ImpPeekGraphicFormat().

bool vcl::GraphicFormatDetector::checkPDF ( )

Definition at line 537 of file GraphicFormatDetector.cxx.

References maFirstBytes, and msDetectedFormat.

Referenced by ImpPeekGraphicFormat().

bool vcl::GraphicFormatDetector::checkPNG ( )

Definition at line 241 of file GraphicFormatDetector.cxx.

References mnFirstLong, mnSecondLong, and msDetectedFormat.

Referenced by ImpPeekGraphicFormat().

bool vcl::GraphicFormatDetector::checkPSD ( )

Definition at line 295 of file GraphicFormatDetector.cxx.

References mnFirstLong, mnSecondLong, and msDetectedFormat.

Referenced by ImpPeekGraphicFormat().

bool vcl::GraphicFormatDetector::checkRAS ( )

Definition at line 395 of file GraphicFormatDetector.cxx.

References mnFirstLong, and msDetectedFormat.

Referenced by ImpPeekGraphicFormat().

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

Definition at line 263 of file GraphicFormatDetector.cxx.

References maFirstBytes, mnFirstLong, and msDetectedFormat.

Referenced by ImpPeekGraphicFormat().

bool vcl::GraphicFormatDetector::checkTGA ( )

Definition at line 514 of file GraphicFormatDetector.cxx.

References maExtension, and msDetectedFormat.

Referenced by ImpPeekGraphicFormat().

bool vcl::GraphicFormatDetector::checkTIF ( )

Definition at line 220 of file GraphicFormatDetector.cxx.

References mnFirstLong, and msDetectedFormat.

Referenced by ImpPeekGraphicFormat().

bool vcl::GraphicFormatDetector::checkWMForEMF ( )

Definition at line 188 of file GraphicFormatDetector.cxx.

References maFirstBytes, mnFirstLong, and msDetectedFormat.

Referenced by ImpPeekGraphicFormat().

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

Member Data Documentation

OUString vcl::GraphicFormatDetector::maExtension

Definition at line 34 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 38 of file GraphicFormatDetector.hxx.

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

sal_uInt64 vcl::GraphicFormatDetector::mnStreamLength

Definition at line 41 of file GraphicFormatDetector.hxx.

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

sal_uInt64 vcl::GraphicFormatDetector::mnStreamPosition

Definition at line 40 of file GraphicFormatDetector.hxx.

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

SvStream& vcl::GraphicFormatDetector::mrStream

Definition at line 33 of file GraphicFormatDetector.hxx.

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

OUString vcl::GraphicFormatDetector::msDetectedFormat

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