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

#include <graph.hxx>

Public Member Functions

SAL_DLLPRIVATE ImpGraphicImplGetImpGraphic () const
 
 Graphic ()
 
 Graphic (std::shared_ptr< GfxLink > const &rGfxLink, sal_Int32 nPageIndex=0)
 
 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 &rOutDev, const Point &rDestPt) const
 
void Draw (OutputDevice &rOutDev, const Point &rDestPt, const Size &rDestSize) const
 
void StartAnimation (OutputDevice &rOutDev, const Point &rDestPt, const Size &rDestSize, tools::Long nExtraData=0, OutputDevice *pFirstFrameOutDev=nullptr)
 
void StopAnimation (const OutputDevice *pOutputDevice, tools::Long nExtraData)
 
void SetAnimationNotifyHdl (const Link< Animation *, void > &rLink)
 
Link< Animation *, void > GetAnimationNotifyHdl () 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)
 
const std::shared_ptr< GfxLink > & GetSharedGfxLink () const
 
GfxLink GetGfxLink () const
 
bool IsGfxLink () 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 &rOutDev, const OUString &rText, vcl::Font &rFont, const BitmapEx &rBitmap, const Point &rDestPt, const Size &rDestSize)
 

Private Member Functions

SAL_DLLPRIVATE void ImplTestRefCount ()
 

Private Attributes

std::shared_ptr< ImpGraphicmxImpGraphic
 

Detailed Description

Definition at line 82 of file graph.hxx.

Constructor & Destructor Documentation

◆ Graphic() [1/11]

Graphic::Graphic ( )

Definition at line 161 of file graph.cxx.

References get().

◆ Graphic() [2/11]

Graphic::Graphic ( std::shared_ptr< GfxLink > const &  rGfxLink,
sal_Int32  nPageIndex = 0 
)

Definition at line 179 of file graph.cxx.

References get().

◆ Graphic() [3/11]

Graphic::Graphic ( const GraphicExternalLink rGraphicLink)

Definition at line 184 of file graph.cxx.

References get().

◆ Graphic() [4/11]

Graphic::Graphic ( const Graphic rGraphic)

◆ Graphic() [5/11]

Graphic::Graphic ( Graphic &&  rGraphic)
noexcept

Definition at line 174 of file graph.cxx.

◆ Graphic() [6/11]

Graphic::Graphic ( const Image rImage)

Definition at line 196 of file graph.cxx.

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

◆ Graphic() [7/11]

Graphic::Graphic ( const BitmapEx rBmpEx)

Definition at line 189 of file graph.cxx.

References get().

◆ Graphic() [8/11]

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

Definition at line 205 of file graph.cxx.

References get().

◆ Graphic() [9/11]

Graphic::Graphic ( const Animation rAnimation)

Definition at line 210 of file graph.cxx.

References get().

◆ Graphic() [10/11]

Graphic::Graphic ( const GDIMetaFile rMtf)

Definition at line 215 of file graph.cxx.

References get().

◆ Graphic() [11/11]

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

Member Function Documentation

◆ Clear()

void Graphic::Clear ( )

Definition at line 288 of file graph.cxx.

References ImplTestRefCount(), and mxImpGraphic.

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

◆ Draw() [1/2]

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

Definition at line 429 of file graph.cxx.

References mxImpGraphic.

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

◆ Draw() [2/2]

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

Definition at line 434 of file graph.cxx.

References Default, and mxImpGraphic.

◆ DrawEx()

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

Definition at line 443 of file graph.cxx.

◆ GetAnimation()

Animation Graphic::GetAnimation ( ) const

Definition at line 335 of file graph.cxx.

References mxImpGraphic.

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

◆ GetAnimationLoopCount()

sal_uInt32 Graphic::GetAnimationLoopCount ( ) const

Definition at line 474 of file graph.cxx.

References mxImpGraphic.

Referenced by GraphicObject::GetTransformedGraphic().

◆ GetAnimationNotifyHdl()

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

Definition at line 469 of file graph.cxx.

References mxImpGraphic.

◆ GetBitmapEx()

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

◆ GetBitmapExRef()

const BitmapEx & Graphic::GetBitmapExRef ( ) const

Gives direct access to the contained BitmapEx.

Definition at line 345 of file graph.cxx.

References mxImpGraphic.

Referenced by GraphicFilter::readJPEG().

◆ GetChecksum()

BitmapChecksum Graphic::GetChecksum ( ) const

Definition at line 520 of file graph.cxx.

References mxImpGraphic.

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

◆ GetGDIMetaFile()

const GDIMetaFile & Graphic::GetGDIMetaFile ( ) const

◆ GetGfxLink()

GfxLink Graphic::GetGfxLink ( ) const

◆ getOriginURL()

OUString Graphic::getOriginURL ( ) const

◆ getPageNumber()

sal_Int32 Graphic::getPageNumber ( ) const

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

Definition at line 530 of file graph.cxx.

References mxImpGraphic.

◆ GetPPI()

basegfx::B2DSize Graphic::GetPPI ( ) const

◆ GetPrefMapMode()

