LibreOffice Module vcl (master) 1
Classes | Namespaces | Macros | Enumerations | Variables
graphicfilter.hxx File Reference
#include <tools/gen.hxx>
#include <vcl/dllapi.h>
#include <vcl/graph.hxx>
#include <comphelper/errcode.hxx>
#include <o3tl/typed_flags_set.hxx>
#include <vcl/BinaryDataContainer.hxx>
#include <vcl/graphic/GraphicMetadata.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

struct  o3tl::typed_flags< GraphicFilterImportFlags >
 
class  GraphicDescriptor
 
class  GraphicFilter
 Class to import and export graphic formats. More...
 

Namespaces

namespace  com
 
namespace  com::sun
 
namespace  com::sun::star
 
namespace  com::sun::star::beans
 
namespace  com::sun::star::uno
 
namespace  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_WMZ   "SVWMZ"
 
#define IMP_EMF   "SVEMF"
 
#define IMP_EMZ   "SVEMZ"
 
#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_SVGZ   "SVISVGZ"
 
#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 IMP_WEBP   "SVIWEBP"
 
#define EXP_BMP   "SVBMP"
 
#define EXP_SVMETAFILE   "SVMETAFILE"
 
#define EXP_WMF   "SVWMF"
 
#define EXP_WMZ   "SVWMZ"
 
#define EXP_EMF   "SVEMF"
 
#define EXP_EMZ   "SVEMZ"
 
#define EXP_JPEG   "SVEJPEG"
 
#define EXP_SVG   "SVESVG"
 
#define EXP_SVGZ   "SVESVGZ"
 
#define EXP_PDF   "SVEPDF"
 
#define EXP_PNG   "SVEPNG"
 
#define EXP_TIFF   "SVTIFF"
 
#define EXP_EPS   "SVEEPS"
 
#define EXP_GIF   "SVEGIF"
 
#define EXP_WEBP   "SVEWEBP"
 

Enumerations

enum class  GraphicFilterImportFlags {
  NONE = 0x000 ,
  SetLogsizeForJpeg = 0x001 ,
  DontSetLogsizeForJpeg = 0x002 ,
  OnlyCreateBitmap = 0x020 ,
  UseExistingBitmap = 0x040
}
 

Variables

constexpr OUStringLiteral BMP_SHORTNAME = u"BMP"
 
constexpr OUStringLiteral GIF_SHORTNAME = u"GIF"
 
constexpr OUStringLiteral JPG_SHORTNAME = u"JPG"
 
constexpr OUStringLiteral MET_SHORTNAME = u"MET"
 
constexpr OUStringLiteral PCT_SHORTNAME = u"PCT"
 
constexpr OUStringLiteral PNG_SHORTNAME = u"PNG"
 
constexpr OUStringLiteral SVM_SHORTNAME = u"SVM"
 
constexpr OUStringLiteral TIF_SHORTNAME = u"TIF"
 
constexpr OUStringLiteral WMF_SHORTNAME = u"WMF"
 
constexpr OUStringLiteral EMF_SHORTNAME = u"EMF"
 
constexpr OUStringLiteral SVG_SHORTNAME = u"SVG"
 
constexpr OUStringLiteral PDF_SHORTNAME = u"PDF"
 
constexpr OUStringLiteral WEBP_SHORTNAME = u"WEBP"
 

Macro Definition Documentation

◆ ERRCODE_GRFILTER_FILTERERROR

#define ERRCODE_GRFILTER_FILTERERROR   ErrCode(ErrCodeArea::Vcl, ErrCodeClass::General, 5)

Definition at line 47 of file graphicfilter.hxx.

◆ ERRCODE_GRFILTER_FORMATERROR

#define ERRCODE_GRFILTER_FORMATERROR   ErrCode(ErrCodeArea::Vcl, ErrCodeClass::General, 3)

Definition at line 45 of file graphicfilter.hxx.

◆ ERRCODE_GRFILTER_IOERROR

#define ERRCODE_GRFILTER_IOERROR   ErrCode(ErrCodeArea::Vcl, ErrCodeClass::General, 2)

Definition at line 44 of file graphicfilter.hxx.

◆ ERRCODE_GRFILTER_OPENERROR

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

Definition at line 43 of file graphicfilter.hxx.

◆ ERRCODE_GRFILTER_TOOBIG

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

Definition at line 48 of file graphicfilter.hxx.

◆ ERRCODE_GRFILTER_VERSIONERROR

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

Definition at line 46 of file graphicfilter.hxx.

◆ EXP_BMP

