LibreOffice Module vcl (master) 1
|
#include <gfxlink.hxx>
Public Member Functions | |
GfxLink () | |
GfxLink (BinaryDataContainer aDataConainer, 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 |
size_t | getSizeBytes () const |
return the in-memory size as of now. More... | |
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 60 of file gfxlink.hxx.
GfxLink::GfxLink | ( | ) |
Definition at line 30 of file gfxlink.cxx.
|
explicit |
Definition at line 39 of file gfxlink.cxx.
bool GfxLink::ExportNative | ( | SvStream & | rOStream | ) | const |
Definition at line 145 of file gfxlink.cxx.
References ERRCODE_NONE, GetData(), GetDataSize(), SvStream::GetError(), pData, and SvStream::WriteBytes().
const sal_uInt8 * GfxLink::GetData | ( | ) | const |
Definition at line 87 of file gfxlink.cxx.
References BinaryDataContainer::getData(), and maDataContainer.
Referenced by ConvertGraphicToWMF(), OutputDevice::DrawEPS(), ExportNative(), SvmWriter::GetChecksum(), vcl::PDFExtOutDevData::HasAdequateCompression(), IsEMF(), LoadNative(), operator==(), vcl::PageSyncData::PlaySyncPageAct(), GraphicNativeMetadata::read(), GraphicNativeTransform::rotateJPEG(), TypeSerializer::writeGfxLink(), and MetafileXmlDump::writeXml().
|
inline |
Definition at line 91 of file gfxlink.hxx.
Referenced by ConvertGraphicToWMF().
|
inline |
Definition at line 85 of file gfxlink.hxx.
References BinaryDataContainer::getSize().
Referenced by ConvertGraphicToWMF(), OutputDevice::DrawEPS(), ExportNative(), SvmWriter::GetChecksum(), vcl::PDFExtOutDevData::HasAdequateCompression(), IsEMF(), LoadNative(), operator==(), vcl::PageSyncData::PlaySyncPageAct(), GraphicNativeMetadata::read(), GraphicNativeTransform::rotateJPEG(), TypeSerializer::writeGfxLink(), and MetafileXmlDump::writeXml().
size_t GfxLink::GetHash | ( | ) | const |
Definition at line 49 of file gfxlink.cxx.
References BinaryDataContainer::calculateHash(), o3tl::hash_combine(), maDataContainer, maHash, and meType.
Referenced by operator==().
|
inline |
Definition at line 100 of file gfxlink.hxx.
Referenced by TypeSerializer::readGraphic(), TypeSerializer::writeGfxLink(), and MetafileXmlDump::writeXml().
|
inline |
Definition at line 96 of file gfxlink.hxx.
Referenced by TypeSerializer::readGraphic(), TypeSerializer::writeGfxLink(), and MetafileXmlDump::writeXml().
|
inline |
return the in-memory size as of now.
Definition at line 89 of file gfxlink.hxx.
References BinaryDataContainer::getSizeBytes().
|
inline |
Definition at line 78 of file gfxlink.hxx.
References meType.
Referenced by unographic::GraphicDescriptor::_getPropertyValues(), ConvertGraphicToWMF(), vcl::PDFExtOutDevData::HasAdequateCompression(), vcl::PDFWriterImpl::implWriteBitmapEx(), IsEMF(), vcl::PageSyncData::PlaySyncPageAct(), GraphicNativeMetadata::read(), GraphicNativeTransform::rotate(), TypeSerializer::writeGfxLink(), and MetafileXmlDump::writeXml().
|
inline |
Definition at line 83 of file gfxlink.hxx.
Referenced by TypeSerializer::writeGfxLink(), and MetafileXmlDump::writeXml().
bool GfxLink::IsEMF | ( | ) | const |
Definition at line 157 of file gfxlink.cxx.
References GetData(), GetDataSize(), GetType(), and NativeWmf.
Referenced by unographic::GraphicDescriptor::_getPropertyValues(), ConvertGraphicToWMF(), GraphicFilter::ExportGraphic(), and MetafileXmlDump::writeXml().
bool GfxLink::IsNative | ( | ) | const |
Definition at line 82 of file gfxlink.cxx.
References meType, NativeFirst, and NativeLast.
Referenced by LoadNative(), and MetafileXmlDump::writeXml().
|
inline |
Definition at line 102 of file gfxlink.hxx.
Referenced by TypeSerializer::readGraphic(), and MetafileXmlDump::writeXml().
|
inline |
Definition at line 98 of file gfxlink.hxx.
Referenced by TypeSerializer::readGraphic().
bool GfxLink::LoadNative | ( | Graphic & | rGraphic | ) | const |
Definition at line 104 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 60 of file gfxlink.cxx.
References GetData(), GetDataSize(), GetHash(), and meType.
void GfxLink::SetPrefMapMode | ( | const MapMode & | rPrefMapMode | ) |
Definition at line 98 of file gfxlink.cxx.
References maPrefMapMode, and mbPrefMapModeValid.
Referenced by TypeSerializer::readGfxLink().
void GfxLink::SetPrefSize | ( | const Size & | rPrefSize | ) |
Definition at line 92 of file gfxlink.cxx.
References maPrefSize, and mbPrefSizeValid.
Referenced by TypeSerializer::readGfxLink().
|
inline |
Definition at line 82 of file gfxlink.hxx.
Referenced by TypeSerializer::readGfxLink().
|
private |
Definition at line 65 of file gfxlink.hxx.
Referenced by GetData(), GetHash(), and LoadNative().
|
mutableprivate |
Definition at line 66 of file gfxlink.hxx.
Referenced by GetHash().
|
private |
Definition at line 67 of file gfxlink.hxx.
Referenced by SetPrefMapMode().
|
private |
Definition at line 68 of file gfxlink.hxx.
Referenced by SetPrefSize().
|
private |
Definition at line 69 of file gfxlink.hxx.
Referenced by SetPrefMapMode().
|
private |
Definition at line 70 of file gfxlink.hxx.
Referenced by SetPrefSize().
|
private |
Definition at line 63 of file gfxlink.hxx.
Referenced by GetHash(), IsNative(), LoadNative(), and operator==().
|
private |
Definition at line 64 of file gfxlink.hxx.