LibreOffice Module vcl (master)  1
Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
XPMReader Class Reference
Inheritance diagram for XPMReader:
[legend]
Collaboration diagram for XPMReader:
[legend]

Public Member Functions

 XPMReader (SvStream &rStm)
 
ReadState ReadXPM (Graphic &rGraphic)
 
- Public Member Functions inherited from GraphicReader
virtual ~GraphicReader ()
 
const OUString & GetUpperFilterName () const
 
void DisablePreviewMode ()
 
void SetPreviewSize (const Size &)
 
Size GetPreviewSize () const
 

Private Types

typedef std::array< sal_uInt8, 4 > colordata
 
typedef std::map< OString, colordatacolormap
 

Private Member Functions

bool ImplGetString ()
 
bool ImplGetColor ()
 
bool ImplGetScanLine (sal_uLong)
 
bool ImplGetColSub (colordata &rDest)
 
bool ImplGetColKey (sal_uInt8)
 
void ImplGetRGBHex (colordata &rDest, sal_uLong)
 
bool ImplGetPara (sal_uLong numb)
 
sal_uLong ImplGetULONG (sal_uLong nPara)
 

Static Private Member Functions

static bool ImplCompare (sal_uInt8 const *, sal_uInt8 const *, sal_uLong)
 

Private Attributes

SvStreammrIStm
 
Bitmap maBmp
 
BitmapScopedWriteAccess mpAcc
 
Bitmap maMaskBmp
 
BitmapScopedWriteAccess mpMaskAcc
 
long const mnLastPos
 
sal_uLong mnWidth
 
sal_uLong mnHeight
 
sal_uLong mnColors
 
sal_uInt32 mnCpp
 
bool mbTransparent
 
bool mbStatus
 
sal_uLong mnStatus
 
sal_uLong mnIdentifier
 
sal_uInt8 mcThisByte
 
sal_uInt8 mcLastByte
 
sal_uLong mnTempAvail
 
sal_uInt8mpTempBuf
 
sal_uInt8mpTempPtr
 
colormap maColMap
 
sal_uLong mnStringSize
 
sal_uInt8mpStringBuf
 
sal_uLong mnParaSize
 
sal_uInt8mpPara
 

Additional Inherited Members

- Protected Member Functions inherited from GraphicReader
 GraphicReader ()
 
- Protected Attributes inherited from GraphicReader
OUString maUpperName
 

Detailed Description

Definition at line 59 of file xpmread.cxx.

Member Typedef Documentation

typedef std::array<sal_uInt8,4> XPMReader::colordata
private

Definition at line 87 of file xpmread.cxx.

typedef std::map<OString, colordata> XPMReader::colormap
private

Definition at line 88 of file xpmread.cxx.

Constructor & Destructor Documentation

XPMReader::XPMReader ( SvStream rStm)
explicit

Definition at line 111 of file xpmread.cxx.

References mnHeight, and mnWidth.

Member Function Documentation

bool XPMReader::ImplCompare ( sal_uInt8 const *  pSource,
sal_uInt8 const *  pDest,
sal_uLong  nSize 
)
staticprivate

Definition at line 499 of file xpmread.cxx.

References i.

Referenced by ImplGetColSub().

bool XPMReader::ImplGetColKey ( sal_uInt8  nKey)
private

Definition at line 407 of file xpmread.cxx.

References mnCpp, mnParaSize, mnStringSize, mpPara, and mpStringBuf.

Referenced by ImplGetColSub().

bool XPMReader::ImplGetColor ( )
private

Definition at line 274 of file xpmread.cxx.

References ImplGetColSub(), ImplGetString(), maColMap, mnCpp, mnStringSize, and mpStringBuf.

Referenced by ReadXPM().

bool XPMReader::ImplGetColSub ( colordata rDest)
private
bool XPMReader::ImplGetPara ( sal_uLong  numb)
private

Definition at line 516 of file xpmread.cxx.

References mnParaSize, mnStringSize, mpPara, and mpStringBuf.

Referenced by ImplGetULONG().

void XPMReader::ImplGetRGBHex ( colordata rDest,
sal_uLong  nAdd 
)
private

Definition at line 457 of file xpmread.cxx.

References i, and mpPara.

Referenced by ImplGetColSub().

