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 <optional>
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
 
class  GraphicFilter
 Class to import and export graphic formats. More...
 

Namespaces

 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 IMP_TIFF   "SVTIFF"
 
#define IMP_TGA   "SVTGA"
 
#define IMP_PICT   "SVPICT"
 
#define IMP_MET   "SVMET"
 
#define IMP_RAS   "SVRAS"
 
#define IMP_PCX   "SVPCX"
 
#define IMP_EPS   "SVIEPS"
 
#define IMP_PSD   "SVPSD"
 
#define IMP_PCD   "SVPCD"
 
#define IMP_PBM   "SVPBM"
 
#define IMP_DXF   "SVDXF"
 
#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 EXP_TIFF   "SVTIFF"
 
#define EXP_EPS   "SVEEPS"
 
#define EXP_GIF   "SVEGIF"
 
#define BMP_SHORTNAME   u"BMP"
 
#define GIF_SHORTNAME   u"GIF"
 
#define JPG_SHORTNAME   u"JPG"
 
#define MET_SHORTNAME   u"MET"
 
#define PCT_SHORTNAME   u"PCT"
 
#define PNG_SHORTNAME   u"PNG"
 
#define SVM_SHORTNAME   u"SVM"
 
#define TIF_SHORTNAME   u"TIF"
 
#define WMF_SHORTNAME   u"WMF"
 
#define EMF_SHORTNAME   u"EMF"
 
#define SVG_SHORTNAME   u"SVG"
 
#define PDF_SHORTNAME   u"PDF"
 

Enumerations

enum  GraphicFilterImportFlags {
  GraphicFilterImportFlags::NONE = 0x000,
  GraphicFilterImportFlags::SetLogsizeForJpeg = 0x001,
  GraphicFilterImportFlags::DontSetLogsizeForJpeg = 0x002,
  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   u"BMP"

Definition at line 106 of file graphicfilter.hxx.

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

#define EMF_SHORTNAME   u"EMF"

Definition at line 115 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 43 of file graphicfilter.hxx.

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

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

Definition at line 42 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 45 of file graphicfilter.hxx.

Referenced by GraphicFilter::LoadGraphic().

#define EXP_BMP   "SVBMP"

Definition at line 93 of file graphicfilter.hxx.

Referenced by GraphicFilter::ExportGraphic().

#define EXP_EMF   "SVEMF"

Definition at line 96 of file graphicfilter.hxx.

Referenced by GraphicFilter::ExportGraphic().

#define EXP_EPS   "SVEEPS"

Definition at line 102 of file graphicfilter.hxx.

Referenced by GraphicFilter::ExportGraphic().

#define EXP_GIF   "SVEGIF"

Definition at line 103 of file graphicfilter.hxx.

Referenced by GraphicFilter::ExportGraphic().

#define EXP_JPEG   "SVEJPEG"

Definition at line 97 of file graphicfilter.hxx.

Referenced by GraphicFilter::ExportGraphic().

#define EXP_PDF   "SVEPDF"

Definition at line 99 of file graphicfilter.hxx.

#define EXP_PNG   "SVEPNG"

Definition at line 100 of file graphicfilter.hxx.

Referenced by GraphicFilter::ExportGraphic().

#define EXP_SVG   "SVESVG"

Definition at line 98 of file graphicfilter.hxx.

Referenced by GraphicFilter::ExportGraphic().

#define EXP_SVMETAFILE   "SVMETAFILE"

Definition at line 94 of file graphicfilter.hxx.

Referenced by GraphicFilter::ExportGraphic().

#define EXP_TIFF   "SVTIFF"

Definition at line 101 of file graphicfilter.hxx.

Referenced by GraphicFilter::ExportGraphic().

#define EXP_WMF   "SVWMF"

Definition at line 95 of file graphicfilter.hxx.

Referenced by GraphicFilter::ExportGraphic().

#define GIF_SHORTNAME   u"GIF"

Definition at line 107 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 49 of file graphicfilter.hxx.

#define IMP_BMP   "SVBMP"
#define IMP_DXF   "SVDXF"

Definition at line 91 of file graphicfilter.hxx.

Referenced by GraphicFilter::ImportGraphic().

#define IMP_EMF   "SVEMF"
#define IMP_EPS   "SVIEPS"

Definition at line 87 of file graphicfilter.hxx.

Referenced by GraphicFilter::ImportGraphic().

#define IMP_GIF   "SVIGIF"
#define IMP_JPEG   "SVIJPEG"
#define IMP_MET   "SVMET"
#define IMP_MOV   "SVMOV"
#define IMP_PBM   "SVPBM"

Definition at line 90 of file graphicfilter.hxx.

Referenced by GraphicFilter::ImportGraphic().

#define IMP_PCD   "SVPCD"

Definition at line 89 of file graphicfilter.hxx.

Referenced by GraphicFilter::ImportGraphic().

#define IMP_PCX   "SVPCX"

Definition at line 86 of file graphicfilter.hxx.

Referenced by GraphicFilter::ImportGraphic().

#define IMP_PDF   "SVIPDF"
#define IMP_PICT   "SVPICT"
#define IMP_PNG   "SVIPNG"
#define IMP_PSD   "SVPSD"

Definition at line 88 of file graphicfilter.hxx.

Referenced by GraphicFilter::ImportGraphic().

#define IMP_RAS   "SVRAS"

Definition at line 85 of file graphicfilter.hxx.

Referenced by GraphicFilter::ImportGraphic().

#define IMP_SVG   "SVISVG"
#define IMP_SVMETAFILE   "SVMETAFILE"

Definition at line 71 of file graphicfilter.hxx.

Referenced by GraphicFilter::ImportGraphic().

#define IMP_TGA   "SVTGA"

Definition at line 82 of file graphicfilter.hxx.

Referenced by GraphicFilter::ImportGraphic().

#define IMP_TIFF   "SVTIFF"
#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   u"JPG"

Definition at line 108 of file graphicfilter.hxx.

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

#define MET_SHORTNAME   u"MET"

Definition at line 109 of file graphicfilter.hxx.

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

#define PCT_SHORTNAME   u"PCT"

Definition at line 110 of file graphicfilter.hxx.

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

#define PDF_SHORTNAME   u"PDF"

Definition at line 117 of file graphicfilter.hxx.

Referenced by GfxLink::LoadNative().

#define PNG_SHORTNAME   u"PNG"

Definition at line 111 of file graphicfilter.hxx.

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

#define SVG_SHORTNAME   u"SVG"

Definition at line 116 of file graphicfilter.hxx.

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

#define SVM_SHORTNAME   u"SVM"

Definition at line 112 of file graphicfilter.hxx.

Referenced by IMPL_LINK().

#define TIF_SHORTNAME   u"TIF"

Definition at line 113 of file graphicfilter.hxx.

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

#define WMF_SHORTNAME   u"WMF"

Definition at line 114 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 121 of file graphicfilter.hxx.

Enumerator
NONE 
SetLogsizeForJpeg 
DontSetLogsizeForJpeg 
OnlyCreateBitmap 

Only create a bitmap, do not read pixel data.

UseExistingBitmap 

Read pixel data into an existing bitmap.

Definition at line 54 of file graphicfilter.hxx.