LibreOffice Module vcl (master)
1
|
#include <gfxlink.hxx>
Public Member Functions | |
GfxLink () | |
GfxLink (std::unique_ptr< sal_uInt8[]> pBuf, sal_uInt32 nBufSize, GfxLinkType nType) | |
GfxLink (BinaryDataContainer const &rDataConainer, GfxLinkType nType) | |
bool | operator== (const GfxLink &) const |
GfxLinkType | GetType () const |
size_t | GetHash () const |
void | SetUserId (sal_uInt32 nUserId) |
sal_uInt32 | GetUserId () const |
sal_uInt32 | GetDataSize () const |
const sal_uInt8 * | GetData () const |
const BinaryDataContainer & | getDataContainer () const |
const Size & | GetPrefSize () const |
void | SetPrefSize (const Size &rPrefSize) |
bool | IsPrefSizeValid () const |
const MapMode & | GetPrefMapMode () const |
void | SetPrefMapMode (const MapMode &rPrefMapMode) |
bool | IsPrefMapModeValid () const |
bool | IsNative () const |
bool | LoadNative (Graphic &rGraphic) const |
bool | ExportNative (SvStream &rOStream) const |
bool | IsEMF () const |
Private Attributes | |
GfxLinkType | meType |
sal_uInt32 | mnUserId |
BinaryDataContainer | maDataContainer |
size_t | maHash |
MapMode | maPrefMapMode |
Size | maPrefSize |
bool | mbPrefMapModeValid |
bool | mbPrefSizeValid |
Definition at line 61 of file gfxlink.hxx.
GfxLink::GfxLink | ( | ) |
Definition at line 29 of file gfxlink.cxx.
|
explicit |
Definition at line 38 of file gfxlink.cxx.
|
explicit |
Definition at line 48 of file gfxlink.cxx.
bool GfxLink::ExportNative | ( | SvStream & | rOStream | ) | const |
Definition at line 154 of file gfxlink.cxx.
References ERRCODE_NONE, GetData(), GetDataSize(), SvStream::GetError(), pData, and SvStream::WriteBytes().
const sal_uInt8 * GfxLink::GetData | ( | ) | const |
Definition at line 96 of file gfxlink.cxx.
References BinaryDataContainer::getData(), and maDataContainer.
Referenced by ConvertGraphicToWMF(), OutputDevice::DrawEPS(), ExportNative(), SvmWriter::GetChecksum(), vcl::PDFExtOutDevData::HasAdequateCompression(), IsEMF(), LoadNative(), operator==(), GraphicNativeMetadata::read(), GraphicNativeTransform::rotateJPEG(), TypeSerializer::writeGfxLink(), and MetafileXmlDump::writeXml().
|
inline |
Definition at line 90 of file gfxlink.hxx.
Referenced by ConvertGraphicToWMF().
|
inline |
Definition at line 87 of file gfxlink.hxx.
References BinaryDataContainer::getSize().
Referenced by ConvertGraphicToWMF(), OutputDevice::DrawEPS(), ExportNative(), SvmWriter::GetChecksum(), vcl::PDFExtOutDevData::HasAdequateCompression(), IsEMF(), LoadNative(), operator==(), GraphicNativeMetadata::read(), GraphicNativeTransform::rotateJPEG(), TypeSerializer::writeGfxLink(), and MetafileXmlDump::writeXml().
size_t GfxLink::GetHash | ( | ) | const |
Definition at line 58 of file gfxlink.cxx.
References BinaryDataContainer::calculateHash(), o3tl::hash_combine(), maDataContainer, maHash, and meType.
Referenced by operator==().
|
inline |
Definition at line 99 of file gfxlink.hxx.
Referenced by TypeSerializer::readGraphic(), TypeSerializer::writeGfxLink(), and MetafileXmlDump::writeXml().
|
inline |
Definition at line 95 of file gfxlink.hxx.
Referenced by TypeSerializer::readGraphic(), TypeSerializer::writeGfxLink(), and MetafileXmlDump::writeXml().
|
inline |
Definition at line 80 of file gfxlink.hxx.
Referenced by ConvertGraphicToWMF(), vcl::PDFExtOutDevData::HasAdequateCompression(), vcl::PDFWriterImpl::implWriteBitmapEx(), IsEMF(), vcl::PageSyncData::PlaySyncPageAct(), GraphicNativeMetadata::read(), GraphicNativeTransform::rotate(), TypeSerializer::writeGfxLink(), and MetafileXmlDump::writeXml().
|
inline |
Definition at line 85 of file gfxlink.hxx.
Referenced by TypeSerializer::writeGfxLink(), and MetafileXmlDump::writeXml().
bool GfxLink::IsEMF | ( | ) | const |
Definition at line 166 of file gfxlink.cxx.
References GetData(), GetDataSize(), GetType(), and NativeWmf.
Referenced by ConvertGraphicToWMF(), GraphicFilter::ExportGraphic(), and MetafileXmlDump::writeXml().
bool GfxLink::IsNative | ( | ) | const |
Definition at line 91 of file gfxlink.cxx.
References meType, NativeFirst, and NativeLast.
Referenced by LoadNative(), and MetafileXmlDump::writeXml().
|
inline |
Definition at line 101 of file gfxlink.hxx.
Referenced by TypeSerializer::readGraphic(), and MetafileXmlDump::writeXml().
|
inline |
Definition at line 97 of file gfxlink.hxx.
Referenced by TypeSerializer::readGraphic().
bool GfxLink::LoadNative | ( | Graphic & | rGraphic | ) | const |
Definition at line 113 of file gfxlink.cxx.
References BMP_SHORTNAME, ERRCODE_NONE, GetData(), GetDataSize(), GraphicFilter::GetGraphicFilter(), GraphicFilter::GetImportFormatNumberForShortName(), GIF_SHORTNAME, GraphicFilter::ImportGraphic(), BinaryDataContainer::isEmpty(), IsNative(), JPG_SHORTNAME, maDataContainer, MET_SHORTNAME, meType, NativeBmp, NativeGif, NativeJpg, NativeMet, NativePct, NativePdf, NativePng, NativeSvg, NativeTif, NativeWebp, NativeWmf, PCT_SHORTNAME, pData, PDF_SHORTNAME, PNG_SHORTNAME, SVG_SHORTNAME, TIF_SHORTNAME, u, WEBP_SHORTNAME, and WMF_SHORTNAME.
Referenced by TypeSerializer::readGraphic().
bool GfxLink::operator== | ( | const GfxLink & | rGfxLink | ) | const |
Definition at line 69 of file gfxlink.cxx.
References GetData(), GetDataSize(), GetHash(), and meType.
Definition at line 107 of file gfxlink.cxx.
References maPrefMapMode, and mbPrefMapModeValid.
Referenced by TypeSerializer::readGfxLink().
Definition at line 101 of file gfxlink.cxx.
References maPrefSize, and mbPrefSizeValid.
Referenced by TypeSerializer::readGfxLink().
|
inline |
Definition at line 84 of file gfxlink.hxx.
Referenced by TypeSerializer::readGfxLink().
|
private |
Definition at line 66 of file gfxlink.hxx.
Referenced by GetData(), GetHash(), and LoadNative().
|
mutableprivate |
Definition at line 67 of file gfxlink.hxx.
Referenced by GetHash().
|
private |
Definition at line 68 of file gfxlink.hxx.
Referenced by SetPrefMapMode().
|
private |
Definition at line 69 of file gfxlink.hxx.
Referenced by SetPrefSize().
|
private |
Definition at line 70 of file gfxlink.hxx.
Referenced by SetPrefMapMode().
|
private |
Definition at line 71 of file gfxlink.hxx.
Referenced by SetPrefSize().
|
private |
Definition at line 64 of file gfxlink.hxx.
Referenced by GetHash(), IsNative(), LoadNative(), and operator==().
|
private |
Definition at line 65 of file gfxlink.hxx.