LibreOffice Module vcl (master)  1
Public Member Functions | Private Member Functions | Private Attributes | Friends | 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)
 
bool operator== (const GfxLink &) const
 
GfxLinkType GetType () const
 
void SetUserId (sal_uInt32 nUserId)
 
sal_uInt32 GetUserId () const
 
sal_uInt32 GetDataSize () const
 
const sal_uInt8GetData () 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 Member Functions

SAL_DLLPRIVATE std::shared_ptr< sal_uInt8GetSwapInData () const
 

Private Attributes

GfxLinkType meType
 
sal_uInt32 mnUserId
 
std::shared_ptr< sal_uInt8mpSwapInData
 
sal_uInt32 mnSwapInDataSize
 
MapMode maPrefMapMode
 
Size maPrefSize
 
bool mbPrefMapModeValid
 
bool mbPrefSizeValid
 

Friends

SvStreamWriteGfxLink (SvStream &rOStream, const GfxLink &rGfxLink)
 
SvStreamReadGfxLink (SvStream &rIStream, GfxLink &rGfxLink)
 

Detailed Description

Definition at line 53 of file gfxlink.hxx.

Constructor & Destructor Documentation

GfxLink::GfxLink ( )

Definition at line 30 of file gfxlink.cxx.

References meType, and NONE.

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

Definition at line 39 of file gfxlink.cxx.

References meType, mnSwapInDataSize, mpSwapInData, and SAL_WARN_IF.

Member Function Documentation

bool GfxLink::ExportNative ( SvStream rOStream) const
const sal_uInt8 * GfxLink::GetData ( ) const
sal_uInt32 GfxLink::GetDataSize ( ) const
inline
const MapMode& GfxLink::GetPrefMapMode ( ) const
inline

Definition at line 88 of file gfxlink.hxx.

Referenced by ReadImpGraphic(), and WriteGfxLink().

const Size& GfxLink::GetPrefSize ( ) const
inline

Definition at line 84 of file gfxlink.hxx.

Referenced by ReadImpGraphic(), and WriteGfxLink().

std::shared_ptr< sal_uInt8 > GfxLink::GetSwapInData ( ) const
private

Definition at line 219 of file gfxlink.cxx.

References mpSwapInData.

Referenced by ExportNative(), and WriteGfxLink().

GfxLinkType GfxLink::GetType ( ) const
inline
sal_uInt32 GfxLink::GetUserId ( ) const
inline

Definition at line 79 of file gfxlink.hxx.

Referenced by WriteGfxLink().

bool GfxLink::IsEMF ( ) const

Definition at line 224 of file gfxlink.cxx.

References GetData(), GetDataSize(), GetType(), and NativeWmf.

bool GfxLink::IsNative ( ) const

Definition at line 72 of file gfxlink.cxx.

References GFX_LINK_FIRST_NATIVE_ID, GFX_LINK_LAST_NATIVE_ID, and meType.

Referenced by LoadNative().

bool GfxLink::IsPrefMapModeValid ( ) const
inline

Definition at line 90 of file gfxlink.hxx.

Referenced by ReadImpGraphic().

bool GfxLink::IsPrefSizeValid ( ) const
inline

Definition at line 86 of file gfxlink.hxx.

Referenced by ReadImpGraphic().

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

Definition at line 51 of file gfxlink.cxx.

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

void GfxLink::SetPrefMapMode ( const MapMode rPrefMapMode)

Definition at line 91 of file gfxlink.cxx.

References maPrefMapMode, and mbPrefMapModeValid.

Referenced by ReadGfxLink().

void GfxLink::SetPrefSize ( const Size rPrefSize)

Definition at line 84 of file gfxlink.cxx.

References maPrefSize, and mbPrefSizeValid.

Referenced by ReadGfxLink().

void GfxLink::SetUserId ( sal_uInt32  nUserId)
inline

Definition at line 78 of file gfxlink.hxx.

Referenced by ReadGfxLink().

Friends And Related Function Documentation

SvStream& ReadGfxLink ( SvStream rIStream,
GfxLink rGfxLink 
)
friend

Definition at line 174 of file gfxlink.cxx.

SvStream& WriteGfxLink ( SvStream rOStream,
const GfxLink rGfxLink 
)
friend

Definition at line 150 of file gfxlink.cxx.

Member Data Documentation

MapMode GfxLink::maPrefMapMode
private

Definition at line 62 of file gfxlink.hxx.

Referenced by SetPrefMapMode().

Size GfxLink::maPrefSize
private

Definition at line 63 of file gfxlink.hxx.

Referenced by SetPrefSize().

bool GfxLink::mbPrefMapModeValid
private

Definition at line 64 of file gfxlink.hxx.

Referenced by SetPrefMapMode().

bool GfxLink::mbPrefSizeValid
private

Definition at line 65 of file gfxlink.hxx.

Referenced by SetPrefSize().

GfxLinkType GfxLink::meType
private

Definition at line 56 of file gfxlink.hxx.

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

sal_uInt32 GfxLink::mnSwapInDataSize
private

Definition at line 61 of file gfxlink.hxx.

Referenced by ExportNative(), GfxLink(), LoadNative(), operator==(), and WriteGfxLink().

sal_uInt32 GfxLink::mnUserId
private

Definition at line 57 of file gfxlink.hxx.

std::shared_ptr<sal_uInt8> GfxLink::mpSwapInData
mutableprivate

Definition at line 59 of file gfxlink.hxx.

Referenced by GetData(), GetSwapInData(), and GfxLink().


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