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

#include <graph.hxx>

Public Member Functions

SAL_DLLPRIVATE ImpGraphicImplGetImpGraphic () const
 
 Graphic ()
 
 Graphic (const GraphicExternalLink &rGraphicLink)
 
 Graphic (const Graphic &rGraphic)
 
 Graphic (Graphic &&rGraphic) noexcept
 
 Graphic (const Image &rImage)
 
 Graphic (const BitmapEx &rBmpEx)
 
 Graphic (const std::shared_ptr< VectorGraphicData > &rVectorGraphicDataPtr)
 
 Graphic (const Animation &rAnimation)
 
 Graphic (const GDIMetaFile &rMtf)
 
 Graphic (const css::uno::Reference< css::graphic::XGraphic > &rxGraphic)
 
Graphicoperator= (const Graphic &rGraphic)
 
Graphicoperator= (Graphic &&rGraphic) noexcept
 
bool operator== (const Graphic &rGraphic) const
 
bool operator!= (const Graphic &rGraphic) const
 
bool IsNone () const
 
void Clear ()
 
GraphicType GetType () const
 
void SetDefaultType ()
 
bool IsSupportedGraphic () const
 
bool IsTransparent () const
 
bool IsAlpha () const
 
bool IsAnimated () const
 
bool IsEPS () const
 
bool isAvailable () const
 
bool makeAvailable ()
 
BitmapEx GetBitmapEx (const GraphicConversionParameters &rParameters=GraphicConversionParameters()) const
 
const BitmapExGetBitmapExRef () const
 Gives direct access to the contained BitmapEx. More...
 
Animation GetAnimation () const
 
const GDIMetaFileGetGDIMetaFile () const
 
css::uno::Reference< css::graphic::XGraphic > GetXGraphic () const
 
Size GetPrefSize () const
 
void SetPrefSize (const Size &rPrefSize)
 
MapMode GetPrefMapMode () const
 
void SetPrefMapMode (const MapMode &rPrefMapMode)
 
basegfx::B2DSize GetPPI () const
 
Size GetSizePixel (const OutputDevice *pRefDevice=nullptr) const
 
sal_uLong GetSizeBytes () const
 
void Draw (OutputDevice *pOutDev, const Point &rDestPt) const
 
void Draw (OutputDevice *pOutDev, const Point &rDestPt, const Size &rDestSize) const
 
void StartAnimation (OutputDevice *pOutDev, const Point &rDestPt, const Size &rDestSize, long nExtraData=0, OutputDevice *pFirstFrameOutDev=nullptr)
 
void StopAnimation (const OutputDevice *pOutputDevice, long nExtraData)
 
void SetAnimationNotifyHdl (const Link< Animation *, void > &rLink)
 
Link< Animation *, voidGetAnimationNotifyHdl () const
 
sal_uInt32 GetAnimationLoopCount () const
 
BitmapChecksum GetChecksum () const
 
OUString getOriginURL () const
 
void setOriginURL (OUString const &rOriginURL)
 
OString getUniqueID () const
 
std::shared_ptr< GraphicReader > & GetReaderContext ()
 
void SetReaderContext (const std::shared_ptr< GraphicReader > &pReader)
 
void SetDummyContext (bool value)
 
bool IsDummyContext () const
 
void SetGfxLink (const std::shared_ptr< GfxLink > &rGfxLink)
 
std::shared_ptr< GfxLinkGetSharedGfxLink () const
 
GfxLink GetGfxLink () const
 
bool IsGfxLink () const
 
bool ExportNative (SvStream &rOStream) const
 
const std::shared_ptr< VectorGraphicData > & getVectorGraphicData () const
 
sal_Int32 getPageNumber () const
 Get the page number of the multi-page source this Graphic is rendered from. More...
 

Static Public Member Functions

static void DrawEx (OutputDevice *pOutDev, const OUString &rText, vcl::Font &rFont, const BitmapEx &rBitmap, const Point &rDestPt, const Size &rDestSize)
 
static css::uno::Sequence< sal_Int8getUnoTunnelId ()
 

Private Member Functions

SAL_DLLPRIVATE void ImplTestRefCount ()
 

Private Attributes

std::shared_ptr< ImpGraphicmxImpGraphic
 

Friends

VCL_DLLPUBLIC void WriteGraphic (SvStream &rOStream, const Graphic &rGraphic)
 
VCL_DLLPUBLIC void ReadGraphic (SvStream &rIStream, Graphic &rGraphic)
 

Detailed Description

Definition at line 82 of file graph.hxx.

Constructor & Destructor Documentation

Graphic::Graphic ( )

Definition at line 162 of file graph.cxx.

References get(), and graphic.

Graphic::Graphic ( const GraphicExternalLink rGraphicLink)
Graphic::Graphic ( const Graphic rGraphic)
Graphic::Graphic ( Graphic &&  rGraphic)
noexcept

