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) |
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(), unographic::Graphic::GetGraphic(), mxImpGraphic, and vcl::graphic::Manager::newInstance().
void Graphic::Clear | ( | ) |
Definition at line 288 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 429 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 434 of file graph.cxx.
References Default, and mxImpGraphic.
|
static |
Animation Graphic::GetAnimation | ( | ) | const |
Definition at line 335 of file graph.cxx.
References mxImpGraphic.
Referenced by GraphicObject::GetTransformedGraphic(), and TypeSerializer::writeGraphic().
sal_uInt32 Graphic::GetAnimationLoopCount | ( | ) | const |
Definition at line 474 of file graph.cxx.
References mxImpGraphic.
Referenced by GraphicObject::GetTransformedGraphic().
Definition at line 469 of file graph.cxx.
References mxImpGraphic.
BitmapEx Graphic::GetBitmapEx | ( | const GraphicConversionParameters & | rParameters = GraphicConversionParameters() | ) | const |
Definition at line 330 of file graph.cxx.
References mxImpGraphic.
Referenced by unographic::Graphic::applyBrightnessContrast(), unographic::Graphic::applyDuotone(), BmpWriter(), unographic::Graphic::colorChange(), vcl::PDFWriterImpl::drawJPGBitmap(), GraphicFilter::ExportGraphic(), ExportWebpGraphic(), GraphicObject::GetTransformedGraphic(), Image::Image(), ImpGetScaledGraphic(), vcl::PDFWriterImpl::implWriteBitmapEx(), MakeAsMeta(), vcl::PageSyncData::PlaySyncPageAct(), vcl::PngImageReader::read(), readBitmapEx(), GraphicFilter::readPNG(), 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 345 of file graph.cxx.
References mxImpGraphic.
Referenced by GraphicFilter::readJPEG().
BitmapChecksum Graphic::GetChecksum | ( | ) | const |
Definition at line 520 of file graph.cxx.
References mxImpGraphic.
Referenced by std::hash< Graphic >::operator()().
const GDIMetaFile & Graphic::GetGDIMetaFile | ( | ) | const |
Definition at line 340 of file graph.cxx.
References mxImpGraphic.
Referenced by ConvertGraphicToWMF(), GraphicFilter::ExportGraphic(), GraphicObject::GetTransformedGraphic(), ImpGetScaledGraphic(), ImportEpsGraphic(), ReadWindowMetafile(), and TypeSerializer::writeGraphic().
GfxLink Graphic::GetGfxLink | ( | ) | const |
Definition at line 510 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 535 of file graph.cxx.
References mxImpGraphic.
Referenced by unographic::Graphic::applyBrightnessContrast(), unographic::Graphic::applyDuotone(), and unographic::Graphic::colorChange().
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.
basegfx::B2DSize Graphic::GetPPI | ( | ) | const |
Definition at line 386 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 375 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 364 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 479 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 505 of file graph.cxx.
References mxImpGraphic.
Referenced by TypeSerializer::writeGraphic().
sal_uLong Graphic::GetSizeBytes | ( | ) | const |
Definition at line 424 of file graph.cxx.
References mxImpGraphic.
Size Graphic::GetSizePixel | ( | const OutputDevice * | pRefDevice = nullptr | ) | const |
Definition at line 412 of file graph.cxx.
References Bitmap, Application::GetDefaultDevice(), GetPrefMapMode(), GetPrefSize(), and mxImpGraphic.
Referenced by vcl::PDFWriterImpl::drawJPGBitmap(), GetPPI(), vcl::PDFExtOutDevData::HasAdequateCompression(), MakeAsMeta(), and vcl::PageSyncData::PlaySyncPageAct().
GraphicType Graphic::GetType | ( | ) | const |
Definition at line 294 of file graph.cxx.
References mxImpGraphic.
Referenced by unographic::Graphic::colorChange(), GraphicFilter::ExportGraphic(), GraphicObject::GetType(), GetXGraphic(), ImpGetScaledGraphic(), vcl::PDFWriterImpl::implWriteBitmapEx(), vcl::graphic::loadFromURL(), TransferableHelper::SetGraphic(), JPEGWriter::Write(), and TypeSerializer::writeGraphic().
OString Graphic::getUniqueID | ( | ) | const |
Definition at line 552 of file graph.cxx.
References mxImpGraphic.
Referenced by GraphicObject::GetUniqueID().
const std::shared_ptr< VectorGraphicData > & Graphic::getVectorGraphicData | ( | ) | const |
Definition at line 525 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 350 of file graph.cxx.
References GetType(), and NONE.
Referenced by unographic::Graphic::applyBrightnessContrast(), unographic::Graphic::applyDuotone(), unographic::Graphic::colorChange(), 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 236 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 315 of file graph.cxx.
References mxImpGraphic.
bool Graphic::IsAnimated | ( | ) | const |
Definition at line 320 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 244 of file graph.cxx.
References mxImpGraphic.
bool Graphic::IsDummyContext | ( | ) | const |
Definition at line 494 of file graph.cxx.
References mxImpGraphic.
Referenced by GraphicFilter::ImportGraphic().
bool Graphic::IsEPS | ( | ) | const |
Definition at line 325 of file graph.cxx.
References mxImpGraphic.
Referenced by GraphicObject::IsEPS().
bool Graphic::IsGfxLink | ( | ) | const |
Definition at line 515 of file graph.cxx.
References mxImpGraphic.
Referenced by vcl::PDFExtOutDevData::HasAdequateCompression(), GraphicFilter::ImportGraphic(), and vcl::PageSyncData::PlaySyncPageAct().
bool Graphic::IsNone | ( | ) | const |
Definition at line 283 of file graph.cxx.
References mxImpGraphic, and NONE.
Referenced by vcl::graphic::SearchForGraphics().
bool Graphic::IsSupportedGraphic | ( | ) | const |
Definition at line 305 of file graph.cxx.
References mxImpGraphic.
Referenced by GraphicObject::GetTransformedGraphic(), and TypeSerializer::writeGraphic().
bool Graphic::IsTransparent | ( | ) | const |
Definition at line 310 of file graph.cxx.
References mxImpGraphic.
Referenced by GraphicObject::IsTransparent().
bool Graphic::makeAvailable | ( | ) |
Definition at line 249 of file graph.cxx.
References mxImpGraphic.
Referenced by TypeSerializer::writeGraphic().
bool Graphic::operator!= | ( | const Graphic & | rGraphic | ) | const |
Definition at line 278 of file graph.cxx.
References mxImpGraphic.
Definition at line 254 of file graph.cxx.
References vcl::graphic::Manager::copy(), vcl::graphic::Manager::get(), IsAnimated(), and mxImpGraphic.
bool Graphic::operator== | ( | const Graphic & | rGraphic | ) | const |
Definition at line 273 of file graph.cxx.
References mxImpGraphic.
Definition at line 464 of file graph.cxx.
References mxImpGraphic.
void Graphic::SetDefaultType | ( | ) |
Definition at line 299 of file graph.cxx.
References ImplTestRefCount(), and mxImpGraphic.
Referenced by GraphicFilter::readWithTypeSerializer().
void Graphic::SetDummyContext | ( | bool | value | ) |
Definition at line 489 of file graph.cxx.
References mxImpGraphic, and value.
Referenced by GraphicFilter::ImportGraphic().
void Graphic::SetGfxLink | ( | const std::shared_ptr< GfxLink > & | rGfxLink | ) |
Definition at line 499 of file graph.cxx.
References ImplTestRefCount(), and mxImpGraphic.
Referenced by GraphicFilter::ImportGraphic(), and GraphicFilter::ImportUnloadedGraphic().
void Graphic::setOriginURL | ( | OUString const & | rOriginURL | ) |
Definition at line 544 of file graph.cxx.
References mxImpGraphic.
Referenced by unographic::Graphic::applyBrightnessContrast(), unographic::Graphic::applyDuotone(), and unographic::Graphic::colorChange().
void Graphic::SetPrefMapMode | ( | const MapMode & | rPrefMapMode | ) |
Definition at line 380 of file graph.cxx.
References ImplTestRefCount(), and mxImpGraphic.
Referenced by GraphicObject::GetTransformedGraphic(), ImpGetScaledGraphic(), and TypeSerializer::readGraphic().
void Graphic::SetPrefSize | ( | const Size & | rPrefSize | ) |
Definition at line 369 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 484 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 450 of file graph.cxx.
References ImplTestRefCount(), and mxImpGraphic.
void Graphic::StopAnimation | ( | const OutputDevice * | pOutputDevice, |
tools::Long | nExtraData | ||
) |
Definition at line 458 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().