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

#include <gfxlink.hxx>

Collaboration diagram for GfxLink:
[legend]

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_uInt8GetData () const
 
size_t getSizeBytes () const
 return the in-memory size as of now. More...
 
const BinaryDataContainergetDataContainer () const
 
const SizeGetPrefSize () const
 
void SetPrefSize (const Size &rPrefSize)
 
bool IsPrefSizeValid () const
 
const MapModeGetPrefMapMode () 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
 

Detailed Description

Definition at line 60 of file gfxlink.hxx.

Constructor & Destructor Documentation

◆ GfxLink() [1/2]

GfxLink::GfxLink ( )

Definition at line 30 of file gfxlink.cxx.

References meType, and NONE.

◆ GfxLink() [2/2]

GfxLink::GfxLink ( BinaryDataContainer  aDataConainer,
GfxLinkType  nType 
)
explicit

Definition at line 39 of file gfxlink.cxx.

References meType, and nType.

Member Function Documentation

◆ ExportNative()

bool GfxLink::ExportNative ( SvStream rOStream) const

◆ GetData()

const sal_uInt8 * GfxLink::GetData ( ) const

◆ getDataContainer()

const BinaryDataContainer & GfxLink::getDataContainer ( ) const
inline

Definition at line 91 of file gfxlink.hxx.

Referenced by ConvertGraphicToWMF().

◆ GetDataSize()

sal_uInt32 GfxLink::GetDataSize ( ) const
inline

◆ GetHash()

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==().

◆ GetPrefMapMode()

const MapMode & GfxLink::GetPrefMapMode ( ) const
inline

◆ GetPrefSize()

const Size & GfxLink::GetPrefSize ( ) const
inline

◆ getSizeBytes()

size_t GfxLink::getSizeBytes ( ) const
inline

return the in-memory size as of now.

Definition at line 89 of file gfxlink.hxx.

References BinaryDataContainer::getSizeBytes().

◆ GetType()

GfxLinkType GfxLink::GetType ( ) const
inline

◆ GetUserId()

sal_uInt32 GfxLink::GetUserId ( ) const
inline

Definition at line 83 of file gfxlink.hxx.

Referenced by TypeSerializer::writeGfxLink(), and MetafileXmlDump::writeXml().

◆ IsEMF()

bool GfxLink::IsEMF ( ) const

◆ IsNative()

bool GfxLink::IsNative ( ) const

Definition at line 82 of file gfxlink.cxx.

References meType, NativeFirst, and NativeLast.

Referenced by LoadNative(), and MetafileXmlDump::writeXml().

◆ IsPrefMapModeValid()

bool GfxLink::IsPrefMapModeValid ( ) const
inline

Definition at line 102 of file gfxlink.hxx.

Referenced by TypeSerializer::readGraphic(), and MetafileXmlDump::writeXml().

◆ IsPrefSizeValid()

bool GfxLink::IsPrefSizeValid ( ) const
inline

Definition at line 98 of file gfxlink.hxx.

Referenced by TypeSerializer::readGraphic().

◆ LoadNative()

bool GfxLink::LoadNative ( Graphic rGraphic) const

◆ operator==()

bool GfxLink::operator== ( const GfxLink rGfxLink) const

Definition at line 60 of file gfxlink.cxx.

References GetData(), GetDataSize(), GetHash(), and meType.

◆ SetPrefMapMode()

void GfxLink::SetPrefMapMode ( const MapMode rPrefMapMode)

Definition at line 98 of file gfxlink.cxx.

References maPrefMapMode, and mbPrefMapModeValid.

Referenced by TypeSerializer::readGfxLink().

◆ SetPrefSize()

void GfxLink::SetPrefSize ( const Size rPrefSize)

Definition at line 92 of file gfxlink.cxx.

References maPrefSize, and mbPrefSizeValid.

Referenced by TypeSerializer::readGfxLink().

◆ SetUserId()

void GfxLink::SetUserId ( sal_uInt32  nUserId)
inline

Definition at line 82 of file gfxlink.hxx.

Referenced by TypeSerializer::readGfxLink().

Member Data Documentation

◆ maDataContainer

BinaryDataContainer GfxLink::maDataContainer
private

Definition at line 65 of file gfxlink.hxx.

Referenced by GetData(), GetHash(), and LoadNative().

◆ maHash

size_t GfxLink::maHash
mutableprivate

Definition at line 66 of file gfxlink.hxx.

Referenced by GetHash().

◆ maPrefMapMode

MapMode GfxLink::maPrefMapMode
private

Definition at line 67 of file gfxlink.hxx.

Referenced by SetPrefMapMode().

◆ maPrefSize

Size GfxLink::maPrefSize
private

Definition at line 68 of file gfxlink.hxx.

Referenced by SetPrefSize().

◆ mbPrefMapModeValid

bool GfxLink::mbPrefMapModeValid
private

Definition at line 69 of file gfxlink.hxx.

Referenced by SetPrefMapMode().

◆ mbPrefSizeValid

bool GfxLink::mbPrefSizeValid
private

Definition at line 70 of file gfxlink.hxx.

Referenced by SetPrefSize().

◆ meType

GfxLinkType GfxLink::meType
private

Definition at line 63 of file gfxlink.hxx.

Referenced by GetHash(), IsNative(), LoadNative(), and operator==().

◆ mnUserId

sal_uInt32 GfxLink::mnUserId
private

Definition at line 64 of file gfxlink.hxx.


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