LibreOffice Module vcl (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
GraphicFilter Class Reference

Class to import and export graphic formats. More...

#include <graphicfilter.hxx>

Collaboration diagram for GraphicFilter:
[legend]

Public Member Functions

 GraphicFilter (bool bUseConfig=true)
 
 ~GraphicFilter ()
 
sal_uInt16 GetImportFormatCount () const
 
sal_uInt16 GetImportFormatNumber (std::u16string_view rFormatName)
 
sal_uInt16 GetImportFormatNumberForShortName (std::u16string_view rShortName)
 
sal_uInt16 GetImportFormatNumberForTypeName (std::u16string_view rType)
 
OUString GetImportFormatName (sal_uInt16 nFormat)
 
OUString GetImportFormatTypeName (sal_uInt16 nFormat)
 
OUString GetImportFormatShortName (sal_uInt16 nFormat)
 
OUString GetImportWildcard (sal_uInt16 nFormat, sal_Int32 nEntry)
 
sal_uInt16 GetExportFormatCount () const
 
sal_uInt16 GetExportFormatNumber (std::u16string_view rFormatName)
 
sal_uInt16 GetExportFormatNumberForMediaType (std::u16string_view rShortName)
 
sal_uInt16 GetExportFormatNumberForShortName (std::u16string_view rShortName)
 
OUString GetExportInternalFilterName (sal_uInt16 nFormat)
 
sal_uInt16 GetExportFormatNumberForTypeName (std::u16string_view rType)
 
OUString GetExportFormatName (sal_uInt16 nFormat)
 
OUString GetExportFormatMediaType (sal_uInt16 nFormat)
 
OUString GetExportFormatShortName (sal_uInt16 nFormat)
 
OUString GetExportWildcard (sal_uInt16 nFormat)
 
bool IsExportPixelFormat (sal_uInt16 nFormat)
 
ErrCode ExportGraphic (const Graphic &rGraphic, const INetURLObject &rPath, sal_uInt16 nFormat, const css::uno::Sequence< css::beans::PropertyValue > *pFilterData=nullptr)
 
ErrCode ExportGraphic (const Graphic &rGraphic, std::u16string_view rPath, SvStream &rOStm, sal_uInt16 nFormat, const css::uno::Sequence< css::beans::PropertyValue > *pFilterData=nullptr)
 
ErrCode CanImportGraphic (const INetURLObject &rPath, sal_uInt16 nFormat, sal_uInt16 *pDeterminedFormat)
 
ErrCode ImportGraphic (Graphic &rGraphic, const INetURLObject &rPath, sal_uInt16 nFormat=GRFILTER_FORMAT_DONTKNOW, sal_uInt16 *pDeterminedFormat=nullptr, GraphicFilterImportFlags nImportFlags=GraphicFilterImportFlags::NONE)
 
ErrCode CanImportGraphic (std::u16string_view rPath, SvStream &rStream, sal_uInt16 nFormat, sal_uInt16 *pDeterminedFormat)
 
ErrCode ImportGraphic (Graphic &rGraphic, std::u16string_view rPath, SvStream &rStream, sal_uInt16 nFormat=GRFILTER_FORMAT_DONTKNOW, sal_uInt16 *pDeterminedFormat=nullptr, GraphicFilterImportFlags nImportFlags=GraphicFilterImportFlags::NONE)
 
void ImportGraphics (std::vector< std::shared_ptr< Graphic > > &rGraphics, std::vector< std::unique_ptr< SvStream > > vStreams)
 Imports multiple graphics. More...
 
void MakeGraphicsAvailableThreaded (std::vector< Graphic * > &rGraphics)
 Tries to ensure all Graphic objects are available (Graphic::isAvailable()). More...
 
Graphic ImportUnloadedGraphic (SvStream &rIStream, sal_uInt64 sizeLimit=0, const Size *pSizeHint=nullptr)
 
const ErrCodeGetLastError () const
 
void ResetLastError ()
 
Link< ConvertData &, bool > GetFilterCallback () const
 
ErrCode compressAsPNG (const Graphic &rGraphic, SvStream &rOutputStream)
 

Static Public Member Functions

static GraphicFilterGetGraphicFilter ()
 
static ErrCode LoadGraphic (const OUString &rPath, const OUString &rFilter, Graphic &rGraphic, GraphicFilter *pFilter=nullptr, sal_uInt16 *pDeterminedFormat=nullptr)
 
static ErrCode readGIF (SvStream &rStream, Graphic &rGraphic, GfxLinkType &rLinkType)
 
static ErrCode readPNG (SvStream &rStream, Graphic &rGraphic, GfxLinkType &rLinkType, std::unique_ptr< sal_uInt8[]> &rpGraphicContent, sal_Int32 &rGraphicContentSize)
 
static ErrCode readJPEG (SvStream &rStream, Graphic &rGraphic, GfxLinkType &rLinkType, GraphicFilterImportFlags nImportFlags)
 
static ErrCode readSVG (SvStream &rStream, Graphic &rGraphic, GfxLinkType &rLinkType, std::unique_ptr< sal_uInt8[]> &rpGraphicContent, sal_Int32 &rGraphicContentSize)
 
static ErrCode readXBM (SvStream &rStream, Graphic &rGraphic)
 
static ErrCode readXPM (SvStream &rStream, Graphic &rGraphic)
 
static ErrCode readWMF_EMF (SvStream &rStream, Graphic &rGraphic, GfxLinkType &rLinkType, VectorGraphicDataType eType)
 
static ErrCode readWMF (SvStream &rStream, Graphic &rGraphic, GfxLinkType &rLinkType)
 
static ErrCode readEMF (SvStream &rStream, Graphic &rGraphic, GfxLinkType &rLinkType)
 
static ErrCode readPDF (SvStream &rStream, Graphic &rGraphic, GfxLinkType &rLinkType)
 
static ErrCode readTIFF (SvStream &rStream, Graphic &rGraphic, GfxLinkType &rLinkType)
 
static ErrCode readWithTypeSerializer (SvStream &rStream, Graphic &rGraphic, GfxLinkType &rLinkType, std::u16string_view aFilterName)
 
static ErrCode readBMP (SvStream &rStream, Graphic &rGraphic, GfxLinkType &rLinkType)
 
static ErrCode readTGA (SvStream &rStream, Graphic &rGraphic)
 
static ErrCode readPICT (SvStream &rStream, Graphic &rGraphic, GfxLinkType &rLinkType)
 
static ErrCode readMET (SvStream &rStream, Graphic &rGraphic, GfxLinkType &rLinkType)
 
static ErrCode readRAS (SvStream &rStream, Graphic &rGraphic)
 
static ErrCode readPCX (SvStream &rStream, Graphic &rGraphic)
 
static ErrCode readEPS (SvStream &rStream, Graphic &rGraphic)
 
static ErrCode readPSD (SvStream &rStream, Graphic &rGraphic)
 
static ErrCode readPCD (SvStream &rStream, Graphic &rGraphic)
 
static ErrCode readPBM (SvStream &rStream, Graphic &rGraphic)
 
static ErrCode readDXF (SvStream &rStream, Graphic &rGraphic)
 
static ErrCode readWEBP (SvStream &rStream, Graphic &rGraphic, GfxLinkType &rLinkType)
 

Private Member Functions

void ImplInit ()
 
ErrCode ImplSetError (ErrCode nError, const SvStream *pStm=nullptr)
 
ErrCode ImpTestOrFindFormat (std::u16string_view rPath, SvStream &rStream, sal_uInt16 &rFormat)
 
 DECL_DLLPRIVATE_LINK (FilterCallback, ConvertData &, bool)
 

Private Attributes

OUString aFilterPath
 
FilterConfigCachepConfig
 
std::optional< ErrCodemxErrorEx
 Information about errors during the GraphicFilter operation. More...
 
bool bUseConfig
 

Detailed Description

Class to import and export graphic formats.

Definition at line 227 of file graphicfilter.hxx.

Constructor & Destructor Documentation

◆ GraphicFilter()

GraphicFilter::GraphicFilter ( bool  bUseConfig = true)

Definition at line 306 of file graphicfilter.cxx.

References ImplInit().

◆ ~GraphicFilter()

GraphicFilter::~GraphicFilter ( )

Definition at line 312 of file graphicfilter.cxx.

References gaFilterHdlList, getListMutex(), mxErrorEx, and pConfig.

Member Function Documentation

◆ CanImportGraphic() [1/2]

ErrCode GraphicFilter::CanImportGraphic ( const INetURLObject rPath,
sal_uInt16  nFormat,
sal_uInt16 *  pDeterminedFormat 
)

◆ CanImportGraphic() [2/2]

ErrCode GraphicFilter::CanImportGraphic ( std::u16string_view  rPath,
SvStream rStream,
sal_uInt16  nFormat,
sal_uInt16 *  pDeterminedFormat 
)

◆ compressAsPNG()

ErrCode GraphicFilter::compressAsPNG ( const Graphic rGraphic,
SvStream rOutputStream 
)

◆ DECL_DLLPRIVATE_LINK()

GraphicFilter::DECL_DLLPRIVATE_LINK ( FilterCallback  ,
ConvertData ,
bool   
)
private

◆ ExportGraphic() [1/2]

ErrCode GraphicFilter::ExportGraphic ( const Graphic rGraphic,
const INetURLObject rPath,
sal_uInt16  nFormat,
const css::uno::Sequence< css::beans::PropertyValue > *  pFilterData = nullptr 
)

◆ ExportGraphic() [2/2]

ErrCode GraphicFilter::ExportGraphic ( const Graphic rGraphic,
std::u16string_view  rPath,
SvStream rOStm,
sal_uInt16  nFormat,
const css::uno::Sequence< css::beans::PropertyValue > *  pFilterData = nullptr 
)

Definition at line 1546 of file graphicfilter.cxx.

References aArguments, ZCodec::BeginCompression(), Bitmap, BmpWriter(), ZCodec::Compress(), ConvertGDIMetaFileToEMF(), ConvertGraphicToWMF(), Graphic::Draw(), Emf, ZCodec::EndCompression(), ERRCODE_GRFILTER_FILTERERROR, ERRCODE_GRFILTER_FORMATERROR, ERRCODE_GRFILTER_IOERROR, ERRCODE_NONE, eType, EXP_BMP, EXP_EMF, EXP_EMZ, EXP_EPS, EXP_GIF, EXP_JPEG, EXP_PNG, EXP_SVG, EXP_SVGZ, EXP_SVMETAFILE, EXP_TIFF, EXP_WEBP, EXP_WMF, EXP_WMZ, ExportEpsGraphic(), ExportGifGraphic(), ExportJPEG(), ExportTiffGraphicImport(), ExportWebpGraphic(), Graphic::GetBitmapEx(), SvStream::GetBufferSize(), SvMemoryStream::GetData(), SvStream::GetError(), FilterConfigCache::GetExportFilterName(), GetExportFormatCount(), FilterConfigCache::GetExportFormatExtension(), FilterConfigItem::GetFilterData(), Graphic::GetGDIMetaFile(), Graphic::GetGfxLink(), Graphic::GetPrefMapMode(), Graphic::GetPrefSize(), SvMemoryStream::GetSize(), Graphic::GetType(), Graphic::getVectorGraphicData(), GRFILTER_FORMAT_DONTKNOW, Size::Height(), i, ImpGetExtension(), ImpGetScaledGraphic(), ImplSetError(), GfxLink::IsEMF(), FilterConfigCache::IsExportPixelFormat(), nVersion, pConfig, Point, FilterConfigItem::ReadInt32(), ResetLastError(), SAL_INFO, SvStream::Seek(), SvStream::SetBufferSize(), ZCodec::SetCompressionMetadata(), Size::setHeight(), vcl::PngImageWriter::setParameters(), SvStream::SetVersion(), Size::setWidth(), Svg, SvStream::Tell(), Size::Width(), Wmf, vcl::PngImageWriter::write(), SvmWriter::Write(), SvStream::WriteBytes(), and ZCODEC_DEFAULT_COMPRESSION.

◆ GetExportFormatCount()

sal_uInt16 GraphicFilter::GetExportFormatCount ( ) const

Definition at line 403 of file graphicfilter.cxx.

References FilterConfigCache::GetExportFormatCount(), and pConfig.

Referenced by ExportGraphic().

◆ GetExportFormatMediaType()

OUString GraphicFilter::GetExportFormatMediaType ( sal_uInt16  nFormat)

Definition at line 438 of file graphicfilter.cxx.

References FilterConfigCache::GetExportFormatMediaType(), and pConfig.

◆ GetExportFormatName()

OUString GraphicFilter::GetExportFormatName ( sal_uInt16  nFormat)

Definition at line 433 of file graphicfilter.cxx.

References FilterConfigCache::GetExportFormatName(), and pConfig.

◆ GetExportFormatNumber()

sal_uInt16 GraphicFilter::GetExportFormatNumber ( std::u16string_view  rFormatName)

Definition at line 408 of file graphicfilter.cxx.

References FilterConfigCache::GetExportFormatNumber(), and pConfig.

◆ GetExportFormatNumberForMediaType()

sal_uInt16 GraphicFilter::GetExportFormatNumberForMediaType ( std::u16string_view  rShortName)

◆ GetExportFormatNumberForShortName()

sal_uInt16 GraphicFilter::GetExportFormatNumberForShortName ( std::u16string_view  rShortName)

◆ GetExportFormatNumberForTypeName()

sal_uInt16 GraphicFilter::GetExportFormatNumberForTypeName ( std::u16string_view  rType)

◆ GetExportFormatShortName()

OUString GraphicFilter::GetExportFormatShortName ( sal_uInt16  nFormat)

Definition at line 443 of file graphicfilter.cxx.

References FilterConfigCache::GetExportFormatShortName(), and pConfig.

◆ GetExportInternalFilterName()

OUString GraphicFilter::GetExportInternalFilterName ( sal_uInt16  nFormat)

Definition at line 423 of file graphicfilter.cxx.

References FilterConfigCache::GetExportInternalFilterName(), and pConfig.

◆ GetExportWildcard()

OUString GraphicFilter::GetExportWildcard ( sal_uInt16  nFormat)

Definition at line 448 of file graphicfilter.cxx.

References FilterConfigCache::GetExportWildcard(), and pConfig.

◆ GetFilterCallback()

Link< ConvertData &, bool > GraphicFilter::GetFilterCallback ( ) const

Definition at line 1883 of file graphicfilter.cxx.

References LINK.

◆ GetGraphicFilter()

GraphicFilter & GraphicFilter::GetGraphicFilter ( )
static

◆ GetImportFormatCount()

sal_uInt16 GraphicFilter::GetImportFormatCount ( ) const

Definition at line 356 of file graphicfilter.cxx.

References FilterConfigCache::GetImportFormatCount(), and pConfig.

Referenced by LoadGraphic().

◆ GetImportFormatName()

OUString GraphicFilter::GetImportFormatName ( sal_uInt16  nFormat)

Definition at line 376 of file graphicfilter.cxx.

References FilterConfigCache::GetImportFormatName(), and pConfig.

◆ GetImportFormatNumber()

sal_uInt16 GraphicFilter::GetImportFormatNumber ( std::u16string_view  rFormatName)

Definition at line 361 of file graphicfilter.cxx.

References FilterConfigCache::GetImportFormatNumber(), and pConfig.

Referenced by LoadGraphic().

◆ GetImportFormatNumberForShortName()

sal_uInt16 GraphicFilter::GetImportFormatNumberForShortName ( std::u16string_view  rShortName)

◆ GetImportFormatNumberForTypeName()

sal_uInt16 GraphicFilter::GetImportFormatNumberForTypeName ( std::u16string_view  rType)

◆ GetImportFormatShortName()

OUString GraphicFilter::GetImportFormatShortName ( sal_uInt16  nFormat)

Definition at line 393 of file graphicfilter.cxx.

References FilterConfigCache::GetImportFormatShortName(), and pConfig.

◆ GetImportFormatTypeName()

OUString GraphicFilter::GetImportFormatTypeName ( sal_uInt16  nFormat)

Definition at line 381 of file graphicfilter.cxx.

References FilterConfigCache::GetImportFilterTypeName(), and pConfig.

◆ GetImportWildcard()

OUString GraphicFilter::GetImportWildcard ( sal_uInt16  nFormat,
sal_Int32  nEntry 
)

Definition at line 398 of file graphicfilter.cxx.

References FilterConfigCache::GetImportWildcard(), and pConfig.

◆ GetLastError()

const ErrCode & GraphicFilter::GetLastError ( ) const
inline

Definition at line 295 of file graphicfilter.hxx.

◆ ImplInit()

void GraphicFilter::ImplInit ( )
private

Definition at line 327 of file graphicfilter.cxx.

References aFilterPath, bUseConfig, ERRCODE_NONE, gaFilterHdlList, getListMutex(), mxErrorEx, and pConfig.

Referenced by GraphicFilter().

◆ ImplSetError()

ErrCode GraphicFilter::ImplSetError ( ErrCode  nError,
const SvStream pStm = nullptr 
)
private

◆ ImportGraphic() [1/2]

ErrCode GraphicFilter::ImportGraphic ( Graphic rGraphic,
const INetURLObject rPath,
sal_uInt16  nFormat = GRFILTER_FORMAT_DONTKNOW,
sal_uInt16 *  pDeterminedFormat = nullptr,
GraphicFilterImportFlags  nImportFlags = GraphicFilterImportFlags::NONE 
)

◆ ImportGraphic() [2/2]

ErrCode GraphicFilter::ImportGraphic ( Graphic rGraphic,
std::u16string_view  rPath,
SvStream rStream,
sal_uInt16  nFormat = GRFILTER_FORMAT_DONTKNOW,
sal_uInt16 *  pDeterminedFormat = nullptr,
GraphicFilterImportFlags  nImportFlags = GraphicFilterImportFlags::NONE 
)

◆ ImportGraphics()

void GraphicFilter::ImportGraphics ( std::vector< std::shared_ptr< Graphic > > &  rGraphics,
std::vector< std::unique_ptr< SvStream > >  vStreams 
)

◆ ImportUnloadedGraphic()

Graphic GraphicFilter::ImportUnloadedGraphic ( SvStream rIStream,
sal_uInt64  sizeLimit = 0,
const Size pSizeHint = nullptr 
)

◆ ImpTestOrFindFormat()

ErrCode GraphicFilter::ImpTestOrFindFormat ( std::u16string_view  rPath,
SvStream rStream,
sal_uInt16 &  rFormat 
)
private

◆ IsExportPixelFormat()

bool GraphicFilter::IsExportPixelFormat ( sal_uInt16  nFormat)

Definition at line 453 of file graphicfilter.cxx.

References FilterConfigCache::IsExportPixelFormat(), and pConfig.

◆ LoadGraphic()

ErrCode GraphicFilter::LoadGraphic ( const OUString &  rPath,
const OUString &  rFilter,
Graphic rGraphic,
GraphicFilter pFilter = nullptr,
sal_uInt16 *  pDeterminedFormat = nullptr 
)
static

◆ MakeGraphicsAvailableThreaded()

void GraphicFilter::MakeGraphicsAvailableThreaded ( std::vector< Graphic * > &  rGraphics)

Tries to ensure all Graphic objects are available (Graphic::isAvailable()).

Only an optimization, may not process all items.

Definition at line 701 of file graphicfilter.cxx.

References i, ImportGraphics(), NativeJpg, and NativePng.

◆ readBMP()

ErrCode GraphicFilter::readBMP ( SvStream rStream,
Graphic rGraphic,
GfxLinkType rLinkType 
)
static

Definition at line 1210 of file graphicfilter.cxx.

References BmpReader(), ERRCODE_GRFILTER_FILTERERROR, ERRCODE_NONE, and NativeBmp.

Referenced by ImportGraphic().

◆ readDXF()

ErrCode GraphicFilter::readDXF ( SvStream rStream,
Graphic rGraphic 
)
static

Definition at line 1306 of file graphicfilter.cxx.

References ERRCODE_GRFILTER_FILTERERROR, ERRCODE_NONE, and ImportDxfGraphic().

Referenced by ImportGraphic().

◆ readEMF()

ErrCode GraphicFilter::readEMF ( SvStream rStream,
Graphic rGraphic,
GfxLinkType rLinkType 
)
static

Definition at line 1162 of file graphicfilter.cxx.

References Emf, and readWMF_EMF().

Referenced by ImportGraphic().

◆ readEPS()

ErrCode GraphicFilter::readEPS ( SvStream rStream,
Graphic rGraphic 
)
static

Definition at line 1267 of file graphicfilter.cxx.

References ERRCODE_GRFILTER_FILTERERROR, ERRCODE_NONE, and ImportEpsGraphic().

Referenced by ImportGraphic().

◆ readGIF()

ErrCode GraphicFilter::readGIF ( SvStream rStream,
Graphic rGraphic,
GfxLinkType rLinkType 
)
static

Definition at line 961 of file graphicfilter.cxx.

References ERRCODE_GRFILTER_FILTERERROR, ERRCODE_NONE, ImportGIF(), and NativeGif.

Referenced by ImportGraphic().

◆ readJPEG()

ErrCode GraphicFilter::readJPEG ( SvStream rStream,
Graphic rGraphic,
GfxLinkType rLinkType,
GraphicFilterImportFlags  nImportFlags 
)
static

◆ readMET()

ErrCode GraphicFilter::readMET ( SvStream rStream,
Graphic rGraphic,
GfxLinkType rLinkType 
)
static

Definition at line 1240 of file graphicfilter.cxx.

References ERRCODE_GRFILTER_FILTERERROR, ERRCODE_NONE, ImportMetGraphic(), and NativeMet.

Referenced by ImportGraphic().

◆ readPBM()

ErrCode GraphicFilter::readPBM ( SvStream rStream,
Graphic rGraphic 
)
static

Definition at line 1298 of file graphicfilter.cxx.

References ERRCODE_GRFILTER_FILTERERROR, ERRCODE_NONE, and ImportPbmGraphic().

Referenced by ImportGraphic().

◆ readPCD()

ErrCode GraphicFilter::readPCD ( SvStream rStream,
Graphic rGraphic 
)
static

◆ readPCX()

ErrCode GraphicFilter::readPCX ( SvStream rStream,
Graphic rGraphic 
)
static

Definition at line 1259 of file graphicfilter.cxx.

References ERRCODE_GRFILTER_FILTERERROR, ERRCODE_NONE, and ImportPcxGraphic().

Referenced by ImportGraphic().

◆ readPDF()

ErrCode GraphicFilter::readPDF ( SvStream rStream,
Graphic rGraphic,
GfxLinkType rLinkType 
)
static

Definition at line 1167 of file graphicfilter.cxx.

References ERRCODE_GRFILTER_FILTERERROR, ERRCODE_NONE, vcl::ImportPDF(), and NativePdf.

Referenced by ImportGraphic().

◆ readPICT()

ErrCode GraphicFilter::readPICT ( SvStream rStream,
Graphic rGraphic,
GfxLinkType rLinkType 
)
static

Definition at line 1229 of file graphicfilter.cxx.

References ERRCODE_GRFILTER_FILTERERROR, ERRCODE_NONE, ImportPictGraphic(), and NativePct.

Referenced by ImportGraphic().

◆ readPNG()

ErrCode GraphicFilter::readPNG ( SvStream rStream,
Graphic rGraphic,
GfxLinkType rLinkType,
std::unique_ptr< sal_uInt8[]> &  rpGraphicContent,
sal_Int32 &  rGraphicContentSize 
)
static

◆ readPSD()

ErrCode GraphicFilter::readPSD ( SvStream rStream,
Graphic rGraphic 
)
static

Definition at line 1275 of file graphicfilter.cxx.

References ERRCODE_GRFILTER_FILTERERROR, ERRCODE_NONE, and ImportPsdGraphic().

Referenced by ImportGraphic().

◆ readRAS()

ErrCode GraphicFilter::readRAS ( SvStream rStream,
Graphic rGraphic 
)
static

Definition at line 1251 of file graphicfilter.cxx.

References ERRCODE_GRFILTER_FILTERERROR, ERRCODE_NONE, and ImportRasGraphic().

Referenced by ImportGraphic().

◆ readSVG()

ErrCode GraphicFilter::readSVG ( SvStream rStream,
Graphic rGraphic,
GfxLinkType rLinkType,
std::unique_ptr< sal_uInt8[]> &  rpGraphicContent,
sal_Int32 &  rGraphicContentSize 
)
static

◆ readTGA()

ErrCode GraphicFilter::readTGA ( SvStream rStream,
Graphic rGraphic 
)
static

Definition at line 1221 of file graphicfilter.cxx.

References ERRCODE_GRFILTER_FILTERERROR, ERRCODE_NONE, and ImportTgaGraphic().

Referenced by ImportGraphic().

◆ readTIFF()

ErrCode GraphicFilter::readTIFF ( SvStream rStream,
Graphic rGraphic,
GfxLinkType rLinkType 
)
static

◆ readWEBP()

ErrCode GraphicFilter::readWEBP ( SvStream rStream,
Graphic rGraphic,
GfxLinkType rLinkType 
)
static

◆ readWithTypeSerializer()

ErrCode GraphicFilter::readWithTypeSerializer ( SvStream rStream,
Graphic rGraphic,
GfxLinkType rLinkType,
std::u16string_view  aFilterName 
)
static

◆ readWMF()

ErrCode GraphicFilter::readWMF ( SvStream rStream,
Graphic rGraphic,
GfxLinkType rLinkType 
)
static

Definition at line 1157 of file graphicfilter.cxx.

References readWMF_EMF(), and Wmf.

Referenced by ImportGraphic().

◆ readWMF_EMF()

ErrCode GraphicFilter::readWMF_EMF ( SvStream rStream,
Graphic rGraphic,
GfxLinkType rLinkType,
VectorGraphicDataType  eType 
)
static

◆ readXBM()

ErrCode GraphicFilter::readXBM ( SvStream rStream,
Graphic rGraphic 
)
static

Definition at line 1102 of file graphicfilter.cxx.

References ERRCODE_GRFILTER_FILTERERROR, ERRCODE_NONE, and ImportXBM().

Referenced by ImportGraphic().

◆ readXPM()

ErrCode GraphicFilter::readXPM ( SvStream rStream,
Graphic rGraphic 
)
static

Definition at line 1110 of file graphicfilter.cxx.

References ERRCODE_GRFILTER_FILTERERROR, ERRCODE_NONE, and ImportXPM().

Referenced by ImportGraphic().

◆ ResetLastError()

void GraphicFilter::ResetLastError ( )

Definition at line 1878 of file graphicfilter.cxx.

References ERRCODE_NONE, and mxErrorEx.

Referenced by ExportGraphic(), ImportGraphic(), ImportGraphics(), and ImportUnloadedGraphic().

Member Data Documentation

◆ aFilterPath

OUString GraphicFilter::aFilterPath
private

Definition at line 338 of file graphicfilter.hxx.

Referenced by ImplInit().

◆ bUseConfig

bool GraphicFilter::bUseConfig
private

Definition at line 349 of file graphicfilter.hxx.

Referenced by ImplInit().

◆ mxErrorEx

std::optional<ErrCode> GraphicFilter::mxErrorEx
private

Information about errors during the GraphicFilter operation.

Definition at line 348 of file graphicfilter.hxx.

Referenced by ImplInit(), ImplSetError(), ResetLastError(), and ~GraphicFilter().

◆ pConfig

FilterConfigCache* GraphicFilter::pConfig
private

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