MapMode Graphic::GetPrefMapMode ( ) const

◆ GetPrefSize()

Size Graphic::GetPrefSize ( ) const

◆ GetReaderContext()

std::shared_ptr< GraphicReader > & Graphic::GetReaderContext ( )

Definition at line 479 of file graph.cxx.

References mxImpGraphic.

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

◆ GetSharedGfxLink()

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

Definition at line 505 of file graph.cxx.

References mxImpGraphic.

Referenced by TypeSerializer::writeGraphic().

◆ GetSizeBytes()

sal_uLong Graphic::GetSizeBytes ( ) const

Definition at line 424 of file graph.cxx.

References mxImpGraphic.

◆ GetSizePixel()

Size Graphic::GetSizePixel ( const OutputDevice pRefDevice = nullptr) const

◆ GetType()

GraphicType Graphic::GetType ( ) const

◆ getUniqueID()

OString Graphic::getUniqueID ( ) const

Definition at line 552 of file graph.cxx.

References mxImpGraphic.

Referenced by GraphicObject::GetUniqueID().

◆ getVectorGraphicData()

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

◆ GetXGraphic()

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

◆ ImplGetImpGraphic()

SAL_DLLPRIVATE ImpGraphic * Graphic::ImplGetImpGraphic ( ) const
inline

Definition at line 89 of file graph.hxx.

Referenced by GraphicFilter::ImportUnloadedGraphic(), and ImpGraphic::swapIn().

◆ ImplTestRefCount()

void Graphic::ImplTestRefCount ( )
private

◆ IsAlpha()

bool Graphic::IsAlpha ( ) const

Definition at line 315 of file graph.cxx.

References mxImpGraphic.

◆ IsAnimated()

bool Graphic::IsAnimated ( ) const

◆ isAvailable()

bool Graphic::isAvailable ( ) const

Definition at line 244 of file graph.cxx.

References mxImpGraphic.

◆ IsDummyContext()

bool Graphic::IsDummyContext ( ) const

Definition at line 494 of file graph.cxx.

References mxImpGraphic.

Referenced by GraphicFilter::ImportGraphic().

◆ IsEPS()

bool Graphic::IsEPS ( ) const

Definition at line 325 of file graph.cxx.

References mxImpGraphic.

Referenced by GraphicObject::IsEPS().

◆ IsGfxLink()

bool Graphic::IsGfxLink ( ) const

◆ IsNone()

bool Graphic::IsNone ( ) const

Definition at line 283 of file graph.cxx.

References mxImpGraphic, and NONE.

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

◆ IsSupportedGraphic()

bool Graphic::IsSupportedGraphic ( ) const

Definition at line 305 of file graph.cxx.

References mxImpGraphic.

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

◆ IsTransparent()

bool Graphic::IsTransparent ( ) const

Definition at line 310 of file graph.cxx.

References mxImpGraphic.

Referenced by GraphicObject::IsTransparent().

◆ makeAvailable()

bool Graphic::makeAvailable ( )

Definition at line 249 of file graph.cxx.

References mxImpGraphic.

Referenced by TypeSerializer::writeGraphic().

◆ operator!=()

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

Definition at line 278 of file graph.cxx.

References mxImpGraphic.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

Definition at line 267 of file graph.cxx.

◆ operator==()

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

Definition at line 273 of file graph.cxx.

References mxImpGraphic.

◆ SetAnimationNotifyHdl()

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

Definition at line 464 of file graph.cxx.

References mxImpGraphic.

◆ SetDefaultType()

void Graphic::SetDefaultType ( )

Definition at line 299 of file graph.cxx.

References ImplTestRefCount(), and mxImpGraphic.

Referenced by GraphicFilter::readWithTypeSerializer().

◆ SetDummyContext()

void Graphic::SetDummyContext ( bool  value)

Definition at line 489 of file graph.cxx.

References mxImpGraphic, and value.

Referenced by GraphicFilter::ImportGraphic().

◆ SetGfxLink()

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

◆ setOriginURL()

void Graphic::setOriginURL ( OUString const &  rOriginURL)

◆ SetPrefMapMode()

void Graphic::SetPrefMapMode ( const MapMode rPrefMapMode)

◆ SetPrefSize()

void Graphic::SetPrefSize ( const Size rPrefSize)

◆ SetReaderContext()

void Graphic::SetReaderContext ( const std::shared_ptr< GraphicReader > &  pReader)

Definition at line 484 of file graph.cxx.

References mxImpGraphic.

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

◆ StartAnimation()

void Graphic::StartAnimation ( OutputDevice rOutDev,
const Point rDestPt,
const Size rDestSize,
tools::Long  nExtraData = 0,
OutputDevice pFirstFrameOutDev = nullptr 
)

Definition at line 450 of file graph.cxx.

References ImplTestRefCount(), and mxImpGraphic.

◆ StopAnimation()

void Graphic::StopAnimation ( const OutputDevice pOutputDevice,
tools::Long  nExtraData 
)

Definition at line 458 of file graph.cxx.

References ImplTestRefCount(), and mxImpGraphic.

Member Data Documentation

◆ mxImpGraphic

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

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