#define EXP_BMP   "SVBMP"

Definition at line 98 of file graphicfilter.hxx.

◆ EXP_EMF

#define EXP_EMF   "SVEMF"

Definition at line 102 of file graphicfilter.hxx.

◆ EXP_EMZ

#define EXP_EMZ   "SVEMZ"

Definition at line 103 of file graphicfilter.hxx.

◆ EXP_EPS

#define EXP_EPS   "SVEEPS"

Definition at line 110 of file graphicfilter.hxx.

◆ EXP_GIF

#define EXP_GIF   "SVEGIF"

Definition at line 111 of file graphicfilter.hxx.

◆ EXP_JPEG

#define EXP_JPEG   "SVEJPEG"

Definition at line 104 of file graphicfilter.hxx.

◆ EXP_PDF

#define EXP_PDF   "SVEPDF"

Definition at line 107 of file graphicfilter.hxx.

◆ EXP_PNG

#define EXP_PNG   "SVEPNG"

Definition at line 108 of file graphicfilter.hxx.

◆ EXP_SVG

#define EXP_SVG   "SVESVG"

Definition at line 105 of file graphicfilter.hxx.

◆ EXP_SVGZ

#define EXP_SVGZ   "SVESVGZ"

Definition at line 106 of file graphicfilter.hxx.

◆ EXP_SVMETAFILE

#define EXP_SVMETAFILE   "SVMETAFILE"

Definition at line 99 of file graphicfilter.hxx.

◆ EXP_TIFF

#define EXP_TIFF   "SVTIFF"

Definition at line 109 of file graphicfilter.hxx.

◆ EXP_WEBP

#define EXP_WEBP   "SVEWEBP"

Definition at line 112 of file graphicfilter.hxx.

◆ EXP_WMF

#define EXP_WMF   "SVWMF"

Definition at line 100 of file graphicfilter.hxx.

◆ EXP_WMZ

#define EXP_WMZ   "SVWMZ"

Definition at line 101 of file graphicfilter.hxx.

◆ GRFILTER_FORMAT_DONTKNOW

#define GRFILTER_FORMAT_DONTKNOW   (sal_uInt16(0xFFFF))

Definition at line 53 of file graphicfilter.hxx.

◆ GRFILTER_FORMAT_NOTFOUND

#define GRFILTER_FORMAT_NOTFOUND   (sal_uInt16(0xFFFF))

Definition at line 52 of file graphicfilter.hxx.

◆ GRFILTER_OUTHINT_GREY

#define GRFILTER_OUTHINT_GREY   1

Definition at line 50 of file graphicfilter.hxx.

◆ IMP_BMP

#define IMP_BMP   "SVBMP"

Definition at line 70 of file graphicfilter.hxx.

◆ IMP_DXF

#define IMP_DXF   "SVDXF"

Definition at line 95 of file graphicfilter.hxx.

◆ IMP_EMF

#define IMP_EMF   "SVEMF"

Definition at line 75 of file graphicfilter.hxx.

◆ IMP_EMZ

#define IMP_EMZ   "SVEMZ"

Definition at line 76 of file graphicfilter.hxx.

◆ IMP_EPS

#define IMP_EPS   "SVIEPS"

Definition at line 91 of file graphicfilter.hxx.

◆ IMP_GIF

#define IMP_GIF   "SVIGIF"

Definition at line 77 of file graphicfilter.hxx.

◆ IMP_JPEG

#define IMP_JPEG   "SVIJPEG"

Definition at line 79 of file graphicfilter.hxx.

◆ IMP_MET

#define IMP_MET   "SVMET"

Definition at line 88 of file graphicfilter.hxx.

◆ IMP_MOV

#define IMP_MOV   "SVMOV"

Definition at line 71 of file graphicfilter.hxx.

◆ IMP_PBM

#define IMP_PBM   "SVPBM"

Definition at line 94 of file graphicfilter.hxx.

◆ IMP_PCD

#define IMP_PCD   "SVPCD"

Definition at line 93 of file graphicfilter.hxx.

◆ IMP_PCX

#define IMP_PCX   "SVPCX"

Definition at line 90 of file graphicfilter.hxx.

◆ IMP_PDF

#define IMP_PDF   "SVIPDF"

Definition at line 84 of file graphicfilter.hxx.

◆ IMP_PICT

#define IMP_PICT   "SVPICT"

Definition at line 87 of file graphicfilter.hxx.

◆ IMP_PNG

#define IMP_PNG   "SVIPNG"

