LibreOffice Module vcl (master)  1
Classes | Namespaces | Macros | Enumerations
graphicfilter.hxx File Reference
#include <tools/gen.hxx>
#include <vcl/dllapi.h>
#include <vcl/graph.hxx>
#include <vcl/errcode.hxx>
#include <o3tl/typed_flags_set.hxx>
#include <memory>
Include dependency graph for graphicfilter.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  com::sun::star::uno::Sequence< class >
 
struct  o3tl::typed_flags< GraphicFilterImportFlags >
 
class  GraphicDescriptor
 
struct  FilterErrorEx
 Information about errors during the GraphicFilter operation. More...
 
class  GraphicFilter
 Class to import and export graphic formats. More...
 

Namespaces

 com
 
 com::sun
 
 com::sun::star
 
 com::sun::star::beans
 
 com::sun::star::uno
 
 o3tl
 

Macros

#define ERRCODE_GRFILTER_OPENERROR   ErrCode(ErrCodeArea::Vcl, ErrCodeClass::General, 1)
 
#define ERRCODE_GRFILTER_IOERROR   ErrCode(ErrCodeArea::Vcl, ErrCodeClass::General, 2)
 
#define ERRCODE_GRFILTER_FORMATERROR   ErrCode(ErrCodeArea::Vcl, ErrCodeClass::General, 3)
 
#define ERRCODE_GRFILTER_VERSIONERROR   ErrCode(ErrCodeArea::Vcl, ErrCodeClass::General, 4)
 
#define ERRCODE_GRFILTER_FILTERERROR   ErrCode(ErrCodeArea::Vcl, ErrCodeClass::General, 5)
 
#define ERRCODE_GRFILTER_TOOBIG   ErrCode(ErrCodeArea::Vcl, ErrCodeClass::General, 7)
 
#define GRFILTER_OUTHINT_GREY   1
 
#define GRFILTER_FORMAT_NOTFOUND   (sal_uInt16(0xFFFF))
 
#define GRFILTER_FORMAT_DONTKNOW   (sal_uInt16(0xFFFF))
 
#define IMP_BMP   "SVBMP"
 
#define IMP_MOV   "SVMOV"
 
#define IMP_SVMETAFILE   "SVMETAFILE"
 
#define IMP_WMF   "SVWMF"
 
#define IMP_EMF   "SVEMF"
 
#define IMP_GIF   "SVIGIF"
 
#define IMP_PNG   "SVIPNG"
 
#define IMP_JPEG   "SVIJPEG"
 
#define IMP_XBM   "SVIXBM"
 
#define IMP_XPM   "SVIXPM"
 
#define IMP_SVG   "SVISVG"
 
#define IMP_PDF   "SVIPDF"
 
#define EXP_BMP   "SVBMP"
 
#define EXP_SVMETAFILE   "SVMETAFILE"
 
#define EXP_WMF   "SVWMF"
 
#define EXP_EMF   "SVEMF"
 
#define EXP_JPEG   "SVEJPEG"
 
#define EXP_SVG   "SVESVG"
 
#define EXP_PDF   "SVEPDF"
 
#define EXP_PNG   "SVEPNG"
 
#define BMP_SHORTNAME   "BMP"
 
#define GIF_SHORTNAME   "GIF"
 
#define JPG_SHORTNAME   "JPG"
 
#define MET_SHORTNAME   "MET"
 
#define PCT_SHORTNAME   "PCT"
 
#define PNG_SHORTNAME   "PNG"
 
#define SVM_SHORTNAME   "SVM"
 
#define TIF_SHORTNAME   "TIF"
 
#define WMF_SHORTNAME   "WMF"
 
#define EMF_SHORTNAME   "EMF"
 
#define SVG_SHORTNAME   "SVG"
 
#define PDF_SHORTNAME   "PDF"
 

Enumerations

