LibreOffice Module sw (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SwEscherEx Class Reference

#include <escher.hxx>

Inheritance diagram for SwEscherEx:
[legend]
Collaboration diagram for SwEscherEx:
[legend]

Public Member Functions

 SwEscherEx (SvStream *pStrm, WW8Export &rWW8Wrt)
 
virtual ~SwEscherEx () override
 
void FinishEscher ()
 
virtual void WritePictures () override
 
virtual void WriteFrameExtraData (const SwFrameFormat &rFormat) override
 
EscherExHostAppDataStartShape (const css::uno::Reference< css::drawing::XShape > &, const tools::Rectangle *) override
 
- Public Member Functions inherited from SwBasicEscherEx
 SwBasicEscherEx (SvStream *pStrm, WW8Export &rWrt)
 
sal_Int32 WriteGrfFlyFrame (const SwFrameFormat &rFormat, sal_uInt32 nShapeId)
 
void WriteGrfBullet (const Graphic &)
 
sal_Int32 WriteOLEFlyFrame (const SwFrameFormat &rFormat, sal_uInt32 nShapeId)
 
void WriteEmptyFlyFrame (const SwFrameFormat &rFormat, sal_uInt32 nShapeId)
 
virtual void WriteFrameExtraData (const SwFrameFormat &)
 
virtual void WritePictures ()
 
virtual ~SwBasicEscherEx () override
 
bool IsRelUrl () const
 
OUString GetBasePath () const
 
OUString BuildFileName (sal_uInt16 &rnLevel, bool &rbRel, const OUString &rUrl)
 
void WriteHyperlinkWithinFly (SvMemoryStream &rStrm, const SwFormatURL *pINetFormatArg)
 
void PreWriteHyperlinkWithinFly (const SwFrameFormat &rFormat, EscherPropertyContainer &rPropOpt)
 
- Public Member Functions inherited from EscherEx
 EscherEx (std::shared_ptr< EscherExGlobal > xGlobal, SvStream *pOutStrm, bool bOOXML=false)
 
virtual ~EscherEx () override
 
virtual sal_uInt32 GenerateShapeId ()
 
EscherGraphicProviderGetGraphicProvider ()
 
SvStreamQueryPictureStream ()
 
void Flush (SvStream *pPicStreamMergeBSE=nullptr)
 
void InsertAtCurrentPos (sal_uInt32 nBytes)
 
void InsertPersistOffset (sal_uInt32 nKey, sal_uInt32 nOffset)
 
void ReplacePersistOffset (sal_uInt32 nKey, sal_uInt32 nOffset)
 
sal_uInt32 GetPersistOffset (sal_uInt32 nKey)
 
bool SeekToPersistOffset (sal_uInt32 nKey)
 
void InsertAtPersistOffset (sal_uInt32 nKey, sal_uInt32 nValue)
 
void SetEditAs (const OUString &rEditAs)
 
const OUString & GetEditAs () const
 
SvStreamGetStream () const
 
sal_uInt64 GetStreamPos () const
 
virtual void OpenContainer (sal_uInt16 nEscherContainer, int nRecInstance=0)
 
virtual void CloseContainer ()
 
void BeginAtom ()
 
void EndAtom (sal_uInt16 nRecType, int nRecVersion=0, int nRecInstance=0)
 
void AddAtom (sal_uInt32 nAtomSitze, sal_uInt16 nRecType, int nRecVersion=0, int nRecInstance=0)
 
void AddChildAnchor (const tools::Rectangle &rRectangle)
 
void AddClientAnchor (const tools::Rectangle &rRectangle)
 
virtual sal_uInt32 EnterGroup (const OUString &rShapeName, const tools::Rectangle *pBoundRect)
 
sal_uInt32 EnterGroup (const tools::Rectangle *pBoundRect=nullptr)
 
sal_uInt32 GetGroupLevel () const
 
void SetGroupSnapRect (sal_uInt32 nGroupLevel, const tools::Rectangle &rRect)
 
void SetGroupLogicRect (sal_uInt32 nGroupLevel, const tools::Rectangle &rRect)
 
virtual void LeaveGroup ()
 
virtual void AddShape (sal_uInt32 nShpInstance, ShapeFlag nFlagIds, sal_uInt32 nShapeID=0)
 
virtual void Commit (EscherPropertyContainer &rProps, const tools::Rectangle &rRect)
 
void AddSdrPage (const SdrPage &rPage, bool ooxmlExport=false)
 
void AddUnoShapes (const css::uno::Reference< css::drawing::XShapes > &rxShapes, bool ooxmlExport=false)
 
sal_uInt32 AddSdrObject (const SdrObject &rObj, bool ooxmlExport=false, sal_uInt32 nId=0)
 
virtual void AddSdrObjectVMLObject (const SdrObject &)
 
void EndSdrObjectPage ()
 
virtual EscherExHostAppDataStartShape (const css::uno::Reference< css::drawing::XShape > &rShape, const tools::Rectangle *pChildAnchor)
 
virtual void EndShape (sal_uInt16 nShapeType, sal_uInt32 nShapeID)
 
virtual EscherExHostAppDataEnterAdditionalTextGroup ()
 
virtual sal_uInt32 QueryTextID (const css::uno::Reference< css::drawing::XShape > &, sal_uInt32 nShapeId)
 
sal_uInt32 AddDummyShape ()
 
void SetHellLayerId (SdrLayerID nId)
 
SdrLayerID GetHellLayerId () const
 
- Public Member Functions inherited from EscherPersistTable
bool PtIsID (sal_uInt32 nID)
 
void PtInsert (sal_uInt32 nID, sal_uInt32 nOfs)
 
void PtDelete (sal_uInt32 nID)
 
sal_uInt32 PtGetOffsetByID (sal_uInt32 nID)
 
void PtReplace (sal_uInt32 nID, sal_uInt32 nOfs)
 
void PtReplaceOrInsert (sal_uInt32 nID, sal_uInt32 nOfs)
 
 EscherPersistTable ()
 
virtual ~EscherPersistTable ()
 
EscherPersistTableoperator= (EscherPersistTable const &)=delete
 
 EscherPersistTable (EscherPersistTable const &)=delete
 

Private Member Functions

sal_uInt32 GetFlyShapeId (const SwFrameFormat &rFormat, unsigned int nHdFtIndex, DrawObjPointerVector &rPVec)
 
void MakeZOrderArrAndFollowIds (std::vector< DrawObj > &rSrcArr, DrawObjPointerVector &rDstArr)
 
sal_Int32 WriteFlyFrame (const DrawObj &rObj, sal_uInt32 &rShapeId, DrawObjPointerVector &rPVec)
 
sal_Int32 WriteTextFlyFrame (const DrawObj &rObj, sal_uInt32 nShapeId, sal_uInt32 nTextBox, DrawObjPointerVector &rPVec)
 
void WriteOCXControl (const SwFrameFormat &rFormat, sal_uInt32 nShapeId)
 
virtual sal_Int32 WriteFlyFrameAttr (const SwFrameFormat &rFormat, MSO_SPT eShapeType, EscherPropertyContainer &rPropOpt) override
 
virtual sal_uInt32 QueryTextID (const css::uno::Reference< css::drawing::XShape > &, sal_uInt32) override
 
virtual void SetPicId (const SdrObject &rSdrObj, sal_uInt32 nShapeId, EscherPropertyContainer &rPropOpt) override
 
 SwEscherEx (const SwEscherEx &)=delete
 
SwEscherExoperator= (const SwEscherEx &)=delete
 

Private Attributes

std::vector< sal_uLongm_aFollowShpIds
 
EscherExHostAppData m_aHostData
 
WinwordAnchoring m_aWinwordAnchoring
 
WW8_WrPlcTextBoxesm_pTextBxs
 

Additional Inherited Members

- Static Public Member Functions inherited from EscherEx
static sal_uInt32 GetColor (const sal_uInt32 nColor)
 
static sal_uInt32 GetColor (const Color &rColor)
 
static const SdrObjectGetSdrObject (const css::uno::Reference< css::drawing::XShape > &rXShape)
 
- Public Attributes inherited from EscherPersistTable
::std::vector< std::unique_ptr< EscherPersistEntry > > maPersistTable
 
- Protected Member Functions inherited from SwBasicEscherEx
virtual sal_Int32 WriteFlyFrameAttr (const SwFrameFormat &rFormat, MSO_SPT eShapeType, EscherPropertyContainer &rPropOpt)
 
void WriteBrushAttr (const SvxBrushItem &rBrush, EscherPropertyContainer &rPropOpt)
 
void WriteOLEPicture (EscherPropertyContainer &rPropOpt, ShapeFlag nShapeFlags, const Graphic &rGraphic, const SdrObject &rObj, sal_uInt32 nShapeId, const css::awt::Rectangle *pVisArea)
 
sal_Int32 DrawModelToEmu (sal_Int32 nVal) const
 
virtual void SetPicId (const SdrObject &, sal_uInt32, EscherPropertyContainer &)
 
SdrLayerID GetInvisibleHellId () const
 
- Protected Member Functions inherited from EscherEx
bool DoSeek (sal_uInt32 nKey)
 
- Static Protected Member Functions inherited from SwBasicEscherEx
static void WriteGrfAttr (const SwNoTextNode &rNd, const SwFrameFormat &rFormat, EscherPropertyContainer &rPropOpt)
 
static sal_Int32 ToFract16 (sal_Int32 nVal, sal_uInt32 nMax)
 
- Protected Attributes inherited from SwBasicEscherEx
WW8ExportmrWrt
 
SvStreammpEscherStrm
 
tools::Long mnEmuMul
 
tools::Long mnEmuDiv
 
- Protected Attributes inherited from EscherEx
std::shared_ptr< EscherExGlobalmxGlobal
 
std::unique_ptr< ImplEESdrWritermpImplEESdrWriter
 
std::unique_ptr< SvStreammxOwnStrm
 
SvStreammpOutStrm
 
sal_uInt32 mnStrmStartOfs
 
std::vector< sal_uInt32 > mOffsets
 
std::vector< sal_uInt16 > mRecTypes
 
sal_uInt32 mnCurrentDg
 
sal_uInt32 mnCountOfs
 
sal_uInt32 mnGroupLevel
 
SdrLayerID mnHellLayerId
 
bool mbEscherSpgr
 
bool mbEscherDg
 
bool mbOOXML
 
OUString mEditAs
 

Detailed Description

Definition at line 141 of file escher.hxx.

Constructor & Destructor Documentation

◆ SwEscherEx() [1/2]

SwEscherEx::SwEscherEx ( SvStream pStrm,
WW8Export rWW8Wrt 
)

Definition at line 2173 of file wrtw8esh.cxx.

References EscherEx::AddAtom(), EscherEx::AddDummyShape(), EscherPropertyContainer::AddOpt(), EscherEx::AddSdrObject(), EscherEx::AddShape(), EscherEx::CloseContainer(), EscherPropertyContainer::Commit(), ww8::Frame::eDrawing, ww8::Frame::eFormControl, ww8::Frame::eGraphic, EscherEx::EndSdrObjectPage(), EscherEx::EnterGroup(), ww8::Frame::eOle, ePos, ESCHER_ClientData, ESCHER_DgContainer, ESCHER_DggContainer, ESCHER_Prop_fBackground, ESCHER_Prop_fNoLineDrawDash, ESCHER_Prop_lineColor, ESCHER_Prop_lineWidth, ESCHER_Prop_shadowColor, ESCHER_ShpInst_Rectangle, ESCHER_SpContainer, ESCHER_SplitMenuColors, ww8::Frame::eTextBox, SwFrameFormat::FindRealSdrObject(), EscherEx::GenerateShapeId(), ww8::Frame::GetFrameFormat(), SwFormat::GetItemIfSet(), SwPageDesc::GetMaster(), PlcDrawObj::GetObjArr(), SwDoc::GetPageDesc(), EscherEx::GetStream(), ww8::Frame::GetWriterType(), GPOS_AREA, GPOS_NONE, i, m_aHostData, m_aWinwordAnchoring, MSWordExportBase::m_pHFSdrObjs, MSWordExportBase::m_pHFTextBxs, MSWordExportBase::m_pSdrObjs, m_pTextBxs, MSWordExportBase::m_pTextBxs, MSWordExportBase::m_rDoc, DrawObj::maContent, MakeZOrderArrAndFollowIds(), SwBasicEscherEx::mrWrt, EscherEx::OpenContainer(), RES_BACKGROUND(), WinwordAnchoring::SetAnchoring(), EscherExHostAppData::SetClientData(), DrawObj::SetShapeDetails(), PlcDrawObj::size(), SwBasicEscherEx::WriteBrushAttr(), SvStream::WriteChar(), WriteFlyFrame(), SvStream::WriteInt32(), WriteOCXControl(), SvStream::WriteUInt16(), and SvStream::WriteUInt32().

◆ ~SwEscherEx()

SwEscherEx::~SwEscherEx ( )
overridevirtual

Definition at line 2306 of file wrtw8esh.cxx.

◆ SwEscherEx() [2/2]

SwEscherEx::SwEscherEx ( const SwEscherEx )
privatedelete

Member Function Documentation

◆ FinishEscher()

void SwEscherEx::FinishEscher ( )

◆ GetFlyShapeId()

sal_uInt32 SwEscherEx::GetFlyShapeId ( const SwFrameFormat rFormat,
unsigned int  nHdFtIndex,
DrawObjPointerVector rPVec 
)
private

Definition at line 2957 of file wrtw8esh.cxx.

References FindPos(), EscherEx::GenerateShapeId(), m_aFollowShpIds, and nPos.

Referenced by WriteFlyFrame().

◆ MakeZOrderArrAndFollowIds()

void SwEscherEx::MakeZOrderArrAndFollowIds ( std::vector< DrawObj > &  rSrcArr,
DrawObjPointerVector rDstArr 
)
private

◆ operator=()

SwEscherEx & SwEscherEx::operator= ( const SwEscherEx )
privatedelete

◆ QueryTextID()

sal_uInt32 SwEscherEx::QueryTextID ( const css::uno::Reference< css::drawing::XShape > &  ,
sal_uInt32   
)
overrideprivatevirtual

◆ SetPicId()

void SwEscherEx::SetPicId ( const SdrObject rSdrObj,
sal_uInt32  nShapeId,
EscherPropertyContainer rPropOpt 
)
overrideprivatevirtual

◆ StartShape()

EscherExHostAppData * SwEscherEx::StartShape ( const css::uno::Reference< css::drawing::XShape > &  ,
const tools::Rectangle  
)
inlineoverridevirtual

Reimplemented from EscherEx.

Definition at line 174 of file escher.hxx.

References m_aHostData.

◆ WriteFlyFrame()

sal_Int32 SwEscherEx::WriteFlyFrame ( const DrawObj rObj,
sal_uInt32 &  rShapeId,
DrawObjPointerVector rPVec 
)
private

◆ WriteFlyFrameAttr()

sal_Int32 SwEscherEx::WriteFlyFrameAttr ( const SwFrameFormat rFormat,
MSO_SPT  eShapeType,
EscherPropertyContainer rPropOpt 
)
overrideprivatevirtual

◆ WriteFrameExtraData()

void SwEscherEx::WriteFrameExtraData ( const SwFrameFormat rFormat)
overridevirtual

◆ WriteOCXControl()

void SwEscherEx::WriteOCXControl ( const SwFrameFormat rFormat,
sal_uInt32  nShapeId 
)
private

◆ WritePictures()

void SwEscherEx::WritePictures ( )
overridevirtual

◆ WriteTextFlyFrame()

sal_Int32 SwEscherEx::WriteTextFlyFrame ( const DrawObj rObj,
sal_uInt32  nShapeId,
sal_uInt32  nTextBox,
DrawObjPointerVector rPVec 
)
private

Member Data Documentation

◆ m_aFollowShpIds

std::vector<sal_uLong> SwEscherEx::m_aFollowShpIds
private

Definition at line 144 of file escher.hxx.

Referenced by GetFlyShapeId(), MakeZOrderArrAndFollowIds(), and WriteTextFlyFrame().

◆ m_aHostData

EscherExHostAppData SwEscherEx::m_aHostData
private

Definition at line 145 of file escher.hxx.

Referenced by StartShape(), and SwEscherEx().

◆ m_aWinwordAnchoring

WinwordAnchoring SwEscherEx::m_aWinwordAnchoring
private

Definition at line 146 of file escher.hxx.

Referenced by SwEscherEx(), and WriteFrameExtraData().

◆ m_pTextBxs

WW8_WrPlcTextBoxes* SwEscherEx::m_pTextBxs
private

Definition at line 147 of file escher.hxx.

Referenced by QueryTextID(), SetPicId(), SwEscherEx(), and WriteFlyFrame().


The documentation for this class was generated from the following files: