LibreOffice Module vcl (master) 1
|
#include <impgraph.hxx>
Public Member Functions | |
ImpGraphic () | |
ImpGraphic (const ImpGraphic &rImpGraphic) | |
ImpGraphic (ImpGraphic &&rImpGraphic) noexcept | |
ImpGraphic (GraphicExternalLink aExternalLink) | |
ImpGraphic (std::shared_ptr< GfxLink > xGfxLink, sal_Int32 nPageIndex=0) | |
ImpGraphic (const BitmapEx &rBmpEx) | |
ImpGraphic (const std::shared_ptr< VectorGraphicData > &rVectorGraphicDataPtr) | |
ImpGraphic (const Animation &rAnimation) | |
ImpGraphic (const GDIMetaFile &rMtf) | |
~ImpGraphic () | |
void | setPrepared (bool bAnimated, const Size *pSizeHint) |
void | resetChecksum () |
bool | swapIn () |
bool | swapOut () |
bool | isSwappedOut () const |
SvStream * | getSwapFileStream () const |
void | updateFromLoadedGraphic (const ImpGraphic *graphic) |
void | dumpState (rtl::OStringBuffer &rState) |
Private Member Functions | |
ImpGraphic & | operator= (const ImpGraphic &rImpGraphic) |
ImpGraphic & | operator= (ImpGraphic &&rImpGraphic) |
bool | operator== (const ImpGraphic &rImpGraphic) const |
bool | operator!= (const ImpGraphic &rImpGraphic) const |
OUString const & | getOriginURL () const |
void | setOriginURL (OUString const &rOriginURL) |
OString | getUniqueID () |
void | createSwapInfo () |
void | restoreFromSwapInfo () |
void | clearGraphics () |
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 () |
Bitmap | getBitmap (const GraphicConversionParameters &rParameters) const |
BitmapEx | getBitmapEx (const GraphicConversionParameters &rParameters) const |
const BitmapEx & | getBitmapExRef () const |
Gives direct access to the contained BitmapEx. More... | |
Animation | getAnimation () const |
const GDIMetaFile & | getGDIMetaFile () const |
Size | getSizePixel () const |
Size | getPrefSize () const |
void | setPrefSize (const Size &rPrefSize) |
MapMode | getPrefMapMode () const |
void | setPrefMapMode (const MapMode &rPrefMapMode) |
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 nRendererId, OutputDevice *pFirstFrameOutDev) |
void | stopAnimation (const OutputDevice *pOutputDevice, tools::Long nRendererId) |
void | setAnimationNotifyHdl (const Link< Animation *, void > &rLink) |
Link< Animation *, void > | getAnimationNotifyHdl () const |
sal_uInt32 | getAnimationLoopCount () const |
bool | swapInFromStream (SvStream &rStream) |
bool | swapInGraphic (SvStream &rStream) |
bool | swapInContent (SvStream &rStream) |
bool | swapOutContent (SvStream &rStream) |
bool | swapOutGraphic (SvStream &rStream) |
std::shared_ptr< GraphicReader > & | getContext () |
void | setContext (const std::shared_ptr< GraphicReader > &pReader) |
void | setDummyContext (bool value) |
bool | isDummyContext () const |
void | setGfxLink (const std::shared_ptr< GfxLink > &) |
const std::shared_ptr< GfxLink > & | getSharedGfxLink () const |
GfxLink | getGfxLink () const |
bool | isGfxLink () const |
BitmapChecksum | getChecksum () const |
const std::shared_ptr< VectorGraphicData > & | getVectorGraphicData () const |
BitmapEx | getVectorGraphicReplacement () const |
Gets the bitmap replacement for a vector graphic. More... | |
bool | ensureAvailable () const |
sal_Int32 | getPageNumber () const |
void | setValuesForPrefSize (const Size &rPrefSize) |
void | setValuesForPrefMapMod (const MapMode &rPrefMapMode) |
Private Attributes | |
GDIMetaFile | maMetaFile |
BitmapEx | maBitmapEx |
Size | maExPrefSize |
If maBitmapEx is empty, this preferred size will be set on it when it gets initialized. More... | |
ImpSwapInfo | maSwapInfo |
std::unique_ptr< Animation > | mpAnimation |
std::shared_ptr< GraphicReader > | mpContext |
std::shared_ptr< ImpSwapFile > | mpSwapFile |
std::shared_ptr< GfxLink > | mpGfxLink |
GraphicType | meType |
sal_uLong | mnSizeBytes |
bool | mbSwapOut |
bool | mbDummyContext |
std::shared_ptr< VectorGraphicData > | maVectorGraphicData |
BitmapChecksum | mnChecksum = 0 |
std::optional< GraphicID > | mxGraphicID |
GraphicExternalLink | maGraphicExternalLink |
std::chrono::high_resolution_clock::time_point | maLastUsed |
bool | mbPrepared |
Friends | |
class | Graphic |
class | GraphicID |
class | vcl::graphic::Manager |
Definition at line 59 of file impgraph.hxx.
ImpGraphic::ImpGraphic | ( | ) |
Definition at line 84 of file impgraph.cxx.
ImpGraphic::ImpGraphic | ( | const ImpGraphic & | rImpGraphic | ) |
Definition at line 94 of file impgraph.cxx.
References maBitmapEx, meType, mpAnimation, mpContext, and now.
|
noexcept |
Definition at line 117 of file impgraph.cxx.
References meType, mpAnimation, and mpContext.
ImpGraphic::ImpGraphic | ( | GraphicExternalLink | aExternalLink | ) |
Definition at line 155 of file impgraph.cxx.
ImpGraphic::ImpGraphic | ( | std::shared_ptr< GfxLink > | xGfxLink, |
sal_Int32 | nPageIndex = 0 |
||
) |
Definition at line 138 of file impgraph.cxx.
References maSwapInfo, ImpSwapInfo::mbIsAlpha, ImpSwapInfo::mbIsAnimated, ImpSwapInfo::mbIsEPS, ImpSwapInfo::mbIsTransparent, meType, ImpSwapInfo::mnAnimationLoopCount, ImpSwapInfo::mnPageIndex, and now.
ImpGraphic::ImpGraphic | ( | const BitmapEx & | rBmpEx | ) |
Definition at line 166 of file impgraph.cxx.
ImpGraphic::ImpGraphic | ( | const std::shared_ptr< VectorGraphicData > & | rVectorGraphicDataPtr | ) |
Definition at line 177 of file impgraph.cxx.
ImpGraphic::ImpGraphic | ( | const Animation & | rAnimation | ) |
Definition at line 188 of file impgraph.cxx.
References meType, mpAnimation, and now.
ImpGraphic::ImpGraphic | ( | const GDIMetaFile & | rMtf | ) |
Definition at line 200 of file impgraph.cxx.
References GdiMetafile, meType, and now.
ImpGraphic::~ImpGraphic | ( | ) |
Definition at line 211 of file impgraph.cxx.
References vcl::graphic::Manager::get(), and vcl::graphic::Manager::unregisterGraphic().
|
private |
Definition at line 437 of file impgraph.cxx.
References vcl::graphic::Manager::changeExisting(), clearGraphics(), vcl::graphic::Manager::get(), maGraphicExternalLink, mbPrepared, mbSwapOut, meType, mnSizeBytes, mpSwapFile, GraphicExternalLink::msURL, and NONE.
Referenced by setDefaultType(), and swapInFromStream().
|
private |
Definition at line 373 of file impgraph.cxx.
References BitmapEx::Clear(), GDIMetaFile::Clear(), maBitmapEx, maMetaFile, maVectorGraphicData, and mpAnimation.
Referenced by clear(), swapInFromStream(), and swapOut().
|
private |
Definition at line 353 of file impgraph.cxx.
References getAnimationLoopCount(), getPageNumber(), getPrefMapMode(), getPrefSize(), BitmapEx::GetSizePixel(), isAlpha(), isAnimated(), BitmapEx::IsEmpty(), isEPS(), isSwappedOut(), isTransparent(), maBitmapEx, ImpSwapInfo::maPrefMapMode, ImpSwapInfo::maPrefSize, ImpSwapInfo::maSizePixel, maSwapInfo, ImpSwapInfo::mbIsAlpha, ImpSwapInfo::mbIsAnimated, ImpSwapInfo::mbIsEPS, ImpSwapInfo::mbIsTransparent, ImpSwapInfo::mnAnimationLoopCount, and ImpSwapInfo::mnPageIndex.
Referenced by swapOut().
|
private |
Definition at line 1005 of file impgraph.cxx.
References Bitmap, Default, draw(), BitmapEx::Draw(), ensureAvailable(), GdiMetafile, GDIMetaFile::GetPrefSize(), getVectorGraphicReplacement(), BitmapEx::IsEmpty(), isSwappedOut(), maBitmapEx, maMetaFile, maVectorGraphicData, meType, mpAnimation, and NONE.
Referenced by draw(), and getBitmap().
|
private |
Definition at line 1045 of file impgraph.cxx.
References Bitmap, Default, BitmapEx::Draw(), ensureAvailable(), GdiMetafile, getVectorGraphicReplacement(), BitmapEx::IsEmpty(), isSwappedOut(), maBitmapEx, maMetaFile, maVectorGraphicData, meType, mpAnimation, NONE, GDIMetaFile::Play(), and GDIMetaFile::WindStart().
void ImpGraphic::dumpState | ( | rtl::OStringBuffer & | rState | ) |
Definition at line 1422 of file impgraph.cxx.
References Size::Height(), maExPrefSize, ImpSwapInfo::maSizePixel, maSwapInfo, mbSwapOut, meType, mnSizeBytes, mpGfxLink, NONE, and Size::Width().
|
private |
Definition at line 1366 of file impgraph.cxx.
References isSwappedOut(), and swapIn().
Referenced by draw(), getAnimation(), getAnimationNotifyHdl(), getBitmap(), getBitmapEx(), getBitmapExRef(), getChecksum(), getGDIMetaFile(), getGfxLink(), getSizeBytes(), getVectorGraphicData(), GraphicID::GraphicID(), makeAvailable(), setAnimationNotifyHdl(), setGfxLink(), setPrefMapMode(), setPrefSize(), startAnimation(), stopAnimation(), swapOutContent(), and swapOutGraphic().
|
private |
Definition at line 677 of file impgraph.cxx.
References ensureAvailable(), and mpAnimation.
Referenced by GraphicID::GraphicID().
|
private |
Definition at line 1126 of file impgraph.cxx.
References maSwapInfo, mbSwapOut, ImpSwapInfo::mnAnimationLoopCount, and mpAnimation.
Referenced by createSwapInfo().
Definition at line 1114 of file impgraph.cxx.
References ensureAvailable(), and mpAnimation.
|
private |
Definition at line 536 of file impgraph.cxx.
References Bitmap, COL_WHITE(), Default, draw(), Enable, ensureAvailable(), basegfx::fround(), GdiMetafile, GraphicConversionParameters::getAntiAliase(), BitmapEx::GetBitmap(), Size::getHeight(), GDIMetaFile::GetPrefMapMode(), getPrefMapMode(), GDIMetaFile::GetPrefSize(), getPrefSize(), GraphicConversionParameters::getSizePixel(), GraphicConversionParameters::getSnapHorVerLines(), getType(), GraphicConversionParameters::getUnlimitedSize(), getVectorGraphicReplacement(), Size::getWidth(), GRAPHIC_MTFTOBMP_MAXEXT, Size::Height(), Bitmap::IsEmpty(), BitmapEx::IsEmpty(), isSupportedGraphic(), maBitmapEx, maMetaFile, maVectorGraphicData, meType, mpAnimation, PixelSnapHairline, Bitmap::Scale(), Size::setHeight(), Bitmap::SetPrefMapMode(), Bitmap::SetPrefSize(), Size::setWidth(), and Size::Width().
Referenced by getBitmapEx().
|
private |
Definition at line 638 of file impgraph.cxx.
References Bitmap, COL_BLACK(), Default, ensureAvailable(), Fast, getBitmap(), GDIMetaFile::GetMonochromeMtf(), GraphicConversionParameters::getSizePixel(), getVectorGraphicReplacement(), Size::Height(), BitmapEx::IsEmpty(), isSupportedGraphic(), maBitmapEx, maMetaFile, maVectorGraphicData, meType, mpAnimation, BitmapEx::Scale(), and Size::Width().
Referenced by getSizePixel(), and GraphicID::GraphicID().
|
private |
Gives direct access to the contained BitmapEx.
Definition at line 688 of file impgraph.cxx.
References ensureAvailable(), and maBitmapEx.
|
private |
Definition at line 1725 of file impgraph.cxx.
References Bitmap, Default, ensureAvailable(), GdiMetafile, BitmapEx::GetChecksum(), SvmWriter::GetChecksum(), maBitmapEx, maMetaFile, maVectorGraphicData, meType, mnChecksum, mpAnimation, and NONE.
Referenced by GraphicID::GraphicID().
|
inlineprivate |
Definition at line 190 of file impgraph.hxx.
References mpContext.
|
private |
Definition at line 694 of file impgraph.cxx.
References GDIMetaFile::AddAction(), Bitmap, Emf, ensureAvailable(), GDIMetaFile::GetActionSize(), BitmapEx::GetBitmap(), BitmapEx::GetPrefMapMode(), BitmapEx::GetPrefSize(), getVectorGraphicReplacement(), BitmapEx::IsAlpha(), BitmapEx::IsEmpty(), maBitmapEx, maMetaFile, maVectorGraphicData, meType, GDIMetaFile::SetPrefMapMode(), GDIMetaFile::SetPrefSize(), GDIMetaFile::Stop(), GDIMetaFile::WindStart(), and Wmf.
Referenced by GraphicID::GraphicID().
|
private |
Definition at line 1713 of file impgraph.cxx.
References ensureAvailable(), and mpGfxLink.
|
inlineprivate |
Definition at line 111 of file impgraph.hxx.
References GraphicExternalLink::msURL.
Referenced by swapOut().
|
private |
Definition at line 1758 of file impgraph.cxx.
References isSwappedOut(), maSwapInfo, maVectorGraphicData, and ImpSwapInfo::mnPageIndex.
Referenced by createSwapInfo().
|
private |
Definition at line 876 of file impgraph.cxx.
References Bitmap, Default, GdiMetafile, BitmapEx::GetPrefMapMode(), GDIMetaFile::GetPrefMapMode(), BitmapEx::GetPrefSize(), Size::Height(), BitmapEx::IsEmpty(), isSwappedOut(), maBitmapEx, maMetaFile, ImpSwapInfo::maPrefMapMode, maSwapInfo, maVectorGraphicData, meType, NONE, and Size::Width().
Referenced by createSwapInfo(), getBitmap(), and updateFromLoadedGraphic().
|
private |
Definition at line 775 of file impgraph.cxx.
References Bitmap, Default, basegfx::fround(), GdiMetafile, basegfx::Range2D< typename TYPE, typename TRAITS >::getHeight(), Size::getHeight(), BitmapEx::GetPrefSize(), GDIMetaFile::GetPrefSize(), BitmapEx::GetSizePixel(), basegfx::Range2D< typename TYPE, typename TRAITS >::getWidth(), Size::getWidth(), Size::Height(), BitmapEx::IsEmpty(), isSwappedOut(), maBitmapEx, maExPrefSize, maMetaFile, ImpSwapInfo::maPrefSize, maSwapInfo, maVectorGraphicData, meType, NONE, and Size::Width().
Referenced by createSwapInfo(), and getBitmap().
|
private |
Definition at line 1708 of file impgraph.cxx.
References mpGfxLink.
|
private |
Definition at line 963 of file impgraph.cxx.
References Bitmap, Default, ensureAvailable(), GdiMetafile, BitmapEx::GetSizeBytes(), GDIMetaFile::GetSizeBytes(), maBitmapEx, maMetaFile, maVectorGraphicData, mbPrepared, meType, mnSizeBytes, mpAnimation, NONE, and VectorGraphicData::UNPARSED.
Referenced by vcl::graphic::Manager::getGraphicSizeBytes(), swapIn(), and swapOut().
|
private |
Definition at line 763 of file impgraph.cxx.
References getBitmapEx(), BitmapEx::GetSizePixel(), isSwappedOut(), ImpSwapInfo::maSizePixel, and maSwapInfo.
SvStream * ImpGraphic::getSwapFileStream | ( | ) | const |
Definition at line 77 of file impgraph.cxx.
References mpSwapFile.
|
inlineprivate |
Definition at line 134 of file impgraph.hxx.
References meType.
Referenced by getBitmap(), and GraphicID::GraphicID().
|
inlineprivate |
Definition at line 121 of file impgraph.hxx.
|
private |
Definition at line 346 of file impgraph.cxx.
References ensureAvailable(), and maVectorGraphicData.
Referenced by GraphicID::GraphicID().
|
private |
Gets the bitmap replacement for a vector graphic.
Definition at line 524 of file impgraph.cxx.
References Size::getHeight(), Size::getWidth(), maExPrefSize, maVectorGraphicData, and BitmapEx::SetPrefSize().
Referenced by draw(), getBitmap(), getBitmapEx(), and getGDIMetaFile().
|
private |
Definition at line 479 of file impgraph.cxx.
References Bitmap, BitmapEx::IsAlpha(), maBitmapEx, maSwapInfo, maVectorGraphicData, ImpSwapInfo::mbIsAlpha, mbSwapOut, meType, and mpAnimation.
Referenced by createSwapInfo().
|
private |
Definition at line 499 of file impgraph.cxx.
References maSwapInfo, ImpSwapInfo::mbIsAnimated, mbSwapOut, and mpAnimation.
Referenced by createSwapInfo(), and GraphicID::GraphicID().
|
private |
Definition at line 514 of file impgraph.cxx.
References mbPrepared, and mbSwapOut.
Referenced by vcl::graphic::Manager::getGraphicSizeBytes(), and operator==().
|
inlineprivate |
Definition at line 193 of file impgraph.hxx.
|
private |
Definition at line 504 of file impgraph.cxx.
References EPS, GdiMetafile, GDIMetaFile::GetAction(), GDIMetaFile::GetActionSize(), MetaAction::GetType(), maMetaFile, maSwapInfo, ImpSwapInfo::mbIsEPS, mbSwapOut, and meType.
Referenced by createSwapInfo().
|
private |
Definition at line 1720 of file impgraph.cxx.
References mpGfxLink.
|
private |
Definition at line 458 of file impgraph.cxx.
Referenced by getBitmap(), getBitmapEx(), setValuesForPrefSize(), startAnimation(), and stopAnimation().
|
inline |
Definition at line 219 of file impgraph.hxx.
Referenced by createSwapInfo(), draw(), ensureAvailable(), getPageNumber(), getPrefMapMode(), getPrefSize(), getSizePixel(), startAnimation(), stopAnimation(), swapIn(), swapOut(), swapOutContent(), and swapOutGraphic().
|
private |
Definition at line 463 of file impgraph.cxx.
References Bitmap, BitmapEx::IsAlpha(), maBitmapEx, maSwapInfo, maVectorGraphicData, ImpSwapInfo::mbIsTransparent, mbSwapOut, meType, and mpAnimation.
Referenced by createSwapInfo().
|
private |
Definition at line 519 of file impgraph.cxx.
References ensureAvailable().
|
inlineprivate |
Definition at line 109 of file impgraph.hxx.
|
private |
Definition at line 216 of file impgraph.cxx.
References vcl::graphic::Manager::changeExisting(), vcl::graphic::Manager::get(), maBitmapEx, maGraphicExternalLink, maLastUsed, maMetaFile, maSwapInfo, maVectorGraphicData, mbDummyContext, mbPrepared, mbSwapOut, meType, mnSizeBytes, mpAnimation, mpContext, mpGfxLink, and mpSwapFile.
|
private |
Definition at line 258 of file impgraph.cxx.
References vcl::graphic::Manager::changeExisting(), vcl::graphic::Manager::get(), maBitmapEx, maGraphicExternalLink, maLastUsed, maMetaFile, maSwapInfo, maVectorGraphicData, mbDummyContext, mbPrepared, mbSwapOut, meType, mnSizeBytes, mpAnimation, mpContext, mpGfxLink, and mpSwapFile.
|
private |
Definition at line 286 of file impgraph.cxx.
References Bitmap, Default, GdiMetafile, isAvailable(), maBitmapEx, maMetaFile, maVectorGraphicData, mbPrepared, meType, mpAnimation, mpGfxLink, and NONE.
|
inline |
Definition at line 216 of file impgraph.hxx.
|
private |
Definition at line 1449 of file impgraph.cxx.
References ImpSwapInfo::maPrefMapMode, ImpSwapInfo::maPrefSize, maSwapInfo, maVectorGraphicData, ImpSwapInfo::mnPageIndex, setValuesForPrefMapMod(), and setValuesForPrefSize().
Referenced by swapIn(), and updateFromLoadedGraphic().
Definition at line 1106 of file impgraph.cxx.
References ensureAvailable(), and mpAnimation.
|
private |
Definition at line 1134 of file impgraph.cxx.
References mbDummyContext, and mpContext.
|
private |
Definition at line 452 of file impgraph.cxx.
|
inlineprivate |
Definition at line 192 of file impgraph.hxx.
References value.
|
private |
Definition at line 1701 of file impgraph.cxx.
References ensureAvailable(), and mpGfxLink.
|
inlineprivate |
Definition at line 116 of file impgraph.hxx.
References GraphicExternalLink::msURL.
Referenced by swapIn().
|
private |
Definition at line 957 of file impgraph.cxx.
References ensureAvailable(), and setValuesForPrefMapMod().
|
private |
Definition at line 870 of file impgraph.cxx.
References ensureAvailable(), and setValuesForPrefSize().
Referenced by updateFromLoadedGraphic().
void ImpGraphic::setPrepared | ( | bool | bAnimated, |
const Size * | pSizeHint | ||
) |
Definition at line 381 of file impgraph.cxx.
References Bitmap, GraphicDescriptor::Detect(), Size::getHeight(), GraphicDescriptor::GetPreferredLogSize(), GraphicDescriptor::GetPreferredMapMode(), GraphicDescriptor::GetSize_100TH_MM(), GraphicDescriptor::GetSizePixel(), Size::getWidth(), GraphicDescriptor::IsAlpha(), GraphicDescriptor::IsTransparent(), ImpSwapInfo::maPrefMapMode, ImpSwapInfo::maPrefSize, ImpSwapInfo::maSizePixel, maSwapInfo, maVectorGraphicData, ImpSwapInfo::mbIsAlpha, ImpSwapInfo::mbIsAnimated, ImpSwapInfo::mbIsEPS, ImpSwapInfo::mbIsTransparent, mbPrepared, mbSwapOut, meType, ImpSwapInfo::mnAnimationLoopCount, ImpSwapInfo::mnPageIndex, and mpGfxLink.
Referenced by GraphicFilter::ImportUnloadedGraphic().
|
private |
Definition at line 920 of file impgraph.cxx.
References Bitmap, Default, GdiMetafile, maBitmapEx, maMetaFile, maVectorGraphicData, meType, mpAnimation, NONE, GDIMetaFile::SetPrefMapMode(), and BitmapEx::SetPrefMapMode().
Referenced by restoreFromSwapInfo(), and setPrefMapMode().
|
private |
Definition at line 830 of file impgraph.cxx.
References Bitmap, Default, GdiMetafile, Size::getHeight(), Size::getWidth(), BitmapEx::IsEmpty(), isSupportedGraphic(), maBitmapEx, maExPrefSize, maMetaFile, maVectorGraphicData, meType, mpAnimation, NONE, BitmapEx::SetPrefSize(), and GDIMetaFile::SetPrefSize().
Referenced by restoreFromSwapInfo(), and setPrefSize().
|
private |
Definition at line 1088 of file impgraph.cxx.
References ensureAvailable(), isSupportedGraphic(), isSwappedOut(), and mpAnimation.
|
private |
Definition at line 1098 of file impgraph.cxx.
References ensureAvailable(), isSupportedGraphic(), isSwappedOut(), and mpAnimation.
bool ImpGraphic::swapIn | ( | ) |
Definition at line 1487 of file impgraph.cxx.
References vcl::graphic::Manager::get(), getSizeBytes(), GRAPHIC_STREAMBUFSIZE, Graphic::ImplGetImpGraphic(), isSwappedOut(), vcl::loadVectorGraphic(), maLastUsed, maVectorGraphicData, mbPrepared, mbSwapOut, meType, mnChecksum, mnSizeBytes, mpGfxLink, mpSwapFile, restoreFromSwapInfo(), SvStream::Seek(), SvStream::SetBufferSize(), SvStream::SetCompressMode(), setOriginURL(), SvStream::SetVersion(), SOFFICE_FILEFORMAT_50, STREAM_SEEK_TO_BEGIN, swapInFromStream(), vcl::graphic::Manager::swappedIn(), and updateFromLoadedGraphic().
Referenced by ensureAvailable().
|
private |
Definition at line 1140 of file impgraph.cxx.
References Default, meType, nId, nLength, NONE, nType, SvStream::ReadInt32(), SvStream::ReadUInt32(), SAL_WARN, SWAP_FORMAT_ID, and swapInGraphic().
Referenced by swapInFromStream().
|
private |
Definition at line 1568 of file impgraph.cxx.
References clear(), clearGraphics(), SvStream::GetError(), mbSwapOut, mnChecksum, mnSizeBytes, and swapInContent().
Referenced by swapIn().
|
private |
Definition at line 1592 of file impgraph.cxx.
References Animation, Bitmap, constEmfMagic, constPdfMagic, constSvgMagic, constWmfMagic, Emf, GdiMetafile, SvStream::GetError(), maBitmapEx, maMetaFile, maVectorGraphicData, meType, mpAnimation, nMagic, Pdf, SvmReader::Read(), ReadAnimation(), ReadDIBBitmapEx(), SvStream::ReadInt32(), SvStream::ReadUInt32(), Svg, Vector, and Wmf.
Referenced by swapInContent().
bool ImpGraphic::swapOut | ( | ) |
Definition at line 1297 of file impgraph.cxx.
References clearGraphics(), createSwapInfo(), SvStream::FlushBuffer(), vcl::graphic::Manager::get(), SvStream::GetError(), getOriginURL(), getSizeBytes(), GRAPHIC_STREAMBUFSIZE, isSwappedOut(), mbSwapOut, mpGfxLink, mpSwapFile, SvStream::SetBufferSize(), SvStream::SetCompressMode(), SvStream::SetVersion(), SOFFICE_FILEFORMAT_50, swapOutContent(), and vcl::graphic::Manager::swappedOut().
|
private |
Definition at line 1259 of file impgraph.cxx.
References Default, ensureAvailable(), SvStream::GetError(), isSwappedOut(), meType, NONE, SvStream::Seek(), SWAP_FORMAT_ID, swapOutGraphic(), SvStream::Tell(), SvStream::WriteInt32(), and SvStream::WriteUInt32().
Referenced by swapOut().
|
private |
Definition at line 1174 of file impgraph.cxx.
References Animation, Bitmap, constEmfMagic, constPdfMagic, constSvgMagic, constWmfMagic, Default, Emf, ensureAvailable(), GdiMetafile, SvStream::GetError(), isSwappedOut(), maBitmapEx, maMetaFile, maVectorGraphicData, meType, mpAnimation, mpGfxLink, NONE, Pdf, SvStream::SetError(), Svg, SVSTREAM_GENERALERROR, Vector, Wmf, SvmWriter::Write(), WriteAnimation(), WriteDIBBitmapEx(), SvStream::WriteInt32(), and SvStream::WriteUInt32().
Referenced by swapOutContent().
void ImpGraphic::updateFromLoadedGraphic | ( | const ImpGraphic * | graphic | ) |
Definition at line 1379 of file impgraph.cxx.
References Size::getHeight(), getPrefMapMode(), Size::getWidth(), maBitmapEx, maGraphicExternalLink, maMetaFile, ImpSwapInfo::maPrefMapMode, ImpSwapInfo::maPrefSize, maSwapInfo, maVectorGraphicData, mbPrepared, mbSwapOut, mnChecksum, mnSizeBytes, mpAnimation, restoreFromSwapInfo(), and setPrefSize().
Referenced by swapIn().
|
friend |
Definition at line 61 of file impgraph.hxx.
|
friend |
Definition at line 62 of file impgraph.hxx.
|
friend |
Definition at line 63 of file impgraph.hxx.
|
private |
Definition at line 68 of file impgraph.hxx.
Referenced by clearGraphics(), createSwapInfo(), draw(), getBitmap(), getBitmapEx(), getBitmapExRef(), getChecksum(), getGDIMetaFile(), getPrefMapMode(), getPrefSize(), getSizeBytes(), ImpGraphic(), isAlpha(), isTransparent(), operator=(), operator==(), setValuesForPrefMapMod(), setValuesForPrefSize(), swapInGraphic(), swapOutGraphic(), and updateFromLoadedGraphic().
|
private |
If maBitmapEx is empty, this preferred size will be set on it when it gets initialized.
Definition at line 70 of file impgraph.hxx.
Referenced by dumpState(), getPrefSize(), getVectorGraphicReplacement(), and setValuesForPrefSize().
|
private |
Definition at line 85 of file impgraph.hxx.
Referenced by clear(), operator=(), and updateFromLoadedGraphic().
|
private |
Definition at line 87 of file impgraph.hxx.
Referenced by operator=(), and swapIn().
|
private |
Definition at line 67 of file impgraph.hxx.
Referenced by clearGraphics(), draw(), getBitmap(), getBitmapEx(), getChecksum(), getGDIMetaFile(), getPrefMapMode(), getPrefSize(), getSizeBytes(), isEPS(), operator=(), operator==(), setValuesForPrefMapMod(), setValuesForPrefSize(), swapInGraphic(), swapOutGraphic(), and updateFromLoadedGraphic().
|
private |
Definition at line 71 of file impgraph.hxx.
Referenced by createSwapInfo(), dumpState(), getAnimationLoopCount(), getPageNumber(), getPrefMapMode(), getPrefSize(), getSizePixel(), ImpGraphic(), isAlpha(), isAnimated(), isEPS(), isTransparent(), operator=(), restoreFromSwapInfo(), setPrepared(), and updateFromLoadedGraphic().
|
private |
Definition at line 80 of file impgraph.hxx.
Referenced by clearGraphics(), draw(), getBitmap(), getBitmapEx(), getChecksum(), getGDIMetaFile(), getPageNumber(), getPrefMapMode(), getPrefSize(), getSizeBytes(), getVectorGraphicData(), getVectorGraphicReplacement(), isAlpha(), isTransparent(), operator=(), operator==(), restoreFromSwapInfo(), setPrepared(), setValuesForPrefMapMod(), setValuesForPrefSize(), swapIn(), swapInGraphic(), swapOutGraphic(), and updateFromLoadedGraphic().
|
private |
Definition at line 79 of file impgraph.hxx.
Referenced by operator=(), and setContext().
|
private |
Definition at line 88 of file impgraph.hxx.
Referenced by clear(), getSizeBytes(), isAvailable(), operator=(), operator==(), setPrepared(), swapIn(), and updateFromLoadedGraphic().
|
private |
Definition at line 78 of file impgraph.hxx.
Referenced by clear(), dumpState(), getAnimationLoopCount(), isAlpha(), isAnimated(), isAvailable(), isEPS(), isTransparent(), operator=(), setPrepared(), swapIn(), swapInFromStream(), swapOut(), and updateFromLoadedGraphic().
|
private |
Definition at line 76 of file impgraph.hxx.
Referenced by clear(), draw(), dumpState(), getBitmap(), getBitmapEx(), getChecksum(), getGDIMetaFile(), getPrefMapMode(), getPrefSize(), getSizeBytes(), isAlpha(), isEPS(), isSupportedGraphic(), isTransparent(), operator=(), operator==(), setDefaultType(), setPrepared(), setValuesForPrefMapMod(), setValuesForPrefSize(), swapIn(), swapInContent(), swapInGraphic(), swapOutContent(), and swapOutGraphic().
|
mutableprivate |
Definition at line 82 of file impgraph.hxx.
Referenced by getChecksum(), swapIn(), swapInFromStream(), and updateFromLoadedGraphic().
|
mutableprivate |
Definition at line 77 of file impgraph.hxx.
Referenced by clear(), dumpState(), getSizeBytes(), operator=(), swapIn(), swapInFromStream(), and updateFromLoadedGraphic().
|
private |
Definition at line 72 of file impgraph.hxx.
Referenced by clearGraphics(), draw(), getAnimation(), getAnimationLoopCount(), getAnimationNotifyHdl(), getBitmap(), getBitmapEx(), getChecksum(), getSizeBytes(), ImpGraphic(), isAlpha(), isAnimated(), isTransparent(), operator=(), operator==(), setAnimationNotifyHdl(), setValuesForPrefMapMod(), setValuesForPrefSize(), startAnimation(), stopAnimation(), swapInGraphic(), swapOutGraphic(), and updateFromLoadedGraphic().
|
private |
Definition at line 73 of file impgraph.hxx.
Referenced by operator=(), and setContext().
|
private |
Definition at line 75 of file impgraph.hxx.
Referenced by dumpState(), getGfxLink(), getSharedGfxLink(), isGfxLink(), operator=(), operator==(), setGfxLink(), setPrepared(), swapIn(), swapOut(), and swapOutGraphic().
|
private |
Definition at line 74 of file impgraph.hxx.
Referenced by clear(), getSwapFileStream(), operator=(), swapIn(), and swapOut().
|
private |
Definition at line 84 of file impgraph.hxx.