enum  GraphicFilterImportFlags {
  GraphicFilterImportFlags::NONE = 0x000,
  GraphicFilterImportFlags::SetLogsizeForJpeg = 0x001,
  GraphicFilterImportFlags::DontSetLogsizeForJpeg = 0x002,
  GraphicFilterImportFlags::ForPreview = 0x004,
  GraphicFilterImportFlags::OnlyCreateBitmap = 0x020,
  GraphicFilterImportFlags::UseExistingBitmap = 0x040
}
 
enum  GraphicFileFormat {
  GraphicFileFormat::NOT = 0x0000,
  GraphicFileFormat::BMP = 0x0001,
  GraphicFileFormat::GIF = 0x0002,
  GraphicFileFormat::JPG = 0x0003,
  GraphicFileFormat::PCD = 0x0004,
  GraphicFileFormat::PCX = 0x0005,
  GraphicFileFormat::PNG = 0x0006,
  GraphicFileFormat::TIF = 0x0007,
  GraphicFileFormat::XBM = 0x0008,
  GraphicFileFormat::XPM = 0x0009,
  GraphicFileFormat::PBM = 0x000a,
  GraphicFileFormat::PGM = 0x000b,
  GraphicFileFormat::PPM = 0x000c,
  GraphicFileFormat::RAS = 0x000d,
  GraphicFileFormat::TGA = 0x000e,
  GraphicFileFormat::PSD = 0x000f,
  GraphicFileFormat::EPS = 0x0010,
  GraphicFileFormat::DXF = 0x00f1,
  GraphicFileFormat::MET = 0x00f2,
  GraphicFileFormat::PCT = 0x00f3,
  GraphicFileFormat::SVM = 0x00f5,
  GraphicFileFormat::WMF = 0x00f6,
  GraphicFileFormat::EMF = 0x00f8,
  GraphicFileFormat::SVG = 0x00f9
}
 

Macro Definition Documentation

#define BMP_SHORTNAME   "BMP"

Definition at line 90 of file graphicfilter.hxx.

Referenced by IMPL_LINK(), and GfxLink::LoadNative().

#define EMF_SHORTNAME   "EMF"

Definition at line 99 of file graphicfilter.hxx.

Referenced by IMPL_LINK().

#define ERRCODE_GRFILTER_FILTERERROR   ErrCode(ErrCodeArea::Vcl, ErrCodeClass::General, 5)
#define ERRCODE_GRFILTER_FORMATERROR   ErrCode(ErrCodeArea::Vcl, ErrCodeClass::General, 3)
#define ERRCODE_GRFILTER_IOERROR   ErrCode(ErrCodeArea::Vcl, ErrCodeClass::General, 2)

Definition at line 42 of file graphicfilter.hxx.

Referenced by GraphicFilter::ExportGraphic(), and GraphicFilter::LoadGraphic().

#define ERRCODE_GRFILTER_OPENERROR   ErrCode(ErrCodeArea::Vcl, ErrCodeClass::General, 1)

Definition at line 41 of file graphicfilter.hxx.

Referenced by GraphicFilter::ImportGraphic(), and GraphicFilter::LoadGraphic().

#define ERRCODE_GRFILTER_TOOBIG   ErrCode(ErrCodeArea::Vcl, ErrCodeClass::General, 7)
#define ERRCODE_GRFILTER_VERSIONERROR   ErrCode(ErrCodeArea::Vcl, ErrCodeClass::General, 4)

Definition at line 44 of file graphicfilter.hxx.

Referenced by GraphicFilter::LoadGraphic().

#define EXP_BMP   "SVBMP"

Definition at line 81 of file graphicfilter.hxx.

Referenced by GraphicFilter::ExportGraphic().

#define EXP_EMF   "SVEMF"

Definition at line 84 of file graphicfilter.hxx.

Referenced by GraphicFilter::ExportGraphic().

#define EXP_JPEG   "SVEJPEG"

Definition at line 85 of file graphicfilter.hxx.

Referenced by GraphicFilter::ExportGraphic().

#define EXP_PDF   "SVEPDF"

Definition at line 87 of file graphicfilter.hxx.

