LibreOffice Module vcl (master)
1
|
#include <impgraph.hxx>
Public Member Functions | |
ImpGraphic () | |
ImpGraphic (const ImpGraphic &rImpGraphic) | |
ImpGraphic (ImpGraphic &&rImpGraphic) noexcept | |
ImpGraphic (const GraphicExternalLink &rExternalLink) | |
ImpGraphic (std::shared_ptr< GfxLink > const &rGfxLink, 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 |
OUString | getSwapFileURL () const |
void | updateFromLoadedGraphic (const ImpGraphic *graphic) |
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 nExtraData, OutputDevice *pFirstFrameOutDev) |
void | stopAnimation (const OutputDevice *pOutputDevice, tools::Long nExtraData) |
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 58 of file impgraph.hxx.
ImpGraphic::ImpGraphic | ( | ) |
Definition at line 83 of file impgraph.cxx.
ImpGraphic::ImpGraphic | ( | const ImpGraphic & | rImpGraphic | ) |
Definition at line 93 of file impgraph.cxx.
References maBitmapEx, meType, mpAnimation, and mpContext.
|
noexcept |
Definition at line 116 of file impgraph.cxx.
ImpGraphic::ImpGraphic | ( | const GraphicExternalLink & | rExternalLink | ) |
ImpGraphic::ImpGraphic | ( | std::shared_ptr< GfxLink > const & | rGfxLink, |
sal_Int32 | nPageIndex = 0 |
||
) |
Definition at line 137 of file impgraph.cxx.
References false, maSwapInfo, ImpSwapInfo::mbIsAlpha, ImpSwapInfo::mbIsAnimated, ImpSwapInfo::mbIsEPS, ImpSwapInfo::mbIsTransparent, meType, ImpSwapInfo::mnAnimationLoopCount, and ImpSwapInfo::mnPageIndex.
ImpGraphic::ImpGraphic | ( | const BitmapEx & | rBmpEx | ) |
Definition at line 165 of file impgraph.cxx.
ImpGraphic::ImpGraphic | ( | const std::shared_ptr< VectorGraphicData > & | rVectorGraphicDataPtr | ) |
Definition at line 176 of file impgraph.cxx.
ImpGraphic::ImpGraphic | ( | const Animation & | rAnimation | ) |
Definition at line 187 of file impgraph.cxx.
References false, meType, and mpAnimation.
ImpGraphic::ImpGraphic | ( | const GDIMetaFile & | rMtf | ) |
Definition at line 199 of file impgraph.cxx.
References false, GdiMetafile, and meType.
ImpGraphic::~ImpGraphic | ( | ) |
Definition at line 210 of file impgraph.cxx.
References vcl::graphic::Manager::get(), and vcl::graphic::Manager::unregisterGraphic().
|
private |
Definition at line 436 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 372 of file impgraph.cxx.
References BitmapEx::Clear(), GDIMetaFile::Clear(), maBitmapEx, maMetaFile, maVectorGraphicData, and mpAnimation.
Referenced by clear(), swapInFromStream(), and swapOut().
|
private |
Definition at line 352 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 1004 of file impgraph.cxx.
References Bitmap, Default, BitmapEx::Draw(), ensureAvailable(), GdiMetafile, GDIMetaFile::GetPrefSize(), getVectorGraphicReplacement(), BitmapEx::IsEmpty(), isSwappedOut(), maBitmapEx, maMetaFile, maVectorGraphicData, meType, mpAnimation, and NONE.
Referenced by getBitmap().
|
private |
Definition at line 1044 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().
|
private |
Definition at line 1369 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 676 of file impgraph.cxx.
References ensureAvailable(), and mpAnimation.
Referenced by GraphicID::GraphicID().
|
private |
Definition at line 1125 of file impgraph.cxx.
References maSwapInfo, mbSwapOut, ImpSwapInfo::mnAnimationLoopCount, and mpAnimation.
Referenced by createSwapInfo().
Definition at line 1113 of file impgraph.cxx.
References ensureAvailable(), and mpAnimation.
|
private |
Definition at line 535 of file impgraph.cxx.
References Bitmap, COL_WHITE, Default, draw(), Enable, ensureAvailable(), basegfx::fround(), GdiMetafile, GraphicConversionParameters::getAntiAliase(), BitmapEx::GetBitmap(), Size::getHeight(), getPrefMapMode(), GDIMetaFile::GetPrefMapMode(), getPrefSize(), GDIMetaFile::GetPrefSize(), GraphicConversionParameters::getSizePixel(), GraphicConversionParameters::getSnapHorVerLines(), getType(), GraphicConversionParameters::getUnlimitedSize(), getVectorGraphicReplacement(), Size::getWidth(), GRAPHIC_MTFTOBMP_MAXEXT, Size::Height(), BitmapEx::IsEmpty(), Bitmap::IsEmpty(), isSupportedGraphic(), maBitmapEx, maMetaFile, maVectorGraphicData, meType, mpAnimation, PixelSnapHairline, Point, Bitmap::Scale(), Size::setHeight(), Bitmap::SetPrefMapMode(), Bitmap::SetPrefSize(), Size::setWidth(), and Size::Width().
Referenced by getBitmapEx().
|
private |
Definition at line 637 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 687 of file impgraph.cxx.
References ensureAvailable(), and maBitmapEx.
|
private |
Definition at line 1717 of file impgraph.cxx.
References Bitmap, Default, ensureAvailable(), GdiMetafile, SvmWriter::GetChecksum(), BitmapEx::GetChecksum(), maBitmapEx, maMetaFile, maVectorGraphicData, meType, mnChecksum, mpAnimation, and NONE.
Referenced by GraphicID::GraphicID().
|
inlineprivate |
Definition at line 189 of file impgraph.hxx.
|
private |
Definition at line 693 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, Point, GDIMetaFile::SetPrefMapMode(), GDIMetaFile::SetPrefSize(), GDIMetaFile::Stop(), GDIMetaFile::WindStart(), and Wmf.
Referenced by GraphicID::GraphicID().
|
private |
Definition at line 1705 of file impgraph.cxx.
References ensureAvailable(), and mpGfxLink.
|
inlineprivate |
Definition at line 110 of file impgraph.hxx.
References GraphicExternalLink::msURL.
Referenced by swapOut().
|
private |
Definition at line 1750 of file impgraph.cxx.
References isSwappedOut(), maSwapInfo, maVectorGraphicData, and ImpSwapInfo::mnPageIndex.
Referenced by createSwapInfo().
|
private |
Definition at line 875 of file impgraph.cxx.
References Bitmap, Default, GdiMetafile, BitmapEx::GetPrefMapMode(), GDIMetaFile::GetPrefMapMode(), BitmapEx::GetPrefSize(), BitmapEx::IsEmpty(), isSwappedOut(), maBitmapEx, maMetaFile, ImpSwapInfo::maPrefMapMode, maSwapInfo, maVectorGraphicData, meType, and NONE.
Referenced by createSwapInfo(), getBitmap(), and updateFromLoadedGraphic().
|
private |
Definition at line 774 of file impgraph.cxx.
References Bitmap, Default, basegfx::fround(), GdiMetafile, Size::getHeight(), Range2D< double, DoubleTraits >::getHeight(), BitmapEx::GetPrefSize(), GDIMetaFile::GetPrefSize(), BitmapEx::GetSizePixel(), Size::getWidth(), Range2D< double, DoubleTraits >::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 1700 of file impgraph.cxx.
References mpGfxLink.
|
private |
Definition at line 962 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 762 of file impgraph.cxx.
References getBitmapEx(), BitmapEx::GetSizePixel(), isSwappedOut(), ImpSwapInfo::maSizePixel, and maSwapInfo.
OUString ImpGraphic::getSwapFileURL | ( | ) | const |
Definition at line 76 of file impgraph.cxx.
References INetURLObject::NONE.
|
inlineprivate |
Definition at line 133 of file impgraph.hxx.
Referenced by getBitmap(), and GraphicID::GraphicID().
|
inlineprivate |
Definition at line 120 of file impgraph.hxx.
|
private |
Definition at line 345 of file impgraph.cxx.
References ensureAvailable(), and maVectorGraphicData.
Referenced by GraphicID::GraphicID().
|
private |
Gets the bitmap replacement for a vector graphic.
Definition at line 523 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 478 of file impgraph.cxx.
References Bitmap, BitmapEx::IsAlpha(), maBitmapEx, maSwapInfo, maVectorGraphicData, ImpSwapInfo::mbIsAlpha, mbSwapOut, meType, and mpAnimation.
Referenced by createSwapInfo().
|
private |
Definition at line 498 of file impgraph.cxx.
References maSwapInfo, ImpSwapInfo::mbIsAnimated, mbSwapOut, and mpAnimation.
Referenced by createSwapInfo(), GraphicID::GraphicID(), setValuesForPrefMapMod(), setValuesForPrefSize(), and swapOutGraphic().
|
private |
Definition at line 513 of file impgraph.cxx.
References mbPrepared, and mbSwapOut.
Referenced by vcl::graphic::Manager::getGraphicSizeBytes(), and operator==().
|
inlineprivate |
Definition at line 192 of file impgraph.hxx.
|
private |
Definition at line 503 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 1712 of file impgraph.cxx.
References mpGfxLink.
|
private |
Definition at line 457 of file impgraph.cxx.
Referenced by getBitmap(), getBitmapEx(), setValuesForPrefSize(), startAnimation(), and stopAnimation().
|
inline |
Definition at line 218 of file impgraph.hxx.
Referenced by createSwapInfo(), draw(), ensureAvailable(), getPageNumber(), getPrefMapMode(), getPrefSize(), getSizePixel(), startAnimation(), stopAnimation(), swapIn(), swapOut(), swapOutContent(), and swapOutGraphic().
|
private |
Definition at line 462 of file impgraph.cxx.
References Bitmap, BitmapEx::IsAlpha(), maBitmapEx, maSwapInfo, maVectorGraphicData, ImpSwapInfo::mbIsTransparent, mbSwapOut, meType, and mpAnimation.
Referenced by createSwapInfo().
|
private |
Definition at line 518 of file impgraph.cxx.
References ensureAvailable().
|
inlineprivate |
Definition at line 108 of file impgraph.hxx.
|
private |
Definition at line 215 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 257 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 285 of file impgraph.cxx.
References Bitmap, Default, GdiMetafile, isAvailable(), maBitmapEx, maMetaFile, maVectorGraphicData, mbPrepared, meType, mpAnimation, mpGfxLink, and NONE.
|
inline |
Definition at line 215 of file impgraph.hxx.
|
private |
Definition at line 1425 of file impgraph.cxx.
References ImpSwapInfo::maPrefMapMode, ImpSwapInfo::maPrefSize, maSwapInfo, maVectorGraphicData, ImpSwapInfo::mnPageIndex, setValuesForPrefMapMod(), and setValuesForPrefSize().
Referenced by swapIn(), and updateFromLoadedGraphic().
Definition at line 1105 of file impgraph.cxx.
References ensureAvailable(), and mpAnimation.
|
private |
Definition at line 1133 of file impgraph.cxx.
References mbDummyContext, and mpContext.
|
private |
Definition at line 451 of file impgraph.cxx.
|
inlineprivate |
Definition at line 191 of file impgraph.hxx.
Definition at line 1693 of file impgraph.cxx.
References ensureAvailable(), and mpGfxLink.
|
inlineprivate |
Definition at line 115 of file impgraph.hxx.
References GraphicExternalLink::msURL.
Referenced by swapIn().
Definition at line 956 of file impgraph.cxx.
References ensureAvailable(), and setValuesForPrefMapMod().
Definition at line 869 of file impgraph.cxx.
References ensureAvailable(), and setValuesForPrefSize().
Referenced by updateFromLoadedGraphic().
Definition at line 380 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().
Definition at line 919 of file impgraph.cxx.
References Bitmap, Default, GdiMetafile, isAnimated(), maBitmapEx, maMetaFile, maVectorGraphicData, meType, mpAnimation, NONE, BitmapEx::SetPrefMapMode(), and GDIMetaFile::SetPrefMapMode().
Referenced by restoreFromSwapInfo(), and setPrefMapMode().
Definition at line 829 of file impgraph.cxx.
References Bitmap, Default, GdiMetafile, Size::getHeight(), Size::getWidth(), isAnimated(), BitmapEx::IsEmpty(), isSupportedGraphic(), maBitmapEx, maExPrefSize, maMetaFile, maVectorGraphicData, meType, mpAnimation, NONE, BitmapEx::SetPrefSize(), and GDIMetaFile::SetPrefSize().
Referenced by restoreFromSwapInfo(), and setPrefSize().
|
private |
Definition at line 1087 of file impgraph.cxx.
References ensureAvailable(), isSupportedGraphic(), isSwappedOut(), and mpAnimation.
|
private |
Definition at line 1097 of file impgraph.cxx.
References ensureAvailable(), isSupportedGraphic(), isSwappedOut(), and mpAnimation.
bool ImpGraphic::swapIn | ( | ) |
Definition at line 1463 of file impgraph.cxx.
References utl::UcbStreamHelper::CreateStream(), vcl::graphic::Manager::get(), getSizeBytes(), GRAPHIC_STREAMBUFSIZE, Graphic::ImplGetImpGraphic(), isSwappedOut(), vcl::loadVectorGraphic(), maLastUsed, maVectorGraphicData, mbPrepared, mbSwapOut, meType, mnChecksum, mnSizeBytes, mpGfxLink, mpSwapFile, INetURLObject::NONE, restoreFromSwapInfo(), setOriginURL(), SOFFICE_FILEFORMAT_50, swapInFromStream(), vcl::graphic::Manager::swappedIn(), updateFromLoadedGraphic(), and xStream.
Referenced by ensureAvailable().
|
private |
Definition at line 1139 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 1558 of file impgraph.cxx.
References clear(), clearGraphics(), SvStream::GetError(), mbSwapOut, mnChecksum, mnSizeBytes, and swapInContent().
Referenced by swapIn().
|
private |
Definition at line 1582 of file impgraph.cxx.
References Animation, Bitmap, constEmfMagic, constPdfMagic, constSvgMagic, constWmfMagic, Emf, GdiMetafile, SvStream::GetError(), maBitmapEx, maMetaFile, maVectorGraphicData, meType, mpAnimation, nMagic, Pdf, rData, SvmReader::Read(), ReadAnimation(), SvStream::ReadBytes(), ReadDIBBitmapEx(), SvStream::ReadInt32(), SvStream::ReadUInt32(), Svg, Vector, and Wmf.
Referenced by swapInContent().
bool ImpGraphic::swapOut | ( | ) |
Definition at line 1296 of file impgraph.cxx.
References clearGraphics(), createSwapInfo(), vcl::graphic::Manager::get(), getOriginURL(), getSizeBytes(), utl::TempFile::GetURL(), GRAPHIC_STREAMBUFSIZE, isSwappedOut(), mbSwapOut, mpGfxLink, mpSwapFile, SOFFICE_FILEFORMAT_50, swapOutContent(), and vcl::graphic::Manager::swappedOut().
|
private |
Definition at line 1258 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 1173 of file impgraph.cxx.
References Animation, Bitmap, constEmfMagic, constPdfMagic, constSvgMagic, constWmfMagic, Default, Emf, ensureAvailable(), GdiMetafile, SvStream::GetError(), isAnimated(), isSwappedOut(), maBitmapEx, maMetaFile, maVectorGraphicData, meType, mpAnimation, NONE, Pdf, SvStream::SetError(), Svg, SVSTREAM_GENERALERROR, Vector, Wmf, SvmWriter::Write(), WriteAnimation(), SvStream::WriteBytes(), WriteDIBBitmapEx(), SvStream::WriteInt32(), and SvStream::WriteUInt32().
Referenced by swapOutContent().
void ImpGraphic::updateFromLoadedGraphic | ( | const ImpGraphic * | graphic | ) |
Definition at line 1382 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 60 of file impgraph.hxx.
|
friend |
Definition at line 61 of file impgraph.hxx.
|
friend |
Definition at line 62 of file impgraph.hxx.
|
private |
Definition at line 67 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 69 of file impgraph.hxx.
Referenced by getPrefSize(), getVectorGraphicReplacement(), and setValuesForPrefSize().
|
private |
Definition at line 84 of file impgraph.hxx.
Referenced by clear(), operator=(), and updateFromLoadedGraphic().
|
private |
Definition at line 86 of file impgraph.hxx.
Referenced by operator=(), and swapIn().
|
private |
Definition at line 66 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 70 of file impgraph.hxx.
Referenced by createSwapInfo(), getAnimationLoopCount(), getPageNumber(), getPrefMapMode(), getPrefSize(), getSizePixel(), ImpGraphic(), isAlpha(), isAnimated(), isEPS(), isTransparent(), operator=(), restoreFromSwapInfo(), setPrepared(), and updateFromLoadedGraphic().
|
private |
Definition at line 79 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 78 of file impgraph.hxx.
Referenced by operator=(), and setContext().
|
private |
Definition at line 87 of file impgraph.hxx.
Referenced by clear(), getSizeBytes(), isAvailable(), operator=(), operator==(), setPrepared(), swapIn(), and updateFromLoadedGraphic().
|
private |
Definition at line 77 of file impgraph.hxx.
Referenced by clear(), getAnimationLoopCount(), isAlpha(), isAnimated(), isAvailable(), isEPS(), isTransparent(), operator=(), setPrepared(), swapIn(), swapInFromStream(), swapOut(), and updateFromLoadedGraphic().
|
private |
Definition at line 75 of file impgraph.hxx.
Referenced by clear(), draw(), 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 81 of file impgraph.hxx.
Referenced by getChecksum(), swapIn(), swapInFromStream(), and updateFromLoadedGraphic().
|
mutableprivate |
Definition at line 76 of file impgraph.hxx.
Referenced by clear(), getSizeBytes(), operator=(), swapIn(), swapInFromStream(), and updateFromLoadedGraphic().
|
private |
Definition at line 71 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 72 of file impgraph.hxx.
Referenced by operator=(), and setContext().
|
private |
Definition at line 74 of file impgraph.hxx.
Referenced by getGfxLink(), getSharedGfxLink(), isGfxLink(), operator=(), operator==(), setGfxLink(), setPrepared(), swapIn(), and swapOut().
|
private |
Definition at line 73 of file impgraph.hxx.
Referenced by clear(), operator=(), swapIn(), and swapOut().
|
private |
Definition at line 83 of file impgraph.hxx.