LibreOffice Module filter (master) 1
|
#include <outact.hxx>
Public Member Functions | |
CGMImpressOutAct (CGM &, const css::uno::Reference< css::frame::XModel > &) | |
~CGMImpressOutAct () | |
void | InsertPage () |
void | BeginGroup () |
void | EndGroup () |
void | EndGrouping () |
void | DrawRectangle (FloatRect const &) |
void | DrawEllipse (FloatPoint const ¢er, FloatPoint const &, double &Orientation) |
void | DrawEllipticalArc (FloatPoint const ¢er, FloatPoint const &size, double &orientation, sal_uInt32 etype, double &startangle, double &endangle) |
void | DrawBitmap (CGMBitmapDescriptor *) |
void | DrawPolygon (tools::Polygon &) |
void | DrawPolyLine (tools::Polygon &) |
void | DrawPolybezier (tools::Polygon &) |
void | DrawPolyPolygon (tools::PolyPolygon const &) |
void | DrawText (css::awt::Point const &TextRectPos, css::awt::Size const &TextRectSize, const OUString &rString, FinalFlag) |
void | AppendText (const char *String) |
void | FirstOutPut () |
void | BeginFigure () |
void | CloseRegion () |
void | NewRegion () |
void | EndFigure () |
void | RegPolyLine (tools::Polygon const &, bool bReverse=false) |
void | SetGradientOffset (tools::Long nHorzOfs, tools::Long nVertOfs) |
void | SetGradientAngle (tools::Long nAngle) |
void | SetGradientDescriptor (sal_uInt32 nColorFrom, sal_uInt32 nColorTo) |
void | SetGradientStyle (sal_uInt32 nStyle) |
Private Member Functions | |
bool | ImplCreateShape (const OUString &rType) |
bool | ImplInitPage () |
void | ImplSetOrientation (FloatPoint const &RefPoint, double Orientation) |
void | ImplSetLineBundle () |
void | ImplSetFillBundle () |
void | ImplSetTextBundle (const css::uno::Reference< css::beans::XPropertySet > &) |
Private Attributes | |
sal_uInt16 | mnCurrentPage |
sal_uInt32 | mnGroupActCount |
sal_uInt32 | mnGroupLevel |
std::array< sal_uInt32, CGM_OUTACT_MAX_GROUP_LEVEL > | maGroupLevel |
std::vector< PolyFlags > | maFlags |
std::vector< Point > | maPoints |
tools::PolyPolygon | maPolyPolygon |
std::unique_ptr< css::awt::Gradient > | mpGradient |
CGM * | mpCGM |
css::uno::Reference< css::drawing::XDrawPages > | maXDrawPages |
css::uno::Reference< css::drawing::XDrawPage > | maXDrawPage |
css::uno::Reference< css::lang::XMultiServiceFactory > | maXMultiServiceFactory |
css::uno::Reference< css::drawing::XShape > | maXShape |
css::uno::Reference< css::beans::XPropertySet > | maXPropSet |
css::uno::Reference< css::drawing::XShapes > | maXShapes |
std::vector< css::uno::Reference< css::document::XActionLockable > > | maLockedNewXShapes |
sal_uInt32 | nFinalTextCount |
Definition at line 41 of file outact.hxx.
CGMImpressOutAct::CGMImpressOutAct | ( | CGM & | , |
const css::uno::Reference< css::frame::XModel > & | |||
) |
Definition at line 60 of file actimpr.cxx.
References ImplInitPage(), maXDrawPage, maXDrawPages, maXMultiServiceFactory, CGM::mbStatus, and mpCGM.
CGMImpressOutAct::~CGMImpressOutAct | ( | ) |
Definition at line 91 of file actimpr.cxx.
References a, and maLockedNewXShapes.
void CGMImpressOutAct::AppendText | ( | const char * | String | ) |
Definition at line 883 of file actimpr.cxx.
References aStr, ImplSetTextBundle(), maXShapes, and nFinalTextCount.
void CGMImpressOutAct::BeginFigure | ( | ) |
Definition at line 920 of file actimpr.cxx.
References BeginGroup(), EndFigure(), maFlags, and maPoints.
void CGMImpressOutAct::BeginGroup | ( | ) |
Definition at line 403 of file actimpr.cxx.
References CGM_OUTACT_MAX_GROUP_LEVEL, maGroupLevel, maXShapes, CGM::mnActCount, mnGroupActCount, mnGroupLevel, and mpCGM.
Referenced by BeginFigure().
void CGMImpressOutAct::CloseRegion | ( | ) |
Definition at line 930 of file actimpr.cxx.
References tools::PolyPolygon::Clear(), DrawPolyPolygon(), maPoints, maPolyPolygon, and NewRegion().
void CGMImpressOutAct::DrawBitmap | ( | CGMBitmapDescriptor * | pBmpDesc | ) |
Definition at line 574 of file actimpr.cxx.
References VCLUnoHelper::CreateBitmap(), ImplCreateShape(), CGM::ImplMapPoint(), CGM::ImplMapX(), CGM::ImplMapY(), ImplSetOrientation(), BitmapEx::IsEmpty(), maXPropSet, maXShape, CGMBitmapDescriptor::mbStatus, CGMBitmapDescriptor::mbVMirror, BitmapEx::Mirror(), CGMBitmapDescriptor::mndx, CGMBitmapDescriptor::mndy, CGMBitmapDescriptor::mnOrientation, CGMBitmapDescriptor::mnOrigin, mpCGM, CGMBitmapDescriptor::mxBitmap, FloatPoint::X, and FloatPoint::Y.
void CGMImpressOutAct::DrawEllipse | ( | FloatPoint const & | center, |
FloatPoint const & | rSize, | ||
double & | Orientation | ||
) |
Definition at line 486 of file actimpr.cxx.
References ImplCreateShape(), ImplSetFillBundle(), ImplSetOrientation(), maXPropSet, maXShape, FloatPoint::X, and FloatPoint::Y.
void CGMImpressOutAct::DrawEllipticalArc | ( | FloatPoint const & | center, |
FloatPoint const & | size, | ||
double & | orientation, | ||
sal_uInt32 | etype, | ||
double & | startangle, | ||
double & | endangle | ||
) |
Definition at line 511 of file actimpr.cxx.
References ImplCreateShape(), ImplSetFillBundle(), ImplSetLineBundle(), ImplSetOrientation(), maXPropSet, maXShape, NormAngle360(), nType, FloatPoint::X, and FloatPoint::Y.
void CGMImpressOutAct::DrawPolybezier | ( | tools::Polygon & | rPolygon | ) |
Definition at line 668 of file actimpr.cxx.
References tools::Polygon::GetFlags(), tools::Polygon::GetSize(), gentoken::i, ImplCreateShape(), ImplSetLineBundle(), maXPropSet, X, and Y.
void CGMImpressOutAct::DrawPolygon | ( | tools::Polygon & | rPoly | ) |
Definition at line 608 of file actimpr.cxx.
References tools::Polygon::GetSize(), ImplCreateShape(), ImplSetFillBundle(), maXPropSet, n, X, and Y.
void CGMImpressOutAct::DrawPolyLine | ( | tools::Polygon & | rPoly | ) |
Definition at line 638 of file actimpr.cxx.
References tools::Polygon::GetSize(), ImplCreateShape(), ImplSetLineBundle(), maXPropSet, n, X, and Y.
void CGMImpressOutAct::DrawPolyPolygon | ( | tools::PolyPolygon const & | rPolyPolygon | ) |
Definition at line 701 of file actimpr.cxx.
References a, tools::PolyPolygon::Count(), tools::Polygon::GetFlags(), tools::PolyPolygon::GetObject(), tools::Polygon::GetPoint(), tools::Polygon::GetSize(), ImplCreateShape(), ImplSetFillBundle(), maXPropSet, Point::X(), and Point::Y().
Referenced by CloseRegion(), and EndFigure().
void CGMImpressOutAct::DrawRectangle | ( | FloatRect const & | rFloatRect | ) |
Definition at line 453 of file actimpr.cxx.
References FloatRect::Bottom, ImplCreateShape(), ImplSetFillBundle(), FloatRect::Left, maXShape, CGM::mnActCount, mnGroupActCount, mpCGM, FloatRect::Right, SAL_WARN, FloatRect::Top, and useless().
void CGMImpressOutAct::DrawText | ( | css::awt::Point const & | TextRectPos, |
css::awt::Size const & | TextRectSize, | ||
const OUString & | rString, | ||
FinalFlag | |||
) |
Definition at line 744 of file actimpr.cxx.
References FF_NOT_FINAL, ImplCreateShape(), ImplSetTextBundle(), maXPropSet, maXShape, maXShapes, mpCGM, nFinalTextCount, CGM::pElement, basegfx::rad2deg(), o3tl::saturating_add(), TAH_CENTER, TAH_CONT, TAH_LEFT, TAH_NORMAL, TAH_RIGHT, TAV_BASE, TAV_BOTTOM, TAV_CAP, TAV_CONT, TAV_HALF, TAV_NORMAL, and TAV_TOP.
void CGMImpressOutAct::EndFigure | ( | ) |
Definition at line 951 of file actimpr.cxx.
References tools::PolyPolygon::Clear(), DrawPolyPolygon(), EndGroup(), maFlags, maPoints, maPolyPolygon, and NewRegion().
Referenced by BeginFigure().
void CGMImpressOutAct::EndGroup | ( | ) |
Definition at line 413 of file actimpr.cxx.
References CGM_OUTACT_MAX_GROUP_LEVEL, comphelper::getProcessComponentContext(), gentoken::i, maGroupLevel, maXDrawPage, maXShapes, and mnGroupLevel.
Referenced by EndFigure(), and EndGrouping().
void CGMImpressOutAct::EndGrouping | ( | ) |
Definition at line 445 of file actimpr.cxx.
References EndGroup(), and mnGroupLevel.
|
inline |
Definition at line 95 of file outact.hxx.
References CGM::mbFirstOutPut, and mpCGM.
|
private |
Definition at line 111 of file actimpr.cxx.
References utl::ConfigManager::IsFuzzing(), maLockedNewXShapes, maXMultiServiceFactory, maXPropSet, maXShape, and maXShapes.
Referenced by DrawBitmap(), DrawEllipse(), DrawEllipticalArc(), DrawPolybezier(), DrawPolygon(), DrawPolyLine(), DrawPolyPolygon(), DrawRectangle(), and DrawText().
|
private |
Definition at line 97 of file actimpr.cxx.
References maXDrawPage, and maXShapes.
Referenced by CGMImpressOutAct(), and InsertPage().
|
private |
Definition at line 191 of file actimpr.cxx.
References ACT4_GRADIENT_ACTION, ASF_EDGECOLOR, ASF_EDGETYPE, ASF_EDGEWIDTH, ASF_FILLCOLOR, ASF_FILLINTERIORSTYLE, ASF_HATCHINDEX, ET_DASH, ET_DASHDASHDOT, ET_DASHDOT, ET_DASHDOTDOT, ET_DOT, ET_DOTDOTSPACE, ET_LONGDASH, ET_NONE, EV_ON, FIS_EMPTY, FIS_GEOPATTERN, FIS_GRADIENT, FIS_HATCH, FIS_HOLLOW, FIS_INTERPOLATED, FIS_PATTERN, FIS_SOLID, HatchEntry::HatchAngle, HatchEntry::HatchDistance, HatchEntry::HatchStyle, maXPropSet, CGM::mnAct4PostReset, mpCGM, mpGradient, CGM::pElement, and T_ON.
Referenced by DrawEllipse(), DrawEllipticalArc(), DrawPolygon(), DrawPolyPolygon(), and DrawRectangle().
|
private |
Definition at line 140 of file actimpr.cxx.
References ASF_LINECOLOR, ASF_LINETYPE, ASF_LINEWIDTH, LT_DASH, LT_DASHDASHDOT, LT_DASHDOT, LT_DOT, LT_DOTDOTSPACE, LT_LONGDASH, LT_NONE, LT_SOLID, maXPropSet, mpCGM, and CGM::pElement.
Referenced by DrawEllipticalArc(), DrawPolybezier(), and DrawPolyLine().
|
private |
Definition at line 132 of file actimpr.cxx.
References maXPropSet, FloatPoint::X, and FloatPoint::Y.
Referenced by DrawBitmap(), DrawEllipse(), and DrawEllipticalArc().
|
private |
Definition at line 345 of file actimpr.cxx.
References FontEntry::aFontName, ASF_TEXTCOLOR, ASF_TEXTFONTINDEX, mpCGM, FontEntry::nFontType, CGM::pElement, and UM_OFF.
Referenced by AppendText(), and DrawText().
void CGMImpressOutAct::InsertPage | ( | ) |
Definition at line 386 of file actimpr.cxx.
References ImplInitPage(), utl::ConfigManager::IsFuzzing(), MAX_PAGES_FOR_FUZZING, maXDrawPage, maXDrawPages, CGM::mbStatus, mnCurrentPage, and mpCGM.
void CGMImpressOutAct::NewRegion | ( | ) |
Definition at line 940 of file actimpr.cxx.
References tools::PolyPolygon::Insert(), maFlags, maPoints, and maPolyPolygon.
Referenced by CloseRegion(), and EndFigure().
void CGMImpressOutAct::RegPolyLine | ( | tools::Polygon const & | rPolygon, |
bool | bReverse = false |
||
) |
Definition at line 961 of file actimpr.cxx.
References tools::Polygon::GetFlags(), tools::Polygon::GetPoint(), tools::Polygon::GetSize(), gentoken::i, maFlags, and maPoints.
void CGMImpressOutAct::SetGradientAngle | ( | tools::Long | nAngle | ) |
Definition at line 993 of file actimpr.cxx.
References mpGradient.
void CGMImpressOutAct::SetGradientDescriptor | ( | sal_uInt32 | nColorFrom, |
sal_uInt32 | nColorTo | ||
) |
Definition at line 1000 of file actimpr.cxx.
References mpGradient.
void CGMImpressOutAct::SetGradientOffset | ( | tools::Long | nHorzOfs, |
tools::Long | nVertOfs | ||
) |
Definition at line 985 of file actimpr.cxx.
References mpGradient.
void CGMImpressOutAct::SetGradientStyle | ( | sal_uInt32 | nStyle | ) |
Definition at line 1008 of file actimpr.cxx.
References mpGradient.
|
private |
Definition at line 50 of file outact.hxx.
Referenced by BeginFigure(), EndFigure(), NewRegion(), and RegPolyLine().
|
private |
Definition at line 48 of file outact.hxx.
Referenced by BeginGroup(), and EndGroup().
|
private |
Definition at line 66 of file outact.hxx.
Referenced by ImplCreateShape(), and ~CGMImpressOutAct().
|
private |
Definition at line 51 of file outact.hxx.
Referenced by BeginFigure(), CloseRegion(), EndFigure(), NewRegion(), and RegPolyLine().
|
private |
Definition at line 52 of file outact.hxx.
Referenced by CloseRegion(), EndFigure(), and NewRegion().
|
private |
Definition at line 59 of file outact.hxx.
Referenced by CGMImpressOutAct(), EndGroup(), ImplInitPage(), and InsertPage().
|
private |
Definition at line 58 of file outact.hxx.
Referenced by CGMImpressOutAct(), and InsertPage().
|
private |
Definition at line 61 of file outact.hxx.
Referenced by CGMImpressOutAct(), and ImplCreateShape().
|
private |
Definition at line 64 of file outact.hxx.
Referenced by DrawBitmap(), DrawEllipse(), DrawEllipticalArc(), DrawPolybezier(), DrawPolygon(), DrawPolyLine(), DrawPolyPolygon(), DrawText(), ImplCreateShape(), ImplSetFillBundle(), ImplSetLineBundle(), and ImplSetOrientation().
|
private |
Definition at line 62 of file outact.hxx.
Referenced by DrawBitmap(), DrawEllipse(), DrawEllipticalArc(), DrawRectangle(), DrawText(), and ImplCreateShape().
|
private |
Definition at line 65 of file outact.hxx.
Referenced by AppendText(), BeginGroup(), DrawText(), EndGroup(), ImplCreateShape(), and ImplInitPage().
|
private |
Definition at line 43 of file outact.hxx.
Referenced by InsertPage().
|
private |
Definition at line 45 of file outact.hxx.
Referenced by BeginGroup(), and DrawRectangle().
|
private |
Definition at line 46 of file outact.hxx.
Referenced by BeginGroup(), EndGroup(), and EndGrouping().
|
private |
Definition at line 56 of file outact.hxx.
Referenced by BeginGroup(), CGMImpressOutAct(), DrawBitmap(), DrawRectangle(), DrawText(), FirstOutPut(), ImplSetFillBundle(), ImplSetLineBundle(), ImplSetTextBundle(), and InsertPage().
|
private |
Definition at line 54 of file outact.hxx.
Referenced by ImplSetFillBundle(), SetGradientAngle(), SetGradientDescriptor(), SetGradientOffset(), and SetGradientStyle().
|
private |
Definition at line 68 of file outact.hxx.
Referenced by AppendText(), and DrawText().