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 ~SwBasicEscherEx () override
 
bool IsRelUrl ()
 
OUString GetBasePath ()
 
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 (const std::shared_ptr< EscherExGlobal > &rxGlobal, 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 ()
 
SvStreamGetStream () const
 
sal_uLong 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)
 
void AddUnoShapes (const css::uno::Reference< css::drawing::XShapes > &rxShapes)
 
sal_uInt32 AddSdrObject (const SdrObject &rObj, bool ooxmlExport=false)
 
virtual void AddSdrObjectVMLObject (const SdrObject &)
 
void EndSdrObjectPage ()
 
virtual void EndShape (sal_uInt16 nShapeType, sal_uInt32 nShapeID)
 
virtual EscherExHostAppDataEnterAdditionalTextGroup ()
 
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_uLongaFollowShpIds
 
EscherExHostAppData aHostData
 
WinwordAnchoring aWinwordAnchoring
 
WW8_WrPlcTextBoxespTextBxs
 

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
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
 
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
WW8ExportrWrt
 
SvStreampEscherStrm
 
long mnEmuMul
 
long mnEmuDiv
 
- Protected Attributes inherited from EscherEx
std::shared_ptr< EscherExGlobalmxGlobal
 
::std::unique_ptr< ImplEESdrWritermpImplEESdrWriter
 
SvStreammpOutStrm
 
bool mbOwnsStrm
 
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 140 of file escher.hxx.

Constructor & Destructor Documentation

SwEscherEx::SwEscherEx ( SvStream pStrm,
WW8Export rWW8Wrt 
)

Definition at line 2240 of file wrtw8esh.cxx.

References EscherEx::AddAtom(), EscherEx::AddDummyShape(), EscherPropertyContainer::AddOpt(), EscherEx::AddSdrObject(), EscherEx::AddShape(), aHostData, aWinwordAnchoring, 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(), SvxBrushItem::GetGraphicPos(), SwFormat::GetItemState(), SwPageDesc::GetMaster(), PlcDrawObj::GetObjArr(), SwDoc::GetPageDesc(), EscherEx::GetStream(), ww8::Frame::GetWriterType(), GPOS_AREA, GPOS_NONE, MSWordExportBase::m_pDoc, MSWordExportBase::m_pHFSdrObjs, MSWordExportBase::m_pHFTextBxs, MSWordExportBase::m_pSdrObjs, MSWordExportBase::m_pTextBxs, DrawObj::maContent, MakeZOrderArrAndFollowIds(), EscherEx::OpenContainer(), pTextBxs, 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 ( )
overridevirtual

Definition at line 2376 of file wrtw8esh.cxx.

SwEscherEx::SwEscherEx ( const SwEscherEx )
privatedelete

Member Function Documentation

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

Definition at line 3015 of file wrtw8esh.cxx.

References aFollowShpIds, FindPos(), EscherEx::GenerateShapeId(), nPos, and USHRT_MAX.

Referenced by WriteFlyFrame().

void SwEscherEx::MakeZOrderArrAndFollowIds ( std::vector< DrawObj > &  rSrcArr,
DrawObjPointerVector rDstArr 
)
private
SwEscherEx& SwEscherEx::operator= ( const SwEscherEx )
privatedelete
sal_uInt32 SwEscherEx::QueryTextID ( const css::uno::Reference< css::drawing::XShape > &  ,
sal_uInt32   
)
overrideprivatevirtual

Reimplemented from EscherEx.

Definition at line 3033 of file wrtw8esh.cxx.

References WW8_WrPlcTextBoxes::Append(), WW8_WrPlcTextBoxes::Count(), GetSdrObjectFromXShape(), nId, and pTextBxs.

void SwEscherEx::SetPicId ( const SdrObject rSdrObj,
sal_uInt32  nShapeId,
EscherPropertyContainer rPropOpt 
)
overrideprivatevirtual
EscherExHostAppData* SwEscherEx::StartShape ( const css::uno::Reference< css::drawing::XShape > &  ,
const tools::Rectangle  
)
inlineoverridevirtual

Reimplemented from EscherEx.

Definition at line 173 of file escher.hxx.

References aHostData.

sal_Int32 SwEscherEx::WriteFlyFrame ( const DrawObj rObj,
sal_uInt32 &  rShapeId,
DrawObjPointerVector rPVec 
)
private
sal_Int32 SwEscherEx::WriteFlyFrameAttr ( const SwFrameFormat rFormat,
MSO_SPT  eShapeType,
EscherPropertyContainer rPropOpt 
)
overrideprivatevirtual
void SwEscherEx::WriteFrameExtraData ( const SwFrameFormat rFormat)
overridevirtual
void SwEscherEx::WriteOCXControl ( const SwFrameFormat rFormat,
sal_uInt32  nShapeId 
)
private
void SwEscherEx::WritePictures ( )
overridevirtual
sal_Int32 SwEscherEx::WriteTextFlyFrame ( const DrawObj rObj,
sal_uInt32  nShapeId,
sal_uInt32  nTextBox,
DrawObjPointerVector rPVec 
)
private

Member Data Documentation

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

Definition at line 143 of file escher.hxx.

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

EscherExHostAppData SwEscherEx::aHostData
private

Definition at line 144 of file escher.hxx.

Referenced by StartShape(), and SwEscherEx().

WinwordAnchoring SwEscherEx::aWinwordAnchoring
private

Definition at line 145 of file escher.hxx.

Referenced by SwEscherEx(), and WriteFrameExtraData().

WW8_WrPlcTextBoxes* SwEscherEx::pTextBxs
private

Definition at line 146 of file escher.hxx.

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


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