LibreOffice Module filter (master) 1
|
#include <escherex.hxx>
Public Member Functions | |
sal_uInt32 | GetBlibStoreContainerSize (SvStream const *pMergePicStreamBSE=nullptr) const |
void | WriteBlibStoreContainer (SvStream &rStrm, SvStream *pMergePicStreamBSE=nullptr) |
void | WriteBlibStoreEntry (SvStream &rStrm, sal_uInt32 nBlipId, sal_uInt32 nResize) |
sal_uInt32 | GetBlibID (SvStream &rPicOutStream, GraphicObject const &pGraphicObject, const css::awt::Rectangle *pVisArea=nullptr, const GraphicAttr *pGrafikAttr=nullptr, const bool ooxmlExport=false) |
bool | HasGraphics () const |
void | SetNewBlipStreamOffset (sal_Int32 nOffset) |
bool | GetPrefSize (const sal_uInt32 nBlibId, Size &rSize, MapMode &rMapMode) |
void | SetBaseURI (const OUString &rBaseURI) |
const OUString & | GetBaseURI () const |
EscherGraphicProvider (EscherGraphicProviderFlags nFlags=EscherGraphicProviderFlags::NONE) | |
virtual | ~EscherGraphicProvider () |
EscherGraphicProvider & | operator= (EscherGraphicProvider const &)=delete |
EscherGraphicProvider (EscherGraphicProvider const &)=delete | |
Protected Member Functions | |
sal_uInt32 | ImplInsertBlib (EscherBlibEntry *p_EscherBlibEntry) |
Private Attributes | |
EscherGraphicProviderFlags | mnFlags |
std::vector< std::unique_ptr< EscherBlibEntry > > | mvBlibEntrys |
OUString | maBaseURI |
Definition at line 571 of file escherex.hxx.
EscherGraphicProvider::EscherGraphicProvider | ( | EscherGraphicProviderFlags | nFlags = EscherGraphicProviderFlags::NONE | ) |
Definition at line 4004 of file escherex.cxx.
References mnFlags.
|
virtual |
Definition at line 4009 of file escherex.cxx.
|
delete |
|
inline |
Definition at line 602 of file escherex.hxx.
sal_uInt32 EscherGraphicProvider::GetBlibID | ( | SvStream & | rPicOutStream, |
GraphicObject const & | pGraphicObject, | ||
const css::awt::Rectangle * | pVisArea = nullptr , |
||
const GraphicAttr * | pGrafikAttr = nullptr , |
||
const bool | ooxmlExport = false |
||
) |
Definition at line 4115 of file escherex.cxx.
References ZCodec::BeginCompression(), EMF, ZCodec::EndCompression(), ERRCODE_NONE, GraphicConverter::Export(), GraphicFilter::ExportGraphic(), SvMemoryStream::GetData(), GfxLink::GetData(), GfxLink::GetDataSize(), GraphicFilter::GetExportFormatNumberForShortName(), Graphic::GetGfxLink(), GraphicFilter::GetGraphicFilter(), GraphicObject::GetTransformedGraphic(), GfxLink::GetType(), Graphic::GetType(), GraphicObject::GetUniqueID(), Size::Height(), gentoken::i, ImplInsertBlib(), Graphic::IsAnimated(), GfxLink::IsEMF(), Graphic::IsGfxLink(), lcl_SizeToEmu(), mnFlags, mvBlibEntrys, nPos, PEG, PNG, SvStream::ReadBytes(), SAL_WARN_IF, SvStream::Seek(), STREAM_SEEK_TO_BEGIN, SvStream::Tell(), SvMemoryStream::TellEnd(), u, UNKNOWN, UseInstances, Size::Width(), WMF, ZCodec::Write(), SvStream::WriteBytes(), SvStream::WriteInt32(), SvStream::WriteUChar(), SvStream::WriteUInt16(), and SvStream::WriteUInt32().
Referenced by EscherPropertyContainer::CreateBlipPropertiesforOLEControl(), and EscherPropertyContainer::ImplCreateEmbeddedBmp().
sal_uInt32 EscherGraphicProvider::GetBlibStoreContainerSize | ( | SvStream const * | pMergePicStreamBSE = nullptr | ) | const |
Definition at line 4027 of file escherex.cxx.
References gentoken::i, mnSize, and mvBlibEntrys.
Referenced by WriteBlibStoreContainer().
bool EscherGraphicProvider::GetPrefSize | ( | const sal_uInt32 | nBlibId, |
Size & | rSize, | ||
MapMode & | rMapMode | ||
) |
Definition at line 4103 of file escherex.cxx.
References EscherBlibEntry::maPrefMapMode, EscherBlibEntry::maPrefSize, and mvBlibEntrys.
Referenced by EscherPropertyContainer::ImplCreateGraphicAttributes().
|
inline |
Definition at line 595 of file escherex.hxx.
|
protected |
|
delete |
|
inline |
Definition at line 601 of file escherex.hxx.
void EscherGraphicProvider::SetNewBlipStreamOffset | ( | sal_Int32 | nOffset | ) |
Definition at line 4013 of file escherex.cxx.
References gentoken::i, and mvBlibEntrys.
void EscherGraphicProvider::WriteBlibStoreContainer | ( | SvStream & | rStrm, |
SvStream * | pMergePicStreamBSE = nullptr |
||
) |
Definition at line 4046 of file escherex.cxx.
References DBG_ASSERT, ESCHER_BlipFirst, ESCHER_BstoreContainer, GetBlibStoreContainerSize(), gentoken::i, EscherBlibEntry::meBlibType, EscherBlibEntry::mnPictureOffset, EscherBlibEntry::mnSize, EscherBlibEntry::mnSizeExtra, mvBlibEntrys, SvStream::ReadBytes(), SvStream::ReadUInt16(), SvStream::ReadUInt32(), SvStream::Seek(), SvStream::Tell(), EscherBlibEntry::WriteBlibEntry(), SvStream::WriteBytes(), SvStream::WriteUInt16(), and SvStream::WriteUInt32().
void EscherGraphicProvider::WriteBlibStoreEntry | ( | SvStream & | rStrm, |
sal_uInt32 | nBlipId, | ||
sal_uInt32 | nResize | ||
) |
Definition at line 4038 of file escherex.cxx.
References mvBlibEntrys.
|
private |
Definition at line 577 of file escherex.hxx.
|
private |
Definition at line 574 of file escherex.hxx.
Referenced by GetBlibID().
|
private |
Definition at line 576 of file escherex.hxx.
Referenced by GetBlibID(), GetBlibStoreContainerSize(), GetPrefSize(), ImplInsertBlib(), SetNewBlipStreamOffset(), WriteBlibStoreContainer(), and WriteBlibStoreEntry().