LibreOffice Module vcl (master)  1
Classes | Macros | Enumerations | Functions
xpmread.cxx File Reference
#include <bitmapwriteaccess.hxx>
#include <vcl/graph.hxx>
#include <tools/stream.hxx>
#include "rgbtable.hxx"
#include "xpmread.hxx"
#include <cstring>
#include <array>
#include <map>
Include dependency graph for xpmread.cxx:

Go to the source code of this file.

Classes

class  XPMReader
 

Macros

#define XPMTEMPBUFSIZE   0x00008000
 
#define XPMSTRINGBUF   0x00008000
 
#define XPMIDENTIFIER   0x00000001
 
#define XPMDEFINITION   0x00000002
 
#define XPMVALUES   0x00000003
 
#define XPMCOLORS   0x00000004
 
#define XPMPIXELS   0x00000005
 
#define XPMEXTENSIONS   0x00000006
 
#define XPMENDEXT   0x00000007
 
#define XPMREMARK   0x00000001
 
#define XPMDOUBLE   0x00000002
 
#define XPMSTRING   0x00000004
 
#define XPMFINISHED   0x00000008
 

Enumerations

enum  ReadState {
  GIFREAD_OK,
  GIFREAD_ERROR,
  GIFREAD_NEED_MORE,
  XBMREAD_OK,
  XBMREAD_ERROR,
  XBMREAD_NEED_MORE,
  XPMREAD_OK,
  XPMREAD_ERROR,
  XPMREAD_NEED_MORE,
  JPEGREAD_OK,
  JPEGREAD_ERROR,
  JPEGREAD_NEED_MORE
}
 

Functions

VCL_DLLPUBLIC bool ImportXPM (SvStream &rStm, Graphic &rGraphic)
 

Macro Definition Documentation

#define XPMCOLORS   0x00000004

Definition at line 35 of file xpmread.cxx.

Referenced by XPMReader::ReadXPM().

#define XPMDEFINITION   0x00000002

Definition at line 33 of file xpmread.cxx.

Referenced by XPMReader::ImplGetString().

#define XPMDOUBLE   0x00000002

Definition at line 41 of file xpmread.cxx.

Referenced by XPMReader::ImplGetString().

#define XPMENDEXT   0x00000007

Definition at line 38 of file xpmread.cxx.

Referenced by XPMReader::ImplGetString().

#define XPMEXTENSIONS   0x00000006

Definition at line 37 of file xpmread.cxx.

Referenced by XPMReader::ReadXPM().

#define XPMFINISHED   0x00000008

Definition at line 43 of file xpmread.cxx.

Referenced by XPMReader::ImplGetString().

#define XPMIDENTIFIER   0x00000001

Definition at line 32 of file xpmread.cxx.

Referenced by XPMReader::ImplGetString().

#define XPMPIXELS   0x00000005

Definition at line 36 of file xpmread.cxx.

Referenced by XPMReader::ReadXPM().

#define XPMREMARK   0x00000001

Definition at line 40 of file xpmread.cxx.

Referenced by XPMReader::ImplGetString().

#define XPMSTRING   0x00000004

Definition at line 42 of file xpmread.cxx.

Referenced by XPMReader::ImplGetString().

#define XPMSTRINGBUF   0x00008000

Definition at line 30 of file xpmread.cxx.

Referenced by XPMReader::ImplGetString(), and XPMReader::ReadXPM().

#define XPMTEMPBUFSIZE   0x00008000

Definition at line 29 of file xpmread.cxx.

Referenced by XPMReader::ImplGetString(), and XPMReader::ReadXPM().

#define XPMVALUES   0x00000003

Definition at line 34 of file xpmread.cxx.

Referenced by XPMReader::ReadXPM().

Enumeration Type Documentation

enum ReadState
Enumerator
GIFREAD_OK 
GIFREAD_ERROR 
GIFREAD_NEED_MORE 
XBMREAD_OK 
XBMREAD_ERROR 
XBMREAD_NEED_MORE 
XPMREAD_OK 
XPMREAD_ERROR 
XPMREAD_NEED_MORE 
JPEGREAD_OK 
JPEGREAD_ERROR 
JPEGREAD_NEED_MORE 

Definition at line 45 of file xpmread.cxx.

Function Documentation

VCL_DLLPUBLIC bool ImportXPM ( SvStream rStm,
Graphic rGraphic 
)