Definition at line 175 of file graph.cxx.

Graphic::Graphic ( const Image rImage)

Definition at line 192 of file graph.cxx.

References Image::GetStock(), make_shared(), and mxImpGraphic.

Graphic::Graphic ( const BitmapEx rBmpEx)

Definition at line 185 of file graph.cxx.

References get(), and graphic.

Graphic::Graphic ( const std::shared_ptr< VectorGraphicData > &  rVectorGraphicDataPtr)

Definition at line 201 of file graph.cxx.

References get(), and graphic.

Graphic::Graphic ( const Animation rAnimation)

Definition at line 206 of file graph.cxx.

References get(), and graphic.

Graphic::Graphic ( const GDIMetaFile rMtf)

Definition at line 211 of file graph.cxx.

References get(), and graphic.

Graphic::Graphic ( const css::uno::Reference< css::graphic::XGraphic > &  rxGraphic)

Member Function Documentation

void Graphic::Clear ( )

Definition at line 283 of file graph.cxx.

References ImplTestRefCount(), and mxImpGraphic.

Referenced by GraphicFilter::ImportGraphic(), and vcl::PageSyncData::PlaySyncPageAct().

void Graphic::Draw ( OutputDevice pOutDev,
const Point rDestPt 
) const

Definition at line 422 of file graph.cxx.

References mxImpGraphic.

Referenced by OutputDevice::DrawEPS(), and GraphicFilter::ExportGraphic().

void Graphic::Draw ( OutputDevice pOutDev,
const Point rDestPt,
const Size rDestSize 
) const

Definition at line 427 of file graph.cxx.

References Default, and mxImpGraphic.

void Graphic::DrawEx ( OutputDevice pOutDev,
const OUString &  rText,
vcl::Font rFont,
const BitmapEx rBitmap,
const Point rDestPt,
const Size rDestSize 
)
static

Definition at line 436 of file graph.cxx.

bool Graphic::ExportNative ( SvStream rOStream) const

Definition at line 518 of file graph.cxx.

References mxImpGraphic.

Animation Graphic::GetAnimation ( ) const

Definition at line 330 of file graph.cxx.

References mxImpGraphic.

Referenced by GraphicObject::GetTransformedGraphic(), and TypeSerializer::writeGraphic().

sal_uInt32 Graphic::GetAnimationLoopCount ( ) const

Definition at line 467 of file graph.cxx.

References mxImpGraphic.

Referenced by GraphicObject::GetTransformedGraphic().

Link< Animation *, void > Graphic::GetAnimationNotifyHdl ( ) const

Definition at line 462 of file graph.cxx.

References mxImpGraphic.

BitmapEx Graphic::GetBitmapEx ( const GraphicConversionParameters rParameters = GraphicConversionParameters()) const
const BitmapEx & Graphic::GetBitmapExRef ( ) const

Gives direct access to the contained BitmapEx.

Definition at line 340 of file graph.cxx.

References mxImpGraphic.

Referenced by GraphicFilter::ImportGraphic().

BitmapChecksum Graphic::GetChecksum ( ) const

Definition at line 513 of file graph.cxx.

References mxImpGraphic.

Referenced by std::hash< Graphic >::operator()().

const GDIMetaFile & Graphic::GetGDIMetaFile ( ) const
GfxLink Graphic::GetGfxLink ( ) const
OUString Graphic::getOriginURL ( ) const

Definition at line 544 of file graph.cxx.

References mxImpGraphic.

sal_Int32 Graphic::getPageNumber ( ) const

Get the page number of the multi-page source this Graphic is rendered from.

Definition at line 539 of file graph.cxx.

References mxImpGraphic.

basegfx::B2DSize Graphic::GetPPI ( ) const
MapMode Graphic::GetPrefMapMode ( ) const
Size Graphic::GetPrefSize ( ) const
std::shared_ptr< GraphicReader > & Graphic::GetReaderContext ( )

Definition at line 472 of file graph.cxx.

References mxImpGraphic.

Referenced by ImportGIF(), GraphicFilter::ImportGraphic(), ImportJPEG(), ImportXBM(), and ImportXPM().

std::shared_ptr< GfxLink > Graphic::GetSharedGfxLink ( ) const

Definition at line 498 of file graph.cxx.

References mxImpGraphic.

Referenced by TypeSerializer::writeGraphic().

sal_uLong Graphic::GetSizeBytes ( ) const

Definition at line 417 of file graph.cxx.

References mxImpGraphic.

Size Graphic::GetSizePixel ( const OutputDevice pRefDevice = nullptr) const
GraphicType Graphic::GetType ( ) const
OString Graphic::getUniqueID ( ) const

Definition at line 561 of file graph.cxx.

