LibreOffice Module vcl (master)
1
|
#include <graph.hxx>
Public Member Functions | |
SAL_DLLPRIVATE ImpGraphic * | ImplGetImpGraphic () 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) | |
Graphic & | operator= (const Graphic &rGraphic) |
Graphic & | operator= (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 BitmapEx & | GetBitmapExRef () const |
Gives direct access to the contained BitmapEx. More... | |
Animation | GetAnimation () const |
const GDIMetaFile & | GetGDIMetaFile () 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) |
static const css::uno::Sequence< sal_Int8 > & | getUnoTunnelId () |
Private Member Functions | |
SAL_DLLPRIVATE void | ImplTestRefCount () |
Private Attributes | |
std::shared_ptr< ImpGraphic > | mxImpGraphic |
Graphic::Graphic | ( | std::shared_ptr< GfxLink > const & | rGfxLink, |
sal_Int32 | nPageIndex = 0 |
||
) |
Graphic::Graphic | ( | const GraphicExternalLink & | rGraphicLink | ) |
Graphic::Graphic | ( | const Graphic & | rGraphic | ) |
Definition at line 166 of file graph.cxx.
References vcl::graphic::Manager::copy(), vcl::graphic::Manager::get(), IsAnimated(), and mxImpGraphic.
Graphic::Graphic | ( | const Image & | rImage | ) |
Definition at line 196 of file graph.cxx.
References Image::GetStock(), make_shared(), and mxImpGraphic.
Graphic::Graphic | ( | const BitmapEx & | rBmpEx | ) |
Graphic::Graphic | ( | const std::shared_ptr< VectorGraphicData > & | rVectorGraphicDataPtr | ) |
Graphic::Graphic | ( | const Animation & | rAnimation | ) |
Graphic::Graphic | ( | const GDIMetaFile & | rMtf | ) |
Graphic::Graphic | ( | const css::uno::Reference< css::graphic::XGraphic > & | rxGraphic | ) |
Definition at line 220 of file graph.cxx.
References vcl::graphic::Manager::copy(), vcl::graphic::Manager::get(), mxImpGraphic, and vcl::graphic::Manager::newInstance().
void Graphic::Clear | ( | ) |
Definition at line 287 of file graph.cxx.
References ImplTestRefCount(), and mxImpGraphic.
Referenced by GraphicFilter::ImportGraphic(), and vcl::PageSyncData::PlaySyncPageAct().
void Graphic::Draw | ( | OutputDevice & | rOutDev, |
const Point & | rDestPt | ||
) | const |
Definition at line 428 of file graph.cxx.
References mxImpGraphic.
Referenced by OutputDevice::DrawEPS(), and GraphicFilter::ExportGraphic().
void Graphic::Draw | ( | OutputDevice & | rOutDev, |
const Point & | rDestPt, | ||
const Size & | rDestSize | ||
) | const |
Definition at line 433 of file graph.cxx.
References Default, and mxImpGraphic.
Animation Graphic::GetAnimation | ( | ) | const |
Definition at line 334 of file graph.cxx.
References mxImpGraphic.
Referenced by GraphicObject::GetTransformedGraphic(), and TypeSerializer::writeGraphic().
sal_uInt32 Graphic::GetAnimationLoopCount | ( | ) | const |
Definition at line 473 of file graph.cxx.
References mxImpGraphic.
Referenced by GraphicObject::GetTransformedGraphic().
Definition at line 468 of file graph.cxx.
References mxImpGraphic.
BitmapEx Graphic::GetBitmapEx | ( | const GraphicConversionParameters & | rParameters = GraphicConversionParameters() | ) | const |
Definition at line 329 of file graph.cxx.
References mxImpGraphic.
Referenced by BmpWriter(), vcl::PDFWriterImpl::drawJPGBitmap(), GraphicFilter::ExportGraphic(), ExportWebpGraphic(), unographic::Graphic::getDIB(), unographic::Graphic::getMaskDIB(), GraphicObject::GetTransformedGraphic(), ImpGetScaledGraphic(), vcl::PDFWriterImpl::implWriteBitmapEx(), MakeAsMeta(), readBitmapEx(), GraphicNativeTransform::rotateBitmapOnly(), GraphicNativeTransform::rotateGeneric(), GraphicNativeTransform::rotateJPEG(), JPEGWriter::Write(), and TypeSerializer::writeGraphic().
const BitmapEx & Graphic::GetBitmapExRef | ( | ) | const |
Gives direct access to the contained BitmapEx.
Definition at line 344 of file graph.cxx.
References mxImpGraphic.
Referenced by GraphicFilter::readJPEG().
BitmapChecksum Graphic::GetChecksum | ( | ) | const |
Definition at line 519 of file graph.cxx.
References mxImpGraphic.
Referenced by std::hash< Graphic >::operator()().
const GDIMetaFile & Graphic::GetGDIMetaFile | ( | ) | const |
Definition at line 339 of file graph.cxx.
References mxImpGraphic.
Referenced by ConvertGraphicToWMF(), GraphicFilter::ExportGraphic(), GraphicObject::GetTransformedGraphic(), ImpGetScaledGraphic(), ImportEpsGraphic(), and TypeSerializer::writeGraphic().
GfxLink Graphic::GetGfxLink | ( | ) | const |
Definition at line 509 of file graph.cxx.
References mxImpGraphic.
Referenced by ConvertGraphicToWMF(), GraphicFilter::ExportGraphic(), vcl::PDFExtOutDevData::HasAdequateCompression(), vcl::PDFWriterImpl::implWriteBitmapEx(), vcl::PageSyncData::PlaySyncPageAct(), GraphicNativeMetadata::read(), GraphicNativeTransform::rotate(), and GraphicNativeTransform::rotateJPEG().
OUString Graphic::getOriginURL | ( | ) | const |
Definition at line 534 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 529 of file graph.cxx.
References mxImpGraphic.
basegfx::B2DSize Graphic::GetPPI | ( | ) | const |
Definition at line 385 of file graph.cxx.
References MapMode::GetMapUnit(), GetPrefMapMode(), GetPrefSize(), MapMode::GetScaleX(), MapMode::GetScaleY(), GetSizePixel(), Size::Height(), OutputDevice::LogicToLogic(), and Size::Width().
Referenced by JPEGWriter::Write().
MapMode Graphic::GetPrefMapMode | ( | ) | const |
Definition at line 374 of file graph.cxx.
References mxImpGraphic.
Referenced by GraphicFilter::ExportGraphic(), GetPPI(), GraphicObject::GetPrefMapMode(), GetSizePixel(), GraphicObject::GetTransformedGraphic(), ImpGetScaledGraphic(), GraphicObject::ImplGetCropParams(), MakeAsMeta(), and TypeSerializer::writeGraphic().
Size Graphic::GetPrefSize | ( | ) | const |
Definition at line 363 of file graph.cxx.
References mxImpGraphic.
Referenced by vcl::PDFWriterImpl::createEmbeddedFile(), GraphicFilter::ExportGraphic(), GetPPI(), GraphicObject::GetPrefSize(), GetSizePixel(), GraphicObject::GetTransformedGraphic(), ImpGetScaledGraphic(), GraphicObject::ImplGetCropParams(), MakeAsMeta(), and TypeSerializer::writeGraphic().
std::shared_ptr< GraphicReader > & Graphic::GetReaderContext | ( | ) |
Definition at line 478 of file graph.cxx.
References mxImpGraphic.
Referenced by ImportGIF(), GraphicFilter::ImportGraphic(), ImportJPEG(), ImportXBM(), and ImportXPM().
const std::shared_ptr< GfxLink > & Graphic::GetSharedGfxLink | ( | ) | const |
Definition at line 504 of file graph.cxx.
References mxImpGraphic.
Referenced by TypeSerializer::writeGraphic().
sal_uLong Graphic::GetSizeBytes | ( | ) | const |
Definition at line 423 of file graph.cxx.
References mxImpGraphic.
Size Graphic::GetSizePixel | ( | const OutputDevice * | pRefDevice = nullptr | ) | const |
Definition at line 411 of file graph.cxx.
References Bitmap, Application::GetDefaultDevice(), GetPrefMapMode(), GetPrefSize(), and mxImpGraphic.
Referenced by vcl::PDFWriterImpl::drawJPGBitmap(), GetPPI(), unographic::Graphic::getSize(), vcl::PDFExtOutDevData::HasAdequateCompression(), and MakeAsMeta().
GraphicType Graphic::GetType | ( | ) | const |
Definition at line 293 of file graph.cxx.
References mxImpGraphic.
Referenced by GraphicFilter::ExportGraphic(), unographic::Graphic::getType(), GraphicObject::GetType(), GetXGraphic(), ImpGetScaledGraphic(), vcl::PDFWriterImpl::implWriteBitmapEx(), vcl::graphic::loadFromURL(), TransferableHelper::SetGraphic(), JPEGWriter::Write(), and TypeSerializer::writeGraphic().
OString Graphic::getUniqueID | ( | ) | const |
Definition at line 551 of file graph.cxx.
References mxImpGraphic.
Referenced by GraphicObject::GetUniqueID().
|
static |
Definition at line 559 of file graph.cxx.
References comphelper::UnoIdInit::getSeq().
const std::shared_ptr< VectorGraphicData > & Graphic::getVectorGraphicData | ( | ) | const |
Definition at line 524 of file graph.cxx.
References mxImpGraphic.
Referenced by vcl::PDFWriterImpl::createBitmapEmit(), vcl::PDFWriterImpl::createEmbeddedFile(), vcl::PDFWriterImpl::drawJPGBitmap(), GraphicFilter::ExportGraphic(), VectorGraphicSearch::search(), and TypeSerializer::writeGraphic().
uno::Reference< css::graphic::XGraphic > Graphic::GetXGraphic | ( | ) | const |
Definition at line 349 of file graph.cxx.
References GetType(), and NONE.
Referenced by vcl::PDFWriterImpl::implWriteBitmapEx(), and vcl::graphic::SearchForGraphics().
|
inline |
Definition at line 89 of file graph.hxx.
Referenced by GraphicFilter::ImportUnloadedGraphic(), and ImpGraphic::swapIn().
|
private |
Definition at line 235 of file graph.cxx.
References vcl::graphic::Manager::copy(), vcl::graphic::Manager::get(), and mxImpGraphic.
Referenced by Clear(), SetDefaultType(), SetGfxLink(), SetPrefMapMode(), SetPrefSize(), StartAnimation(), and StopAnimation().
bool Graphic::IsAlpha | ( | ) | const |
Definition at line 314 of file graph.cxx.
References mxImpGraphic.
Referenced by GraphicObject::ImplDrawTiled().
bool Graphic::IsAnimated | ( | ) | const |
Definition at line 319 of file graph.cxx.
References mxImpGraphic.
Referenced by GraphicObject::GetTransformedGraphic(), Graphic(), GraphicObject::IsAnimated(), operator=(), GraphicNativeTransform::rotateBitmapOnly(), GraphicNativeTransform::rotateGeneric(), and TypeSerializer::writeGraphic().
bool Graphic::isAvailable | ( | ) | const |
Definition at line 243 of file graph.cxx.
References mxImpGraphic.
bool Graphic::IsDummyContext | ( | ) | const |
Definition at line 493 of file graph.cxx.
References mxImpGraphic.
Referenced by GraphicFilter::ImportGraphic().
bool Graphic::IsEPS | ( | ) | const |
Definition at line 324 of file graph.cxx.
References mxImpGraphic.
Referenced by GraphicObject::IsEPS().
bool Graphic::IsGfxLink | ( | ) | const |
Definition at line 514 of file graph.cxx.
References mxImpGraphic.
Referenced by vcl::PDFExtOutDevData::HasAdequateCompression(), GraphicFilter::ImportGraphic(), and vcl::PageSyncData::PlaySyncPageAct().
bool Graphic::IsNone | ( | ) | const |
Definition at line 282 of file graph.cxx.
References mxImpGraphic, and NONE.
Referenced by unographic::Graphic::getDIB(), unographic::Graphic::getMaskDIB(), unographic::Graphic::getSize(), unographic::Graphic::getType(), and vcl::graphic::SearchForGraphics().
bool Graphic::IsSupportedGraphic | ( | ) | const |
Definition at line 304 of file graph.cxx.
References mxImpGraphic.
Referenced by GraphicObject::GetTransformedGraphic(), and TypeSerializer::writeGraphic().
bool Graphic::IsTransparent | ( | ) | const |
Definition at line 309 of file graph.cxx.
References mxImpGraphic.
Referenced by GraphicObject::IsTransparent().
bool Graphic::makeAvailable | ( | ) |
Definition at line 248 of file graph.cxx.
References mxImpGraphic.
Referenced by TypeSerializer::writeGraphic().
bool Graphic::operator!= | ( | const Graphic & | rGraphic | ) | const |
Definition at line 277 of file graph.cxx.
References mxImpGraphic.
Definition at line 253 of file graph.cxx.
References vcl::graphic::Manager::copy(), vcl::graphic::Manager::get(), IsAnimated(), and mxImpGraphic.
Definition at line 266 of file graph.cxx.
References mxImpGraphic.
bool Graphic::operator== | ( | const Graphic & | rGraphic | ) | const |
Definition at line 272 of file graph.cxx.
References mxImpGraphic.
Definition at line 463 of file graph.cxx.
References mxImpGraphic.
void Graphic::SetDefaultType | ( | ) |
Definition at line 298 of file graph.cxx.
References ImplTestRefCount(), and mxImpGraphic.
Referenced by GraphicFilter::readWithTypeSerializer().
void Graphic::SetDummyContext | ( | bool | value | ) |
Definition at line 488 of file graph.cxx.
References mxImpGraphic.
Referenced by GraphicFilter::ImportGraphic().
Definition at line 498 of file graph.cxx.
References ImplTestRefCount(), and mxImpGraphic.
Referenced by GraphicFilter::ImportGraphic(), and GraphicFilter::ImportUnloadedGraphic().
void Graphic::setOriginURL | ( | OUString const & | rOriginURL | ) |
Definition at line 543 of file graph.cxx.
References mxImpGraphic.
Definition at line 379 of file graph.cxx.
References ImplTestRefCount(), and mxImpGraphic.
Referenced by GraphicObject::GetTransformedGraphic(), ImpGetScaledGraphic(), and TypeSerializer::readGraphic().
Definition at line 368 of file graph.cxx.
References ImplTestRefCount(), and mxImpGraphic.
Referenced by GraphicObject::GetTransformedGraphic(), ImpGetScaledGraphic(), and TypeSerializer::readGraphic().
void Graphic::SetReaderContext | ( | const std::shared_ptr< GraphicReader > & | pReader | ) |
Definition at line 483 of file graph.cxx.
References mxImpGraphic.
Referenced by ImportGIF(), ImportJPEG(), ImportXBM(), and ImportXPM().
void Graphic::StartAnimation | ( | OutputDevice & | rOutDev, |
const Point & | rDestPt, | ||
const Size & | rDestSize, | ||
tools::Long | nExtraData = 0 , |
||
OutputDevice * | pFirstFrameOutDev = nullptr |
||
) |
Definition at line 449 of file graph.cxx.
References ImplTestRefCount(), and mxImpGraphic.
void Graphic::StopAnimation | ( | const OutputDevice * | pOutputDevice, |
tools::Long | nExtraData | ||
) |
Definition at line 457 of file graph.cxx.
References ImplTestRefCount(), and mxImpGraphic.
|
private |
Definition at line 85 of file graph.hxx.
Referenced by Clear(), Draw(), GetAnimation(), GetAnimationLoopCount(), GetAnimationNotifyHdl(), GetBitmapEx(), GetBitmapExRef(), GetChecksum(), GetGDIMetaFile(), GetGfxLink(), getOriginURL(), getPageNumber(), GetPrefMapMode(), GetPrefSize(), GetReaderContext(), GetSharedGfxLink(), GetSizeBytes(), GetSizePixel(), GetType(), getUniqueID(), getVectorGraphicData(), Graphic(), ImplTestRefCount(), IsAlpha(), IsAnimated(), isAvailable(), IsDummyContext(), IsEPS(), IsGfxLink(), IsNone(), IsSupportedGraphic(), IsTransparent(), makeAvailable(), operator!=(), operator=(), operator==(), SetAnimationNotifyHdl(), SetDefaultType(), SetDummyContext(), SetGfxLink(), setOriginURL(), SetPrefMapMode(), SetPrefSize(), SetReaderContext(), StartAnimation(), and StopAnimation().