#define EXP_PNG   "SVEPNG"

Definition at line 88 of file graphicfilter.hxx.

Referenced by GraphicFilter::ExportGraphic().

#define EXP_SVG   "SVESVG"

Definition at line 86 of file graphicfilter.hxx.

Referenced by GraphicFilter::ExportGraphic().

#define EXP_SVMETAFILE   "SVMETAFILE"

Definition at line 82 of file graphicfilter.hxx.

Referenced by GraphicFilter::ExportGraphic().

#define EXP_WMF   "SVWMF"

Definition at line 83 of file graphicfilter.hxx.

Referenced by GraphicFilter::ExportGraphic().

#define GIF_SHORTNAME   "GIF"

Definition at line 91 of file graphicfilter.hxx.

Referenced by IMPL_LINK(), and GfxLink::LoadNative().

#define GRFILTER_FORMAT_DONTKNOW   (sal_uInt16(0xFFFF))
#define GRFILTER_FORMAT_NOTFOUND   (sal_uInt16(0xFFFF))
#define GRFILTER_OUTHINT_GREY   1

Definition at line 48 of file graphicfilter.hxx.

#define IMP_BMP   "SVBMP"
#define IMP_EMF   "SVEMF"
#define IMP_GIF   "SVIGIF"
#define IMP_JPEG   "SVIJPEG"
#define IMP_MOV   "SVMOV"
#define IMP_PDF   "SVIPDF"
#define IMP_PNG   "SVIPNG"
#define IMP_SVG   "SVISVG"
#define IMP_SVMETAFILE   "SVMETAFILE"

Definition at line 71 of file graphicfilter.hxx.

Referenced by GraphicFilter::ImportGraphic().

#define IMP_WMF   "SVWMF"
#define IMP_XBM   "SVIXBM"

Definition at line 77 of file graphicfilter.hxx.

Referenced by GraphicFilter::ImportGraphic().

#define IMP_XPM   "SVIXPM"

Definition at line 78 of file graphicfilter.hxx.

Referenced by GraphicFilter::ImportGraphic().

#define JPG_SHORTNAME   "JPG"

Definition at line 92 of file graphicfilter.hxx.

Referenced by IMPL_LINK(), and GfxLink::LoadNative().

#define MET_SHORTNAME   "MET"
#define PCT_SHORTNAME   "PCT"
#define PDF_SHORTNAME   "PDF"

Definition at line 101 of file graphicfilter.hxx.

Referenced by GfxLink::LoadNative().

#define PNG_SHORTNAME   "PNG"

Definition at line 95 of file graphicfilter.hxx.

Referenced by IMPL_LINK(), and GfxLink::LoadNative().

#define SVG_SHORTNAME   "SVG"

Definition at line 100 of file graphicfilter.hxx.

Referenced by IMPL_LINK(), and GfxLink::LoadNative().

#define SVM_SHORTNAME   "SVM"

Definition at line 96 of file graphicfilter.hxx.

Referenced by IMPL_LINK().

#define TIF_SHORTNAME   "TIF"
#define WMF_SHORTNAME   "WMF"

Definition at line 98 of file graphicfilter.hxx.

Referenced by IMPL_LINK(), and GfxLink::LoadNative().

Enumeration Type Documentation

enum GraphicFileFormat
strong
Enumerator
NOT 
BMP 
GIF 
JPG 
PCD 
PCX 
PNG 
TIF 
XBM 
XPM 
PBM 
PGM 
PPM 
RAS 
TGA 
PSD 
EPS 
DXF 
MET 
PCT 
SVM 
WMF 
EMF 
SVG 

Definition at line 105 of file graphicfilter.hxx.

Enumerator
NONE 
SetLogsizeForJpeg 
DontSetLogsizeForJpeg 
ForPreview 
OnlyCreateBitmap 

Only create a bitmap, do not read pixel data.

UseExistingBitmap 

Read pixel data into an existing bitmap.

Definition at line 53 of file graphicfilter.hxx.