References mxImpGraphic.

Referenced by GraphicObject::GetUniqueID().

css::uno::Sequence< sal_Int8 > Graphic::getUnoTunnelId ( )
static

Definition at line 575 of file graph.cxx.

const std::shared_ptr< VectorGraphicData > & Graphic::getVectorGraphicData ( ) const
uno::Reference< graphic::XGraphic > Graphic::GetXGraphic ( ) const
SAL_DLLPRIVATE ImpGraphic* Graphic::ImplGetImpGraphic ( ) const
inline
void Graphic::ImplTestRefCount ( )
private
bool Graphic::IsAlpha ( ) const

Definition at line 310 of file graph.cxx.

References mxImpGraphic.

Referenced by GraphicObject::ImplDrawTiled().

bool Graphic::IsAnimated ( ) const
bool Graphic::isAvailable ( ) const

Definition at line 239 of file graph.cxx.

References mxImpGraphic.

bool Graphic::IsDummyContext ( ) const

Definition at line 487 of file graph.cxx.

References mxImpGraphic.

Referenced by GraphicFilter::ImportGraphic().

bool Graphic::IsEPS ( ) const

Definition at line 320 of file graph.cxx.

References mxImpGraphic.

Referenced by GraphicObject::IsEPS().

bool Graphic::IsGfxLink ( ) const
bool Graphic::IsNone ( ) const

Definition at line 278 of file graph.cxx.

References mxImpGraphic, and NONE.

Referenced by vcl::graphic::SearchForGraphics().

bool Graphic::IsSupportedGraphic ( ) const

Definition at line 300 of file graph.cxx.

References mxImpGraphic.

Referenced by GraphicObject::GetTransformedGraphic(), and TypeSerializer::writeGraphic().

bool Graphic::IsTransparent ( ) const

Definition at line 305 of file graph.cxx.

References mxImpGraphic.

Referenced by GraphicObject::IsTransparent().

bool Graphic::makeAvailable ( )

Definition at line 244 of file graph.cxx.

References mxImpGraphic.

Referenced by TypeSerializer::writeGraphic().

bool Graphic::operator!= ( const Graphic rGraphic) const

Definition at line 273 of file graph.cxx.

References mxImpGraphic.

Graphic & Graphic::operator= ( const Graphic rGraphic)
Graphic & Graphic::operator= ( Graphic &&  rGraphic)
noexcept

Definition at line 262 of file graph.cxx.

References mxImpGraphic.

bool Graphic::operator== ( const Graphic rGraphic) const

Definition at line 268 of file graph.cxx.

References mxImpGraphic.

void Graphic::SetAnimationNotifyHdl ( const Link< Animation *, void > &  rLink)

Definition at line 457 of file graph.cxx.

References mxImpGraphic.

void Graphic::SetDefaultType ( )

Definition at line 294 of file graph.cxx.

References ImplTestRefCount(), and mxImpGraphic.

Referenced by GraphicFilter::ImportGraphic().

void Graphic::SetDummyContext ( bool  value)

Definition at line 482 of file graph.cxx.

References mxImpGraphic.

Referenced by GraphicFilter::ImportGraphic().

void Graphic::SetGfxLink ( const std::shared_ptr< GfxLink > &  rGfxLink)
void Graphic::setOriginURL ( OUString const &  rOriginURL)

Definition at line 553 of file graph.cxx.

References mxImpGraphic.

void Graphic::SetPrefMapMode ( const MapMode rPrefMapMode)
void Graphic::SetPrefSize ( const Size rPrefSize)
void Graphic::SetReaderContext ( const std::shared_ptr< GraphicReader > &  pReader)

Definition at line 477 of file graph.cxx.

References mxImpGraphic.

Referenced by ImportGIF(), ImportJPEG(), ImportXBM(), and ImportXPM().

void Graphic::StartAnimation ( OutputDevice pOutDev,
const Point rDestPt,
const Size rDestSize,
long  nExtraData = 0,
OutputDevice pFirstFrameOutDev = nullptr 
)

Definition at line 443 of file graph.cxx.

References ImplTestRefCount(), and mxImpGraphic.

void Graphic::StopAnimation ( const OutputDevice pOutputDevice,
long  nExtraData 
)

Definition at line 451 of file graph.cxx.

References ImplTestRefCount(), and mxImpGraphic.

Friends And Related Function Documentation

VCL_DLLPUBLIC void ReadGraphic ( SvStream rIStream,
Graphic rGraphic 
)
friend

Definition at line 523 of file graph.cxx.

VCL_DLLPUBLIC void WriteGraphic ( SvStream rOStream,
const Graphic rGraphic 
)
friend

Definition at line 529 of file graph.cxx.

Member Data Documentation

std::shared_ptr<ImpGraphic> Graphic::mxImpGraphic
private

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