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 (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_uInt8GetData () const
 
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)
 
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::GfxLink ( )

Definition at line 29 of file gfxlink.cxx.

References meType, and NONE.

GfxLink::GfxLink ( std::unique_ptr< sal_uInt8[]>  pBuf,
sal_uInt32  nBufSize,
GfxLinkType  nType 
)
explicit

Definition at line 38 of file gfxlink.cxx.

References get(), and meType.

GfxLink::GfxLink ( BinaryDataContainer const &  rDataConainer,
GfxLinkType  nType 
)
explicit

Definition at line 48 of file gfxlink.cxx.

References meType.

Member Function Documentation

bool GfxLink::ExportNative ( SvStream rOStream) const
const sal_uInt8 * GfxLink::GetData ( ) const
const BinaryDataContainer& GfxLink::getDataContainer ( ) const
inline

Definition at line 89 of file gfxlink.hxx.

Referenced by ConvertGraphicToWMF().

sal_uInt32 GfxLink::GetDataSize ( ) const
inline
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==().

const MapMode& GfxLink::GetPrefMapMode ( ) const
inline
const Size& GfxLink::GetPrefSize ( ) const
inline
GfxLinkType GfxLink::GetType ( ) const
inline
sal_uInt32 GfxLink::GetUserId ( ) const
inline

Definition at line 84 of file gfxlink.hxx.

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

bool GfxLink::IsEMF ( ) const
bool GfxLink::IsNative ( ) const

Definition at line 91 of file gfxlink.cxx.

References meType, NativeFirst, and NativeLast.

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

bool GfxLink::IsPrefMapModeValid ( ) const
inline

Definition at line 100 of file gfxlink.hxx.

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

bool GfxLink::IsPrefSizeValid ( ) const
inline

Definition at line 96 of file gfxlink.hxx.

Referenced by TypeSerializer::readGraphic().

bool GfxLink::LoadNative ( Graphic rGraphic)
bool GfxLink::operator== ( const GfxLink rGfxLink) const

Definition at line 69 of file gfxlink.cxx.

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

void GfxLink::SetPrefMapMode ( const MapMode rPrefMapMode)

Definition at line 107 of file gfxlink.cxx.

References maPrefMapMode, and mbPrefMapModeValid.

Referenced by TypeSerializer::readGfxLink().

void GfxLink::SetPrefSize ( const Size rPrefSize)

Definition at line 101 of file gfxlink.cxx.

References maPrefSize, and mbPrefSizeValid.

Referenced by TypeSerializer::readGfxLink().

void GfxLink::SetUserId ( sal_uInt32  nUserId)
inline

Definition at line 83 of file gfxlink.hxx.

Referenced by TypeSerializer::readGfxLink().

Member Data Documentation

BinaryDataContainer GfxLink::maDataContainer
private

Definition at line 65 of file gfxlink.hxx.

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

size_t GfxLink::maHash
mutableprivate

Definition at line 66 of file gfxlink.hxx.

Referenced by GetHash().

MapMode GfxLink::maPrefMapMode
private

Definition at line 67 of file gfxlink.hxx.

Referenced by SetPrefMapMode().

Size GfxLink::maPrefSize
private

Definition at line 68 of file gfxlink.hxx.

Referenced by SetPrefSize().

bool GfxLink::mbPrefMapModeValid
private

Definition at line 69 of file gfxlink.hxx.

Referenced by SetPrefMapMode().

bool GfxLink::mbPrefSizeValid
private

Definition at line 70 of file gfxlink.hxx.

Referenced by SetPrefSize().

GfxLinkType GfxLink::meType
private

Definition at line 63 of file gfxlink.hxx.

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

sal_uInt32 GfxLink::mnUserId
private

Definition at line 64 of file gfxlink.hxx.


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