Definition at line 78 of file graphicfilter.hxx.

◆ IMP_PSD

#define IMP_PSD   "SVPSD"

Definition at line 92 of file graphicfilter.hxx.

◆ IMP_RAS

#define IMP_RAS   "SVRAS"

Definition at line 89 of file graphicfilter.hxx.

◆ IMP_SVG

#define IMP_SVG   "SVISVG"

Definition at line 82 of file graphicfilter.hxx.

◆ IMP_SVGZ

#define IMP_SVGZ   "SVISVGZ"

Definition at line 83 of file graphicfilter.hxx.

◆ IMP_SVMETAFILE

#define IMP_SVMETAFILE   "SVMETAFILE"

Definition at line 72 of file graphicfilter.hxx.

◆ IMP_TGA

#define IMP_TGA   "SVTGA"

Definition at line 86 of file graphicfilter.hxx.

◆ IMP_TIFF

#define IMP_TIFF   "SVTIFF"

Definition at line 85 of file graphicfilter.hxx.

◆ IMP_WEBP

#define IMP_WEBP   "SVIWEBP"

Definition at line 96 of file graphicfilter.hxx.

◆ IMP_WMF

#define IMP_WMF   "SVWMF"

Definition at line 73 of file graphicfilter.hxx.

◆ IMP_WMZ

#define IMP_WMZ   "SVWMZ"

Definition at line 74 of file graphicfilter.hxx.

◆ IMP_XBM

#define IMP_XBM   "SVIXBM"

Definition at line 80 of file graphicfilter.hxx.

◆ IMP_XPM

#define IMP_XPM   "SVIXPM"

Definition at line 81 of file graphicfilter.hxx.

Enumeration Type Documentation

◆ GraphicFilterImportFlags

enum class GraphicFilterImportFlags
strong
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 55 of file graphicfilter.hxx.

Variable Documentation

◆ BMP_SHORTNAME

constexpr OUStringLiteral BMP_SHORTNAME = u"BMP"
inlineconstexpr

Definition at line 115 of file graphicfilter.hxx.

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

◆ EMF_SHORTNAME

constexpr OUStringLiteral EMF_SHORTNAME = u"EMF"
inlineconstexpr

Definition at line 124 of file graphicfilter.hxx.

Referenced by IMPL_LINK().

◆ GIF_SHORTNAME

constexpr OUStringLiteral GIF_SHORTNAME = u"GIF"
inlineconstexpr

Definition at line 116 of file graphicfilter.hxx.

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

◆ JPG_SHORTNAME

constexpr OUStringLiteral JPG_SHORTNAME = u"JPG"
inlineconstexpr

Definition at line 117 of file graphicfilter.hxx.

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

◆ MET_SHORTNAME

constexpr OUStringLiteral MET_SHORTNAME = u"MET"
inlineconstexpr

Definition at line 118 of file graphicfilter.hxx.

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

◆ PCT_SHORTNAME

constexpr OUStringLiteral PCT_SHORTNAME = u"PCT"
inlineconstexpr

Definition at line 119 of file graphicfilter.hxx.

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

◆ PDF_SHORTNAME

constexpr OUStringLiteral PDF_SHORTNAME = u"PDF"
inlineconstexpr

Definition at line 126 of file graphicfilter.hxx.

Referenced by GfxLink::LoadNative().

◆ PNG_SHORTNAME

constexpr OUStringLiteral PNG_SHORTNAME = u"PNG"
inlineconstexpr

Definition at line 120 of file graphicfilter.hxx.

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

◆ SVG_SHORTNAME

constexpr OUStringLiteral SVG_SHORTNAME = u"SVG"
inlineconstexpr

Definition at line 125 of file graphicfilter.hxx.

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

◆ SVM_SHORTNAME

constexpr OUStringLiteral SVM_SHORTNAME = u"SVM"
inlineconstexpr

Definition at line 121 of file graphicfilter.hxx.

Referenced by IMPL_LINK().

◆ TIF_SHORTNAME

constexpr OUStringLiteral TIF_SHORTNAME = u"TIF"
inlineconstexpr

Definition at line 122 of file graphicfilter.hxx.

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

◆ WEBP_SHORTNAME

constexpr OUStringLiteral WEBP_SHORTNAME = u"WEBP"
inlineconstexpr

Definition at line 127 of file graphicfilter.hxx.

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

◆ WMF_SHORTNAME

constexpr OUStringLiteral WMF_SHORTNAME = u"WMF"
inlineconstexpr

Definition at line 123 of file graphicfilter.hxx.

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