bool XPMReader::ImplGetScanLine ( sal_uLong  nY)
private
bool XPMReader::ImplGetString ( )
private
sal_uLong XPMReader::ImplGetULONG ( sal_uLong  nPara)
private

Definition at line 479 of file xpmread.cxx.

References i, ImplGetPara(), mnParaSize, and mpPara.

Referenced by ReadXPM().

ReadState XPMReader::ReadXPM ( Graphic rGraphic)

Member Data Documentation

Bitmap XPMReader::maBmp
private

Definition at line 64 of file xpmread.cxx.

Referenced by ReadXPM().

colormap XPMReader::maColMap
private

Definition at line 89 of file xpmread.cxx.

Referenced by ImplGetColor(), ImplGetScanLine(), and ReadXPM().

Bitmap XPMReader::maMaskBmp
private

Definition at line 66 of file xpmread.cxx.

Referenced by ReadXPM().

bool XPMReader::mbStatus
private

Definition at line 75 of file xpmread.cxx.

Referenced by ImplGetString(), and ReadXPM().

bool XPMReader::mbTransparent
private

Definition at line 74 of file xpmread.cxx.

Referenced by ImplGetColSub(), and ReadXPM().

sal_uInt8 XPMReader::mcLastByte
private

Definition at line 79 of file xpmread.cxx.

Referenced by ImplGetString().

sal_uInt8 XPMReader::mcThisByte
private

Definition at line 78 of file xpmread.cxx.

Referenced by ImplGetString().

sal_uLong XPMReader::mnColors
private

Definition at line 72 of file xpmread.cxx.

Referenced by ImplGetScanLine(), and ReadXPM().

sal_uInt32 XPMReader::mnCpp
private

Definition at line 73 of file xpmread.cxx.

Referenced by ImplGetColKey(), ImplGetColor(), ImplGetScanLine(), and ReadXPM().

sal_uLong XPMReader::mnHeight
private

Definition at line 71 of file xpmread.cxx.

Referenced by ReadXPM().

sal_uLong XPMReader::mnIdentifier
private

Definition at line 77 of file xpmread.cxx.

Referenced by ImplGetString(), and ReadXPM().

long const XPMReader::mnLastPos
private

Definition at line 68 of file xpmread.cxx.

Referenced by ReadXPM().

sal_uLong XPMReader::mnParaSize
private

Definition at line 92 of file xpmread.cxx.

Referenced by ImplGetColKey(), ImplGetColSub(), ImplGetPara(), and ImplGetULONG().

sal_uLong XPMReader::mnStatus
private

Definition at line 76 of file xpmread.cxx.

Referenced by ImplGetString().

sal_uLong XPMReader::mnStringSize
private

Definition at line 90 of file xpmread.cxx.

Referenced by ImplGetColKey(), ImplGetColor(), ImplGetPara(), ImplGetScanLine(), and ImplGetString().

sal_uLong XPMReader::mnTempAvail
private

Definition at line 80 of file xpmread.cxx.

Referenced by ImplGetString().

sal_uLong XPMReader::mnWidth
private

Definition at line 70 of file xpmread.cxx.

Referenced by ImplGetScanLine(), and ReadXPM().

BitmapScopedWriteAccess XPMReader::mpAcc
private

Definition at line 65 of file xpmread.cxx.

Referenced by ImplGetScanLine(), and ReadXPM().

BitmapScopedWriteAccess XPMReader::mpMaskAcc
private

Definition at line 67 of file xpmread.cxx.

Referenced by ImplGetScanLine(), and ReadXPM().

sal_uInt8* XPMReader::mpPara
private

Definition at line 93 of file xpmread.cxx.

Referenced by ImplGetColKey(), ImplGetColSub(), ImplGetPara(), ImplGetRGBHex(), and ImplGetULONG().

sal_uInt8* XPMReader::mpStringBuf
private
sal_uInt8* XPMReader::mpTempBuf
private

Definition at line 81 of file xpmread.cxx.

Referenced by ImplGetString(), and ReadXPM().

sal_uInt8* XPMReader::mpTempPtr
private

Definition at line 82 of file xpmread.cxx.

Referenced by ImplGetString().

SvStream& XPMReader::mrIStm
private

Definition at line 63 of file xpmread.cxx.

Referenced by ImplGetString(), and ReadXPM().


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