LibreOffice Module filter (master) 1
|
#include <eschesdo.hxx>
Public Member Functions | |
ImplEESdrWriter (EscherEx &rEx) | |
~ImplEESdrWriter () | |
EscherExHostAppData * | ImplGetHostData () |
bool | ImplInitPage (const SdrPage &rPage) |
bool | ImplInitUnoShapes (const css::uno::Reference< css::drawing::XShapes > &rxShapes) |
void | ImplWriteCurrentPage (bool ooxmlExport) |
sal_uInt32 | ImplWriteTheShape (ImplEESdrObject &rObj, bool ooxmlExport) |
void | ImplExitPage () |
Static Public Member Functions | |
static Point | ImplMapPoint (const Point &rPoint) |
static Size | ImplMapSize (const Size &rSize) |
Private Member Functions | |
void | ImplInitPageValues () |
void | ImplWritePage (EscherSolverContainer &rSolver, bool ooxmlExport) |
sal_uInt32 | ImplWriteShape (ImplEESdrObject &rObj, EscherSolverContainer &rSolver, const bool bOOxmlExport=false) |
void | ImplWriteAdditionalText (ImplEESdrObject &rObj) |
sal_uInt32 | ImplEnterAdditionalTextGroup (const css::uno::Reference< css::drawing::XShape > &rShape, const tools::Rectangle *pBoundRect) |
void | ImplFlushSolverContainer () |
Static Private Member Functions | |
static void | ImplFlipBoundingBox (ImplEESdrObject &rObj, EscherPropertyContainer &rPropOpt) |
Private Attributes | |
EscherEx * | mpEscherEx |
css::uno::Reference< css::drawing::XDrawPage > | mXDrawPage |
css::uno::Reference< css::drawing::XShapes > | mXShapes |
SvStream * | mpPicStrm |
EscherExHostAppData * | mpHostAppData |
bool | mbIsTitlePossible |
const SdrPage * | mpSdrPage |
std::unique_ptr< EscherSolverContainer > | mpSolverContainer |
Definition at line 99 of file eschesdo.hxx.
|
explicit |
Definition at line 52 of file eschesdo.cxx.
ImplEESdrWriter::~ImplEESdrWriter | ( | ) |
Definition at line 854 of file eschesdo.cxx.
References DBG_ASSERT, mpSolverContainer, and mXDrawPage.
|
private |
Definition at line 822 of file eschesdo.cxx.
References EscherEx::EnterAdditionalTextGroup(), EscherEx::EnterGroup(), mpEscherEx, mpHostAppData, and EscherEx::StartShape().
Referenced by ImplWriteShape().
void ImplEESdrWriter::ImplExitPage | ( | ) |
Definition at line 908 of file eschesdo.cxx.
References EscherEx::GetGroupLevel(), ImplFlushSolverContainer(), EscherEx::LeaveGroup(), mpEscherEx, and mpSdrPage.
Referenced by ImplWriteCurrentPage().
|
staticprivate |
Definition at line 79 of file eschesdo.cxx.
References EscherPropertyContainer::AddOpt(), ESCHER_Prop_Rotation, ImplEESdrObject::GetAngle(), tools::Rectangle::GetHeight(), ImplEESdrObject::GetRect(), tools::Rectangle::GetWidth(), tools::Rectangle::Move(), ImplEESdrObject::SetAngle(), and ImplEESdrObject::SetRect().
Referenced by ImplWriteAdditionalText(), and ImplWriteShape().
|
private |
Definition at line 919 of file eschesdo.cxx.
References EscherEx::GetStream(), mpEscherEx, and mpSolverContainer.
Referenced by ImplExitPage(), ImplInitPage(), and ImplInitUnoShapes().
|
inline |
Definition at line 129 of file eschesdo.hxx.
References mpHostAppData.
bool ImplEESdrWriter::ImplInitPage | ( | const SdrPage & | rPage | ) |
Definition at line 863 of file eschesdo.cxx.
References ImplFlushSolverContainer(), ImplInitPageValues(), mpSdrPage, mpSolverContainer, mXDrawPage, and mXShapes.
Referenced by ImplEESdrObject::ImplEESdrObject().
|
private |
Definition at line 832 of file eschesdo.cxx.
References mbIsTitlePossible.
Referenced by ImplInitPage(), ImplInitUnoShapes(), and ImplWritePage().
bool ImplEESdrWriter::ImplInitUnoShapes | ( | const css::uno::Reference< css::drawing::XShapes > & | rxShapes | ) |
Definition at line 890 of file eschesdo.cxx.
References ImplFlushSolverContainer(), ImplInitPageValues(), mpSdrPage, mpSolverContainer, mXDrawPage, and mXShapes.
Definition at line 63 of file eschesdo.cxx.
References o3tl::convert(), geUnitsDest(), and geUnitsSrc().
Referenced by ImplWriteShape(), and ImplEESdrObject::Init().
Definition at line 68 of file eschesdo.cxx.
References Size::AdjustHeight(), Size::AdjustWidth(), o3tl::convert(), geUnitsDest(), geUnitsSrc(), Size::Height(), and Size::Width().
Referenced by ImplWriteShape(), and ImplEESdrObject::Init().
|
private |
the App has to control whether these are written or not
Definition at line 721 of file eschesdo.cxx.
References EscherEx::AddAtom(), EscherEx::AddChildAnchor(), EscherEx::AddClientAnchor(), EscherPropertyContainer::AddOpt(), EscherEx::AddSdrObjectVMLObject(), EscherEx::AddShape(), EscherEx::CloseContainer(), EscherEx::Commit(), EscherPropertyContainer::CreateShapeProperties(), EscherPropertyContainer::CreateTextProperties(), EscherExHostAppData::DontWriteShape(), EscherEx::EndShape(), EPP_TextHeaderAtom, EPP_TEXTTYPE_Other, ESCHER_ClientTextbox, ESCHER_Prop_FitTextToShape, ESCHER_Prop_fNoFillHitTest, ESCHER_Prop_fNoLineDrawDash, ESCHER_Prop_Rotation, ESCHER_ShpInst_TextBox, ESCHER_SpContainer, EscherEx::GenerateShapeId(), ImplEESdrObject::GetAngle(), EscherEx::GetGraphicProvider(), EscherEx::GetGroupLevel(), tools::Rectangle::GetHeight(), ImplEESdrObject::GetRect(), ImplEESdrObject::GetSdrObject(), ImplEESdrObject::GetShapeId(), ImplEESdrObject::GetShapeRef(), ImplEESdrObject::GetType(), tools::Rectangle::GetWidth(), HaveAnchor, HaveShapeProperty, ImplFlipBoundingBox(), ImplEESdrObject::ImplGetInt32PropertyValue(), ImplEESdrObject::ImplGetText(), EscherEx::LeaveGroup(), mpEscherEx, mpHostAppData, mpPicStrm, ImplEESdrObject::mXPropSet, EscherEx::OpenContainer(), EscherEx::QueryPictureStream(), EscherEx::QueryTextID(), ImplEESdrObject::SetAngle(), EscherEx::SetGroupLogicRect(), EscherEx::SetGroupSnapRect(), ImplEESdrObject::SetRect(), EscherEx::StartShape(), EscherExHostAppData::WriteClientAnchor(), EscherExHostAppData::WriteClientData(), and EscherExHostAppData::WriteClientTextbox().
Referenced by ImplWriteShape().
void ImplEESdrWriter::ImplWriteCurrentPage | ( | bool | ooxmlExport | ) |
Definition at line 928 of file eschesdo.cxx.
References ImplExitPage(), ImplWritePage(), and mpSolverContainer.
|
private |
Definition at line 837 of file eschesdo.cxx.
References o3tl::doAccess(), ImplInitPageValues(), ImplWriteShape(), ImplEESdrObject::IsValid(), mXShapes, and n.
Referenced by ImplWriteCurrentPage().
|
private |
with AdditionalText the App has to control whether these are written or not
Definition at line 128 of file eschesdo.cxx.
References EscherEx::AddChildAnchor(), EscherPropertyContainer::AddOpt(), EscherEx::AddSdrObjectVMLObject(), EscherSolverContainer::AddShape(), EscherEx::AddShape(), Point::AdjustX(), Point::AdjustY(), EscherEx::CloseContainer(), EscherEx::Commit(), EscherPropertyContainer::CreateConnectorProperties(), EscherPropertyContainer::CreateCustomShapeProperties(), EscherPropertyContainer::CreateFillProperties(), EscherPropertyContainer::CreateGraphicProperties(), EscherPropertyContainer::CreateLineProperties(), EscherPropertyContainer::CreateOLEGraphicProperties(), EscherPropertyContainer::CreatePolygonProperties(), EscherPropertyContainer::CreateShadowProperties(), EscherPropertyContainer::CreateShapeProperties(), EscherPropertyContainer::CreateTextProperties(), o3tl::doAccess(), EscherExHostAppData::DontWriteShape(), EscherEx::EndShape(), EscherEx::EnterGroup(), ESCHER_AnchorMiddle, ESCHER_CREATEPOLYGON_LINE, ESCHER_CREATEPOLYGON_POLYLINE, ESCHER_CREATEPOLYGON_POLYPOLYGON, ESCHER_Prop_adjustValue, ESCHER_Prop_AnchorText, ESCHER_Prop_fFillOK, ESCHER_Prop_fillBackColor, ESCHER_Prop_fillColor, ESCHER_Prop_FitTextToShape, ESCHER_Prop_fNoFillHitTest, ESCHER_Prop_fNoLineDrawDash, ESCHER_Prop_fPrint, ESCHER_Prop_fshadowObscured, ESCHER_Prop_hspMaster, ESCHER_Prop_lineColor, ESCHER_Prop_LockAgainstGrouping, ESCHER_Prop_lTxid, ESCHER_Prop_pictureId, ESCHER_Prop_pihlShape, ESCHER_Prop_shapePath, ESCHER_Prop_WrapText, ESCHER_Prop_wzName, ESCHER_ShapeComplex, ESCHER_ShpInst_Ellipse, ESCHER_ShpInst_HostControl, ESCHER_ShpInst_Line, ESCHER_ShpInst_Min, ESCHER_ShpInst_NotPrimitive, ESCHER_ShpInst_PictureFrame, ESCHER_ShpInst_Rectangle, ESCHER_ShpInst_RoundRectangle, ESCHER_ShpInst_TextBox, ESCHER_SpContainer, ESCHER_WrapNone, FlipH, FlipV, EscherEx::GenerateShapeId(), o3tl::strong_int< typename UNDERLYING_TYPE, typename PHANTOM_TYPE >::get(), ImplEESdrObject::GetAngle(), SdrObject::GetCurrentBoundRect(), EscherPropertyContainer::GetCustomShapeType(), EscherEx::GetGraphicProvider(), EscherEx::GetGroupLevel(), tools::Rectangle::GetHeight(), EscherEx::GetHellLayerId(), EscherExHostAppData::GetInteractionInfo(), ImplEESdrObject::GetOOXML(), ImplEESdrObject::GetRect(), ImplEESdrObject::GetSdrObject(), SdrObject::getSdrObjectFromXShape(), ImplEESdrObject::GetShapeId(), ImplEESdrObject::GetShapeRef(), tools::Rectangle::GetSize(), ImplEESdrObject::GetType(), ImplEESdrObject::GetUsrAny(), tools::Rectangle::GetWidth(), HaveAnchor, HaveMaster, HaveShapeProperty, ImplEnterAdditionalTextGroup(), ImplFlipBoundingBox(), ImplEESdrObject::ImplGetInt32PropertyValue(), ImplEESdrObject::ImplGetPropertyValue(), ImplEESdrObject::ImplGetText(), ImplEESdrObject::ImplHasText(), ImplMapPoint(), ImplMapSize(), ImplWriteAdditionalText(), ImplWriteShape(), ImplEESdrObject::IsEmptyPresObj(), EscherPropertyContainer::IsFontWork(), ImplEESdrObject::IsValid(), EscherEx::LeaveGroup(), tools::Rectangle::Left(), mpEscherEx, mpHostAppData, mpPicStrm, mso_sptMax, ImplEESdrObject::mXPropSet, n, nLength, NONE, tools::Rectangle::Normalize(), nType, OLEShape, EscherEx::OpenContainer(), EscherEx::QueryPictureStream(), EscherEx::QueryTextID(), tools::Polygon::Rotate(), SDRLAYER_NOTFOUND(), ImplEESdrObject::SetAngle(), EscherEx::SetEditAs(), ImplEESdrObject::SetOOXML(), ImplEESdrObject::SetRect(), ImplEESdrObject::SetShapeId(), ImplEESdrObject::SetType(), Point::setX(), Point::setY(), EscherEx::StartShape(), tools::Rectangle::Top(), tools::Rectangle::TopLeft(), Size::Width(), EscherExHostAppData::WriteClientAnchor(), EscherExHostAppData::WriteClientData(), EscherExHostAppData::WriteClientTextbox(), Point::X(), and Point::Y().
Referenced by ImplWritePage(), ImplWriteShape(), and ImplWriteTheShape().
sal_uInt32 ImplEESdrWriter::ImplWriteTheShape | ( | ImplEESdrObject & | rObj, |
bool | ooxmlExport | ||
) |
Definition at line 935 of file eschesdo.cxx.
References ImplWriteShape(), and mpSolverContainer.
|
private |
Definition at line 107 of file eschesdo.hxx.
Referenced by ImplInitPageValues().
|
private |
Definition at line 101 of file eschesdo.hxx.
Referenced by ImplEnterAdditionalTextGroup(), ImplExitPage(), ImplFlushSolverContainer(), ImplWriteAdditionalText(), and ImplWriteShape().
|
private |
Definition at line 106 of file eschesdo.hxx.
Referenced by ImplEnterAdditionalTextGroup(), ImplGetHostData(), ImplWriteAdditionalText(), and ImplWriteShape().
|
private |
Definition at line 104 of file eschesdo.hxx.
Referenced by ImplWriteAdditionalText(), and ImplWriteShape().
|
private |
Definition at line 108 of file eschesdo.hxx.
Referenced by ImplExitPage(), ImplInitPage(), and ImplInitUnoShapes().
|
private |
Definition at line 109 of file eschesdo.hxx.
Referenced by ImplFlushSolverContainer(), ImplInitPage(), ImplInitUnoShapes(), ImplWriteCurrentPage(), ImplWriteTheShape(), and ~ImplEESdrWriter().
|
private |
Definition at line 102 of file eschesdo.hxx.
Referenced by ImplInitPage(), ImplInitUnoShapes(), and ~ImplEESdrWriter().
|
private |
Definition at line 103 of file eschesdo.hxx.
Referenced by ImplInitPage(), ImplInitUnoShapes(), and ImplWritePage().