LibreOffice Module sw (master) 1
|
#include <escher.hxx>
Public Member Functions | |
SwEscherEx (SvStream *pStrm, WW8Export &rWW8Wrt) | |
virtual | ~SwEscherEx () override |
void | FinishEscher () |
virtual void | WritePictures () override |
virtual void | WriteFrameExtraData (const SwFrameFormat &rFormat) override |
EscherExHostAppData * | StartShape (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 () |
EscherGraphicProvider & | GetGraphicProvider () |
SvStream * | QueryPictureStream () |
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 |
SvStream & | GetStream () 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 EscherExHostAppData * | StartShape (const css::uno::Reference< css::drawing::XShape > &rShape, const tools::Rectangle *pChildAnchor) |
virtual void | EndShape (sal_uInt16 nShapeType, sal_uInt32 nShapeID) |
virtual EscherExHostAppData * | EnterAdditionalTextGroup () |
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 () |
EscherPersistTable & | operator= (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 | |
SwEscherEx & | operator= (const SwEscherEx &)=delete |
Private Attributes | |
std::vector< sal_uLong > | m_aFollowShpIds |
EscherExHostAppData | m_aHostData |
WinwordAnchoring | m_aWinwordAnchoring |
WW8_WrPlcTextBoxes * | m_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 SdrObject * | GetSdrObject (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 | |
WW8Export & | mrWrt |
SvStream * | mpEscherStrm |
tools::Long | mnEmuMul |
tools::Long | mnEmuDiv |
Protected Attributes inherited from EscherEx | |
std::shared_ptr< EscherExGlobal > | mxGlobal |
std::unique_ptr< ImplEESdrWriter > | mpImplEESdrWriter |
std::unique_ptr< SvStream > | mxOwnStrm |
SvStream * | mpOutStrm |
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 |
Definition at line 141 of file escher.hxx.
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().
|
overridevirtual |
Definition at line 2306 of file wrtw8esh.cxx.
|
privatedelete |
void SwEscherEx::FinishEscher | ( | ) |
Definition at line 2310 of file wrtw8esh.cxx.
References WW8Export::m_pTableStrm, SwBasicEscherEx::mpEscherStrm, SwBasicEscherEx::mrWrt, SvStream::Seek(), and SvStream::WriteStream().
Referenced by WW8Export::WriteEscher().
|
private |
Definition at line 2957 of file wrtw8esh.cxx.
References FindPos(), EscherEx::GenerateShapeId(), m_aFollowShpIds, and nPos.
Referenced by WriteFlyFrame().
|
private |
Definition at line 2931 of file wrtw8esh.cxx.
References EscherEx::GenerateShapeId(), SwFormat::GetChain(), SwFormatChain::GetNext(), SwFormatChain::GetPrev(), m_aFollowShpIds, SwBasicEscherEx::mrWrt, p, RES_FLYFRMFMT(), and SwFormat::Which().
Referenced by SwEscherEx().
|
privatedelete |
|
overrideprivatevirtual |
Reimplemented from EscherEx.
Definition at line 2976 of file wrtw8esh.cxx.
References WW8_WrPlcTextBoxes::Append(), WW8_WrPlcTextBoxes::Count(), SdrObject::getSdrObjectFromXShape(), m_pTextBxs, and nId.
|
overrideprivatevirtual |
Reimplemented from SwBasicEscherEx.
Definition at line 1766 of file wrtw8esh.cxx.
References EscherPropertyContainer::AddOpt(), WW8_WrPlcTextBoxes::Append(), WW8_WrPlcTextBoxes::Count(), ESCHER_Prop_pictureId, and m_pTextBxs.
|
inlineoverridevirtual |
|
private |
Definition at line 2722 of file wrtw8esh.cxx.
References WW8_WrPlcTextBoxes::Append(), BROWSE_MODE, WW8_WrPlcTextBoxes::Count(), SwFrameFormat::FindRealSdrObject(), EscherEx::GenerateShapeId(), IDocumentSettingAccess::get(), SwFormat::GetChain(), SwFormat::GetContent(), SwFormatContent::GetContentIdx(), SwFormat::GetDoc(), GetFlyShapeId(), ww8::Frame::GetFrameFormat(), SwFormat::getIDocumentSettingAccess(), SwNodeIndex::GetNode(), SwNode::GetNodeType(), WW8_WrPlcTextBoxes::GetPos(), SwFormatChain::GetPrev(), Grf, m_pTextBxs, DrawObj::maContent, DrawObj::mnHdFtIndex, Ole, SwBasicEscherEx::WriteGrfFlyFrame(), SwBasicEscherEx::WriteOLEFlyFrame(), and WriteTextFlyFrame().
Referenced by SwEscherEx().
|
overrideprivatevirtual |
Reimplemented from SwBasicEscherEx.
Definition at line 2051 of file wrtw8esh.cxx.
References EscherPropertyContainer::AddOpt(), sw::util::CorrectWordWrapPolygonForExport(), tools::PolyPolygon::Count(), DFF_Prop_pWrapPolygonVertices, SwBasicEscherEx::DrawModelToEmu(), ESCHER_Prop_dxWrapDistLeft, ESCHER_Prop_dxWrapDistRight, ESCHER_Prop_dyWrapDistBottom, ESCHER_Prop_dyWrapDistTop, SwFormat::GetItemIfSet(), sw::util::GetNoTextNodeFromSwFrameFormat(), tools::Polygon::GetSize(), SwFormat::GetSurround(), SwFormatSurround::IsContour(), nLineWidth, SwBasicEscherEx::PreWriteHyperlinkWithinFly(), RES_LR_SPACE(), RES_UL_SPACE(), SvStream::SetEndian(), SwBasicEscherEx::WriteFlyFrameAttr(), SvStream::WriteUInt16(), SvStream::WriteUInt32(), X, and Y.
Referenced by WriteOCXControl(), and WriteTextFlyFrame().
|
overridevirtual |
Reimplemented from SwBasicEscherEx.
Definition at line 2710 of file wrtw8esh.cxx.
References EscherEx::AddAtom(), ESCHER_ClientAnchor, ESCHER_ClientData, EscherEx::GetStream(), m_aWinwordAnchoring, WinwordAnchoring::SetAnchoring(), WinwordAnchoring::WriteData(), and SvStream::WriteInt32().
Referenced by WriteOCXControl(), and WriteTextFlyFrame().
|
private |
Definition at line 2900 of file wrtw8esh.cxx.
References EscherEx::CloseContainer(), EscherPropertyContainer::Commit(), ESCHER_SpContainer, SwFrameFormat::FindRealSdrObject(), Application::GetDefaultDevice(), IDocumentDrawModelAccess::GetDrawModel(), SwDoc::getIDocumentDrawModelAccess(), SdrExchangeView::GetObjGraphic(), EscherEx::GetStream(), MSWordExportBase::m_rDoc, SwBasicEscherEx::mrWrt, mso_sptPictureFrame, EscherEx::OpenContainer(), WriteFlyFrameAttr(), WriteFrameExtraData(), and SwBasicEscherEx::WriteOLEPicture().
Referenced by SwEscherEx().
|
overridevirtual |
Reimplemented from SwBasicEscherEx.
Definition at line 1482 of file wrtw8esh.cxx.
References EscherEx::Flush(), EscherExGlobal::GetPictureStream(), SwBasicEscherEx::mrWrt, EscherEx::mxGlobal, WW8Export::Strm(), SvStream::Tell(), and SvStream::WriteStream().
Referenced by WW8Export::WriteEscher().
|
private |
Definition at line 2825 of file wrtw8esh.cxx.
References EscherEx::AddAtom(), EscherPropertyContainer::AddOpt(), EscherEx::AddShape(), EscherEx::CloseContainer(), EscherPropertyContainer::Commit(), ESCHER_ClientTextbox, ESCHER_Prop_hspNext, ESCHER_Prop_lTxid, ESCHER_Prop_txflTextFlow, ESCHER_ShpInst_TextBox, ESCHER_SpContainer, FindPos(), SwFormat::GetChain(), ww8::Frame::GetFrameFormat(), SwFormatChain::GetNext(), EscherEx::GetStream(), m_aFollowShpIds, DrawObj::maContent, DrawObj::mnDirection, DrawObj::mnHdFtIndex, mso_sptTextBox, mso_txflBtoT, mso_txflHorzN, mso_txflTtoBA, nPos, EscherEx::OpenContainer(), WriteFlyFrameAttr(), WriteFrameExtraData(), and SvStream::WriteUInt32().
Referenced by WriteFlyFrame().
|
private |
Definition at line 144 of file escher.hxx.
Referenced by GetFlyShapeId(), MakeZOrderArrAndFollowIds(), and WriteTextFlyFrame().
|
private |
Definition at line 145 of file escher.hxx.
Referenced by StartShape(), and SwEscherEx().
|
private |
Definition at line 146 of file escher.hxx.
Referenced by SwEscherEx(), and WriteFrameExtraData().
|
private |
Definition at line 147 of file escher.hxx.
Referenced by QueryTextID(), SetPicId(), SwEscherEx(), and WriteFlyFrame().