LibreOffice Module vcl (master) 1
|
Class to import and export graphic formats. More...
#include <graphicfilter.hxx>
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 ErrCode & | GetLastError () const |
void | ResetLastError () |
Link< ConvertData &, bool > | GetFilterCallback () const |
ErrCode | compressAsPNG (const Graphic &rGraphic, SvStream &rOutputStream) |
Static Public Member Functions | |
static GraphicFilter & | GetGraphicFilter () |
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, BinaryDataContainer &rpGraphicContent) |
static ErrCode | readJPEG (SvStream &rStream, Graphic &rGraphic, GfxLinkType &rLinkType, GraphicFilterImportFlags nImportFlags) |
static ErrCode | readSVG (SvStream &rStream, Graphic &rGraphic, GfxLinkType &rLinkType, BinaryDataContainer &rpGraphicContent) |
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 |
FilterConfigCache * | pConfig |
std::optional< ErrCode > | mxErrorEx |
Information about errors during the GraphicFilter operation. More... | |
bool | bUseConfig |
Class to import and export graphic formats.
Definition at line 228 of file graphicfilter.hxx.
GraphicFilter::GraphicFilter | ( | bool | bUseConfig = true | ) |
Definition at line 284 of file graphicfilter.cxx.
References ImplInit().
GraphicFilter::~GraphicFilter | ( | ) |
Definition at line 290 of file graphicfilter.cxx.
References gaFilterHdlList, getListMutex(), mxErrorEx, and pConfig.
ErrCode GraphicFilter::CanImportGraphic | ( | const INetURLObject & | rPath, |
sal_uInt16 | nFormat, | ||
sal_uInt16 * | pDeterminedFormat | ||
) |
Definition at line 436 of file graphicfilter.cxx.
References CanImportGraphic(), utl::UcbStreamHelper::CreateStream(), ERRCODE_GRFILTER_FORMATERROR, INetURLObject::GetMainURL(), INetURLObject::GetProtocol(), INetURLObject::NONE, SAL_WARN_IF, and xStream.
Referenced by CanImportGraphic().
ErrCode GraphicFilter::CanImportGraphic | ( | std::u16string_view | rPath, |
SvStream & | rStream, | ||
sal_uInt16 | nFormat, | ||
sal_uInt16 * | pDeterminedFormat | ||
) |
Definition at line 451 of file graphicfilter.cxx.
References ERRCODE_NONE, ImplSetError(), ImpTestOrFindFormat(), SvStream::Seek(), and SvStream::Tell().
Definition at line 1940 of file graphicfilter.cxx.
References ExportGraphic(), GetExportFormatNumberForShortName(), comphelper::makePropertyValue(), and u.
|
private |
ErrCode GraphicFilter::ExportGraphic | ( | const Graphic & | rGraphic, |
const INetURLObject & | rPath, | ||
sal_uInt16 | nFormat, | ||
const css::uno::Sequence< css::beans::PropertyValue > * | pFilterData = nullptr |
||
) |
Definition at line 1461 of file graphicfilter.cxx.
References utl::UcbStreamHelper::CreateStream(), ERRCODE_GRFILTER_FORMATERROR, ERRCODE_NONE, ExportGraphic(), INetURLObject::GetMainURL(), INetURLObject::GetProtocol(), utl::UCBContentHelper::IsDocument(), utl::UCBContentHelper::Kill(), INetURLObject::NONE, SAL_INFO, SAL_WARN_IF, and xStream.
Referenced by compressAsPNG(), ExportGraphic(), and GraphicNativeTransform::rotateGeneric().
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 1483 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, 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(), and ZCODEC_DEFAULT_COMPRESSION.
sal_uInt16 GraphicFilter::GetExportFormatCount | ( | ) | const |
Definition at line 381 of file graphicfilter.cxx.
References FilterConfigCache::GetExportFormatCount(), and pConfig.
Referenced by ExportGraphic().
OUString GraphicFilter::GetExportFormatMediaType | ( | sal_uInt16 | nFormat | ) |
Definition at line 416 of file graphicfilter.cxx.
References FilterConfigCache::GetExportFormatMediaType(), and pConfig.
OUString GraphicFilter::GetExportFormatName | ( | sal_uInt16 | nFormat | ) |
Definition at line 411 of file graphicfilter.cxx.
References FilterConfigCache::GetExportFormatName(), and pConfig.
sal_uInt16 GraphicFilter::GetExportFormatNumber | ( | std::u16string_view | rFormatName | ) |
Definition at line 386 of file graphicfilter.cxx.
References FilterConfigCache::GetExportFormatNumber(), and pConfig.
sal_uInt16 GraphicFilter::GetExportFormatNumberForMediaType | ( | std::u16string_view | rShortName | ) |
Definition at line 391 of file graphicfilter.cxx.
References FilterConfigCache::GetExportFormatNumberForMediaType(), and pConfig.
sal_uInt16 GraphicFilter::GetExportFormatNumberForShortName | ( | std::u16string_view | rShortName | ) |
Definition at line 396 of file graphicfilter.cxx.
References FilterConfigCache::GetExportFormatNumberForShortName(), and pConfig.
Referenced by compressAsPNG(), and GraphicNativeTransform::rotateGeneric().
sal_uInt16 GraphicFilter::GetExportFormatNumberForTypeName | ( | std::u16string_view | rType | ) |
Definition at line 406 of file graphicfilter.cxx.
References FilterConfigCache::GetExportFormatNumberForTypeName(), and pConfig.
OUString GraphicFilter::GetExportFormatShortName | ( | sal_uInt16 | nFormat | ) |
Definition at line 421 of file graphicfilter.cxx.
References FilterConfigCache::GetExportFormatShortName(), and pConfig.
OUString GraphicFilter::GetExportInternalFilterName | ( | sal_uInt16 | nFormat | ) |
Definition at line 401 of file graphicfilter.cxx.
References FilterConfigCache::GetExportInternalFilterName(), and pConfig.
OUString GraphicFilter::GetExportWildcard | ( | sal_uInt16 | nFormat | ) |
Definition at line 426 of file graphicfilter.cxx.
References FilterConfigCache::GetExportWildcard(), and pConfig.
Link< ConvertData &, bool > GraphicFilter::GetFilterCallback | ( | ) | const |
Definition at line 1814 of file graphicfilter.cxx.
References LINK.
|
static |
Definition at line 1884 of file graphicfilter.cxx.
Referenced by vcl::graphic::loadFromURL(), LoadGraphic(), GfxLink::LoadNative(), GraphicNativeTransform::rotateGeneric(), and GraphicNativeTransform::rotateJPEG().
sal_uInt16 GraphicFilter::GetImportFormatCount | ( | ) | const |
Definition at line 334 of file graphicfilter.cxx.
References FilterConfigCache::GetImportFormatCount(), and pConfig.
Referenced by LoadGraphic().
OUString GraphicFilter::GetImportFormatName | ( | sal_uInt16 | nFormat | ) |
Definition at line 354 of file graphicfilter.cxx.
References FilterConfigCache::GetImportFormatName(), and pConfig.
sal_uInt16 GraphicFilter::GetImportFormatNumber | ( | std::u16string_view | rFormatName | ) |
Definition at line 339 of file graphicfilter.cxx.
References FilterConfigCache::GetImportFormatNumber(), and pConfig.
Referenced by LoadGraphic().
sal_uInt16 GraphicFilter::GetImportFormatNumberForShortName | ( | std::u16string_view | rShortName | ) |
Definition at line 344 of file graphicfilter.cxx.
References FilterConfigCache::GetImportFormatNumberForShortName(), and pConfig.
Referenced by GfxLink::LoadNative().
sal_uInt16 GraphicFilter::GetImportFormatNumberForTypeName | ( | std::u16string_view | rType | ) |
Definition at line 349 of file graphicfilter.cxx.
References FilterConfigCache::GetImportFormatNumberForTypeName(), and pConfig.
OUString GraphicFilter::GetImportFormatShortName | ( | sal_uInt16 | nFormat | ) |
Definition at line 371 of file graphicfilter.cxx.
References FilterConfigCache::GetImportFormatShortName(), and pConfig.
OUString GraphicFilter::GetImportFormatTypeName | ( | sal_uInt16 | nFormat | ) |
Definition at line 359 of file graphicfilter.cxx.
References FilterConfigCache::GetImportFilterTypeName(), and pConfig.
OUString GraphicFilter::GetImportWildcard | ( | sal_uInt16 | nFormat, |
sal_Int32 | nEntry | ||
) |
Definition at line 376 of file graphicfilter.cxx.
References FilterConfigCache::GetImportWildcard(), and pConfig.
|
inline |
Definition at line 296 of file graphicfilter.hxx.
|
private |
Definition at line 305 of file graphicfilter.cxx.
References aFilterPath, bUseConfig, ERRCODE_NONE, gaFilterHdlList, getListMutex(), mxErrorEx, and pConfig.
Referenced by GraphicFilter().
Definition at line 328 of file graphicfilter.cxx.
References ERRCODE_NONE, SvStream::GetError(), and mxErrorEx.
Referenced by CanImportGraphic(), ExportGraphic(), ImportGraphic(), and ImportUnloadedGraphic().
ErrCode GraphicFilter::ImportGraphic | ( | Graphic & | rGraphic, |
const INetURLObject & | rPath, | ||
sal_uInt16 | nFormat = GRFILTER_FORMAT_DONTKNOW , |
||
sal_uInt16 * | pDeterminedFormat = nullptr , |
||
GraphicFilterImportFlags | nImportFlags = GraphicFilterImportFlags::NONE |
||
) |
Definition at line 466 of file graphicfilter.cxx.
References utl::UcbStreamHelper::CreateStream(), ERRCODE_GRFILTER_FORMATERROR, INetURLObject::GetMainURL(), INetURLObject::GetProtocol(), ImportGraphic(), INetURLObject::NONE, SAL_WARN_IF, and xStream.
Referenced by ImportGraphic(), vcl::graphic::loadFromURL(), LoadGraphic(), GfxLink::LoadNative(), GraphicNativeTransform::rotateGeneric(), and GraphicNativeTransform::rotateJPEG().
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 |
||
) |
Definition at line 1269 of file graphicfilter.cxx.
References Graphic::Clear(), ERRCODE_GRFILTER_FILTERERROR, ERRCODE_GRFILTER_OPENERROR, ERRCODE_GRFILTER_TOOBIG, ERRCODE_IO_PENDING, ERRCODE_NONE, SvStream::GetError(), FilterConfigCache::GetImportFilterName(), Graphic::GetReaderContext(), IMP_BMP, IMP_DXF, IMP_EMF, IMP_EMZ, IMP_EPS, IMP_GIF, IMP_JPEG, IMP_MET, IMP_MOV, IMP_PBM, IMP_PCD, IMP_PCX, IMP_PDF, IMP_PICT, IMP_PNG, IMP_PSD, IMP_RAS, IMP_SVG, IMP_SVGZ, IMP_SVMETAFILE, IMP_TGA, IMP_TIFF, IMP_WEBP, IMP_WMF, IMP_WMZ, IMP_XBM, IMP_XPM, ImplSetError(), ImpTestOrFindFormat(), Graphic::IsDummyContext(), BinaryDataContainer::isEmpty(), Graphic::IsGfxLink(), NONE, pConfig, readBMP(), readDXF(), readEMF(), readEPS(), readGIF(), readJPEG(), readMET(), readPBM(), readPCD(), readPCX(), readPDF(), readPICT(), readPNG(), readPSD(), readRAS(), readSVG(), readTGA(), readTIFF(), readWEBP(), readWithTypeSerializer(), readWMF(), readXBM(), readXPM(), SvStream::ResetError(), ResetLastError(), SvStream::Seek(), Graphic::SetDummyContext(), Graphic::SetGfxLink(), and SvStream::Tell().
void GraphicFilter::ImportGraphics | ( | std::vector< std::shared_ptr< Graphic > > & | rGraphics, |
std::vector< std::unique_ptr< SvStream > > | vStreams | ||
) |
Imports multiple graphics.
The resulting graphic is added to rGraphics on success, nullptr is added on failure.
Definition at line 548 of file graphicfilter.cxx.
References comphelper::ThreadPool::createThreadTaskTag(), ERRCODE_GRFILTER_FILTERERROR, ERRCODE_GRFILTER_TOOBIG, ERRCODE_NONE, BitmapEx::GetAlphaMask(), BitmapEx::GetBitmap(), FilterConfigCache::GetImportFilterName(), comphelper::ThreadPool::getSharedOptimalPool(), GRFILTER_FORMAT_DONTKNOW, IMP_JPEG, IMP_PNG, ImportJPEG(), vcl::ImportPNG(), ImpTestOrFindFormat(), BitmapEx::IsAlpha(), NativeJpg, NativePng, NONE, OnlyCreateBitmap, pConfig, comphelper::ThreadPool::pushTask(), ResetLastError(), SetLogsizeForJpeg, u, and comphelper::ThreadPool::waitUntilDone().
Referenced by MakeGraphicsAvailableThreaded().
Graphic GraphicFilter::ImportUnloadedGraphic | ( | SvStream & | rIStream, |
sal_uInt64 | sizeLimit = 0 , |
||
const Size * | pSizeHint = nullptr |
||
) |
Definition at line 712 of file graphicfilter.cxx.
References ZCodec::BeginCompression(), ZCodec::Decompress(), ZCodec::EndCompression(), ERRCODE_GRFILTER_FILTERERROR, ERRCODE_GRFILTER_TOOBIG, ERRCODE_NONE, BinaryDataContainer::getAsStream(), SvStream::GetError(), Size::getHeight(), FilterConfigCache::GetImportFilterName(), vcl::PngImageReader::getMicrosoftGifChunk(), Size::getWidth(), GRFILTER_FORMAT_DONTKNOW, IMP_BMP, IMP_EMF, IMP_EMZ, IMP_GIF, IMP_JPEG, IMP_MET, IMP_MOV, IMP_PDF, IMP_PICT, IMP_PNG, IMP_SVG, IMP_TIFF, IMP_WEBP, IMP_WMF, IMP_WMZ, Graphic::ImplGetImpGraphic(), ImplSetError(), ImpTestOrFindFormat(), BinaryDataContainer::isEmpty(), IsGIFAnimated(), ZCodec::IsZCompressed(), NativeBmp, NativeGif, NativeJpg, NativeMet, NativeMov, NativePct, NativePdf, NativePng, NativeSvg, NativeTif, NativeWebp, NativeWmf, NONE, pConfig, SvStream::ReadBytes(), SvStream::remainingSize(), ResetLastError(), SvStream::Seek(), Graphic::SetGfxLink(), ImpGraphic::setPrepared(), STREAM_SEEK_TO_BEGIN, supportNativeWebp(), SvStream::Tell(), u, and ZCODEC_DEFAULT_COMPRESSION.
|
private |
Definition at line 147 of file graphicfilter.cxx.
References ERRCODE_GRFILTER_FORMATERROR, ERRCODE_NONE, FilterConfigCache::GetImportFilterType(), FilterConfigCache::GetImportFormatExtension(), FilterConfigCache::GetImportFormatNumberForExtension(), GRFILTER_FORMAT_DONTKNOW, ImpGetExtension(), pConfig, vcl::peekGraphicFormat(), u, and FilterConfigItem::WriteInt32().
Referenced by CanImportGraphic(), ImportGraphic(), ImportGraphics(), and ImportUnloadedGraphic().
bool GraphicFilter::IsExportPixelFormat | ( | sal_uInt16 | nFormat | ) |
Definition at line 431 of file graphicfilter.cxx.
References FilterConfigCache::IsExportPixelFormat(), and pConfig.
|
static |
Definition at line 1890 of file graphicfilter.cxx.
References aURL, utl::UcbStreamHelper::CreateStream(), ERRCODE_GRFILTER_FILTERERROR, ERRCODE_GRFILTER_FORMATERROR, ERRCODE_GRFILTER_IOERROR, ERRCODE_GRFILTER_OPENERROR, ERRCODE_GRFILTER_TOOBIG, ERRCODE_GRFILTER_VERSIONERROR, ERRCODE_NONE, GetGraphicFilter(), GetImportFormatCount(), GetImportFormatNumber(), GRFILTER_FORMAT_DONTKNOW, ImportGraphic(), and SAL_INFO_IF.
Referenced by Image::Image(), and readBitmapEx().
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 674 of file graphicfilter.cxx.
References i, ImportGraphics(), NativeJpg, and NativePng.
|
static |
Definition at line 1153 of file graphicfilter.cxx.
References BmpReader(), ERRCODE_GRFILTER_FILTERERROR, ERRCODE_NONE, and NativeBmp.
Referenced by ImportGraphic().
Definition at line 1249 of file graphicfilter.cxx.
References ERRCODE_GRFILTER_FILTERERROR, ERRCODE_NONE, and ImportDxfGraphic().
Referenced by ImportGraphic().
|
static |
Definition at line 1105 of file graphicfilter.cxx.
References Emf, and readWMF_EMF().
Referenced by ImportGraphic().
Definition at line 1210 of file graphicfilter.cxx.
References ERRCODE_GRFILTER_FILTERERROR, ERRCODE_NONE, and ImportEpsGraphic().
Referenced by ImportGraphic().
|
static |
Definition at line 916 of file graphicfilter.cxx.
References ERRCODE_GRFILTER_FILTERERROR, ERRCODE_NONE, ImportGIF(), and NativeGif.
Referenced by ImportGraphic().
|
static |
Definition at line 957 of file graphicfilter.cxx.
References DontSetLogsizeForJpeg, ERRCODE_GRFILTER_FILTERERROR, ERRCODE_NONE, BitmapEx::GetBitmap(), Graphic::GetBitmapExRef(), ImportJPEG(), NativeJpg, OnlyCreateBitmap, SvStream::Seek(), SetLogsizeForJpeg, SvStream::Tell(), and UseExistingBitmap.
Referenced by ImportGraphic().
|
static |
Definition at line 1183 of file graphicfilter.cxx.
References ERRCODE_GRFILTER_FILTERERROR, ERRCODE_NONE, ImportMetGraphic(), and NativeMet.
Referenced by ImportGraphic().
Definition at line 1241 of file graphicfilter.cxx.
References ERRCODE_GRFILTER_FILTERERROR, ERRCODE_NONE, and ImportPbmGraphic().
Referenced by ImportGraphic().
Definition at line 1226 of file graphicfilter.cxx.
References ERRCODE_GRFILTER_FILTERERROR, ERRCODE_NONE, ImportPcdGraphic(), and utl::ConfigManager::IsFuzzing().
Referenced by ImportGraphic().
Definition at line 1202 of file graphicfilter.cxx.
References ERRCODE_GRFILTER_FILTERERROR, ERRCODE_NONE, and ImportPcxGraphic().
Referenced by ImportGraphic().
|
static |
Definition at line 1110 of file graphicfilter.cxx.
References ERRCODE_GRFILTER_FILTERERROR, ERRCODE_NONE, vcl::ImportPDF(), and NativePdf.
Referenced by ImportGraphic().
|
static |
Definition at line 1172 of file graphicfilter.cxx.
References ERRCODE_GRFILTER_FILTERERROR, ERRCODE_NONE, ImportPictGraphic(), and NativePct.
Referenced by ImportGraphic().
|
static |
Definition at line 927 of file graphicfilter.cxx.
References ERRCODE_GRFILTER_FILTERERROR, ERRCODE_NONE, Graphic::GetBitmapEx(), vcl::PngImageReader::getMicrosoftGifChunk(), ImportGIF(), BinaryDataContainer::isEmpty(), BitmapEx::IsEmpty(), NativeGif, NativePng, and vcl::PngImageReader::read().
Referenced by ImportGraphic().
Definition at line 1218 of file graphicfilter.cxx.
References ERRCODE_GRFILTER_FILTERERROR, ERRCODE_NONE, and ImportPsdGraphic().
Referenced by ImportGraphic().
Definition at line 1194 of file graphicfilter.cxx.
References ERRCODE_GRFILTER_FILTERERROR, ERRCODE_NONE, and ImportRasGraphic().
Referenced by ImportGraphic().
|
static |
Definition at line 985 of file graphicfilter.cxx.
References ZCodec::BeginCompression(), ZCodec::Decompress(), ZCodec::EndCompression(), ERRCODE_GRFILTER_FILTERERROR, ERRCODE_NONE, SvStream::GetError(), NativeSvg, SvStream::ReadBytes(), SvStream::remainingSize(), SvStream::Seek(), STREAM_SEEK_TO_BEGIN, Svg, SvStream::Tell(), and ZCODEC_DEFAULT_COMPRESSION.
Referenced by ImportGraphic().
Definition at line 1164 of file graphicfilter.cxx.
References ERRCODE_GRFILTER_FILTERERROR, ERRCODE_NONE, and ImportTgaGraphic().
Referenced by ImportGraphic().
|
static |
Definition at line 1121 of file graphicfilter.cxx.
References ERRCODE_GRFILTER_FILTERERROR, ERRCODE_NONE, ImportTiffGraphicImport(), and NativeTif.
Referenced by ImportGraphic().
|
static |
Definition at line 1257 of file graphicfilter.cxx.
References ERRCODE_GRFILTER_FILTERERROR, ERRCODE_NONE, ImportWebpGraphic(), NativeWebp, and supportNativeWebp().
Referenced by ImportGraphic().
|
static |
Definition at line 1132 of file graphicfilter.cxx.
References o3tl::equalsIgnoreAsciiCase(), ERRCODE_GRFILTER_FILTERERROR, ERRCODE_NONE, SvStream::GetError(), IMP_MOV, NativeMov, TypeSerializer::readGraphic(), SvStream::Seek(), Graphic::SetDefaultType(), STREAM_SEEK_TO_END, and u.
Referenced by ImportGraphic().
|
static |
Definition at line 1100 of file graphicfilter.cxx.
References readWMF_EMF(), and Wmf.
Referenced by ImportGraphic().
|
static |
Definition at line 1065 of file graphicfilter.cxx.
References ZCodec::BeginCompression(), ZCodec::Decompress(), ZCodec::EndCompression(), ERRCODE_GRFILTER_FILTERERROR, ERRCODE_NONE, eType, SvStream::GetError(), ZCodec::IsZCompressed(), NativeWmf, SvStream::remainingSize(), SvStream::Seek(), STREAM_SEEK_TO_BEGIN, and ZCODEC_DEFAULT_COMPRESSION.
Definition at line 1049 of file graphicfilter.cxx.
References ERRCODE_GRFILTER_FILTERERROR, ERRCODE_NONE, and ImportXBM().
Referenced by ImportGraphic().
Definition at line 1057 of file graphicfilter.cxx.
References ERRCODE_GRFILTER_FILTERERROR, ERRCODE_NONE, and ImportXPM().
Referenced by ImportGraphic().
void GraphicFilter::ResetLastError | ( | ) |
Definition at line 1809 of file graphicfilter.cxx.
References ERRCODE_NONE, and mxErrorEx.
Referenced by ExportGraphic(), ImportGraphic(), ImportGraphics(), and ImportUnloadedGraphic().
|
private |
Definition at line 339 of file graphicfilter.hxx.
Referenced by ImplInit().
|
private |
Definition at line 350 of file graphicfilter.hxx.
Referenced by ImplInit().
|
private |
Information about errors during the GraphicFilter operation.
Definition at line 349 of file graphicfilter.hxx.
Referenced by ImplInit(), ImplSetError(), ResetLastError(), and ~GraphicFilter().
|
private |
Definition at line 340 of file graphicfilter.hxx.
Referenced by ExportGraphic(), GetExportFormatCount(), GetExportFormatMediaType(), GetExportFormatName(), GetExportFormatNumber(), GetExportFormatNumberForMediaType(), GetExportFormatNumberForShortName(), GetExportFormatNumberForTypeName(), GetExportFormatShortName(), GetExportInternalFilterName(), GetExportWildcard(), GetImportFormatCount(), GetImportFormatName(), GetImportFormatNumber(), GetImportFormatNumberForShortName(), GetImportFormatNumberForTypeName(), GetImportFormatShortName(), GetImportFormatTypeName(), GetImportWildcard(), ImplInit(), ImportGraphic(), ImportGraphics(), ImportUnloadedGraphic(), ImpTestOrFindFormat(), IsExportPixelFormat(), and ~GraphicFilter().