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 90 of file GraphicFormatDetector.cxx.

Member Function Documentation

bool vcl::GraphicFormatDetector::checkBMP ( )

Definition at line 176 of file GraphicFormatDetector.cxx.

References maFirstBytes, and msDetectedFormat.

Referenced by ImpPeekGraphicFormat().

bool vcl::GraphicFormatDetector::checkDXF ( )

Definition at line 335 of file GraphicFormatDetector.cxx.

References maFirstBytes, and msDetectedFormat.

Referenced by ImpPeekGraphicFormat().

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

Definition at line 247 of file GraphicFormatDetector.cxx.

References maFirstBytes, mnFirstLong, and msDetectedFormat.

Referenced by ImpPeekGraphicFormat().

bool vcl::GraphicFormatDetector::checkJPG ( )

Definition at line 268 of file GraphicFormatDetector.cxx.

References maFirstBytes, mnFirstLong, and msDetectedFormat.

Referenced by ImpPeekGraphicFormat().

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

Definition at line 547 of file GraphicFormatDetector.cxx.

References maFirstBytes, and msDetectedFormat.

Referenced by ImpPeekGraphicFormat().

bool vcl::GraphicFormatDetector::checkPBMorPGMorPPM ( )

Definition at line 382 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 221 of file GraphicFormatDetector.cxx.

References maFirstBytes, and msDetectedFormat.

Referenced by ImpPeekGraphicFormat().

bool vcl::GraphicFormatDetector::checkPDF ( )

Definition at line 560 of file GraphicFormatDetector.cxx.

References maFirstBytes, and msDetectedFormat.

Referenced by ImpPeekGraphicFormat().

bool vcl::GraphicFormatDetector::checkPNG ( )

Definition at line 258 of file GraphicFormatDetector.cxx.

References mnFirstLong, mnSecondLong, and msDetectedFormat.

Referenced by ImpPeekGraphicFormat().

bool vcl::GraphicFormatDetector::checkPSD ( )

Definition at line 312 of file GraphicFormatDetector.cxx.

References mnFirstLong, mnSecondLong, and msDetectedFormat.

Referenced by ImpPeekGraphicFormat().

bool vcl::GraphicFormatDetector::checkRAS ( )

Definition at line 407 of file GraphicFormatDetector.cxx.

References mnFirstLong, and msDetectedFormat.

Referenced by ImpPeekGraphicFormat().

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

Definition at line 280 of file GraphicFormatDetector.cxx.

References maFirstBytes, mnFirstLong, and msDetectedFormat.

Referenced by ImpPeekGraphicFormat().

bool vcl::GraphicFormatDetector::checkTGA ( )

Definition at line 537 of file GraphicFormatDetector.cxx.

References maExtension, and msDetectedFormat.

Referenced by ImpPeekGraphicFormat().

bool vcl::GraphicFormatDetector::checkTIF ( )

Definition at line 237 of file GraphicFormatDetector.cxx.

References mnFirstLong, and msDetectedFormat.

Referenced by ImpPeekGraphicFormat().

bool vcl::GraphicFormatDetector::checkWMForEMF ( )

Definition at line 205 of file GraphicFormatDetector.cxx.

References maFirstBytes, mnFirstLong, and msDetectedFormat.

Referenced by ImpPeekGraphicFormat().

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

Definition at line 417 of file GraphicFormatDetector.cxx.

References ImplSearchEntry(), maFirstBytes, and msDetectedFormat.

Referenced by ImpPeekGraphicFormat().

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: