LibreOffice Module svx (master) 1
|
Public Member Functions | |
ImpPathForDragAndCreate (SdrPathObj &rSdrPathObject) | |
bool | beginPathDrag (SdrDragStat const &rDrag) const |
bool | movePathDrag (SdrDragStat &rDrag) const |
bool | endPathDrag (SdrDragStat const &rDrag) |
OUString | getSpecialDragComment (const SdrDragStat &rDrag) const |
basegfx::B2DPolyPolygon | getSpecialDragPoly (const SdrDragStat &rDrag) const |
void | BegCreate (SdrDragStat &rStat) |
bool | MovCreate (SdrDragStat &rStat) |
bool | EndCreate (SdrDragStat &rStat, SdrCreateCmd eCmd) |
bool | BckCreate (SdrDragStat const &rStat) |
void | BrkCreate (SdrDragStat &rStat) |
PointerStyle | GetCreatePointer () const |
bool | IsCreating () const |
basegfx::B2DPolyPolygon | TakeObjectPolyPolygon (const SdrDragStat &rDrag) const |
basegfx::B2DPolyPolygon | getModifiedPolyPolygon () const |
Static Public Member Functions | |
static bool | IsClosed (SdrObjKind eKind) |
static bool | IsFreeHand (SdrObjKind eKind) |
static bool | IsBezier (SdrObjKind eKind) |
static basegfx::B2DPolyPolygon | TakeDragPolyPolygon (const SdrDragStat &rDrag) |
Private Attributes | |
SdrPathObj & | mrSdrPathObject |
XPolyPolygon | aPathPolygon |
SdrObjKind | meObjectKind |
std::unique_ptr< ImpSdrPathDragData > | mpSdrPathDragData |
bool | mbCreating |
Definition at line 497 of file svdopath.cxx.
|
explicit |
Definition at line 536 of file svdopath.cxx.
bool ImpPathForDragAndCreate::BckCreate | ( | SdrDragStat const & | rStat | ) |
Definition at line 1473 of file svdopath.cxx.
References aPathPolygon, XPolyPolygon::Count(), SdrDragStat::GetNow(), XPolygon::GetPointCount(), SdrDragStat::GetUser(), XPolygon::IsControl(), XPolyPolygon::Remove(), and XPolygon::Remove().
Referenced by SdrPathObj::BckCreate().
void ImpPathForDragAndCreate::BegCreate | ( | SdrDragStat & | rStat | ) |
Definition at line 1222 of file svdopath.cxx.
References aPathPolygon, XPolyPolygon::Clear(), SdrDragStat::GetNow(), SdrDragStat::GetStart(), SdrDragStat::GetView(), XPolyPolygon::Insert(), IsFreeHand(), SdrCreateView::IsUseIncompatiblePathCreateInterface(), mbCreating, meObjectKind, PathFill, PathLine, Polygon, PolyLine, SdrDragStat::SetNoSnap(), SdrDragStat::SetOrtho8Possible(), and SdrDragStat::SetUser().
Referenced by SdrPathObj::BegCreate().
bool ImpPathForDragAndCreate::beginPathDrag | ( | SdrDragStat const & | rDrag | ) | const |
Definition at line 544 of file svdopath.cxx.
References a, aPathPolygon, SdrDragStat::GetHdl(), SdrHdlList::GetHdl(), SdrHdlList::GetHdlCount(), SdrMarkView::GetHdlList(), SdrHdl::GetObj(), SdrHdl::GetPointNum(), SdrHdl::GetPolyNum(), SdrDragStat::GetView(), SdrHdl::IsSelected(), mpSdrPathDragData, and mrSdrPathObject.
Referenced by SdrPathObj::applySpecialDrag(), SdrPathObj::beginSpecialDrag(), SdrPathObj::getSpecialDragComment(), and SdrPathObj::getSpecialDragPoly().
void ImpPathForDragAndCreate::BrkCreate | ( | SdrDragStat & | rStat | ) |
Definition at line 1513 of file svdopath.cxx.
References aPathPolygon, XPolyPolygon::Clear(), mbCreating, and SdrDragStat::SetUser().
Referenced by SdrPathObj::BrkCreate().
bool ImpPathForDragAndCreate::EndCreate | ( | SdrDragStat & | rStat, |
SdrCreateCmd | eCmd | ||
) |
Definition at line 1361 of file svdopath.cxx.
References aPathPolygon, XPolygon::CalcTangent(), XPolyPolygon::Count(), ForceEnd, SdrDragStat::GetNow(), SdrDragStat::GetPointCount(), XPolygon::GetPointCount(), SdrDragStat::GetUser(), SdrDragStat::GetView(), i, XPolygon::Insert(), XPolyPolygon::Insert(), IsBezier(), XPolygon::IsControl(), IsFreeHand(), SdrCreateView::IsUseIncompatiblePathCreateInterface(), Line, mbCreating, NextObject, SdrDragStat::NextPoint(), NextPoint, XPolygon::PointsToBezier(), XPolyPolygon::Remove(), XPolygon::Remove(), XPolygon::SetFlags(), SdrDragStat::SetUser(), and XPOLY_APPEND.
bool ImpPathForDragAndCreate::endPathDrag | ( | SdrDragStat const & | rDrag | ) |
Definition at line 822 of file svdopath.cxx.
References Point::AdjustX(), Point::AdjustY(), aPathPolygon, tools::Rectangle::Center(), basegfx::B2DPolygon::count(), basegfx::B2DPolyPolygon::getB2DPolygon(), XPolyPolygon::getB2DPolyPolygon(), SdrDragStat::GetHdl(), XPolygon::GetPointCount(), SdrHdl::GetPolyNum(), SdrAttrObj::GetSnapRect(), SdrHdl::GetSourceHdlNum(), Line, meObjectKind, mpSdrPathDragData, mrSdrPathObject, SdrObject::NbcMirrorGluePoints(), basegfx::B2DPolygon::remove(), basegfx::B2DPolyPolygon::remove(), basegfx::B2DPolyPolygon::setB2DPolygon(), Point::X(), and Point::Y().
Referenced by SdrPathObj::applySpecialDrag().
PointerStyle ImpPathForDragAndCreate::GetCreatePointer | ( | ) | const |
Definition at line 1584 of file svdopath.cxx.
References FreehandFill, FreehandLine, Line, meObjectKind, PathFill, PathLine, PathPoly, PathPolyLine, Polygon, and PolyLine.
Referenced by SdrPathObj::GetCreatePointer().
|
inline |
Definition at line 533 of file svdopath.cxx.
References aPathPolygon, and XPolyPolygon::getB2DPolyPolygon().
Referenced by SdrPathObj::applySpecialDrag().
OUString ImpPathForDragAndCreate::getSpecialDragComment | ( | const SdrDragStat & | rDrag | ) | const |
Definition at line 911 of file svdopath.cxx.
References abs(), aPathPolygon, aStr, GetAngle(), SdrModel::GetAngleString(), SdrCreateView::GetCreateObj(), SdrDragStat::GetHdl(), GetLen(), SdrModel::GetMetricString(), SdrDragStat::GetNow(), XPolygon::GetPointCount(), SdrHdl::GetPointNum(), SdrHdl::GetPolyNum(), SdrDragStat::GetPrev(), SdrObject::getSdrModelFromSdrObject(), SdrDragStat::GetStart(), SdrDragStat::GetUser(), SdrDragStat::GetView(), SdrObject::ImpGetDescriptionStr(), IsClosed(), XPolygon::IsControl(), IsFreeHand(), SdrHdl::IsPlusHdl(), SdrPathObj::meKind, meObjectKind, mpSdrPathDragData, mrSdrPathObject, nRef, SvxResId(), Point::X(), and Point::Y().
Referenced by SdrPathObj::getSpecialDragComment().
basegfx::B2DPolyPolygon ImpPathForDragAndCreate::getSpecialDragPoly | ( | const SdrDragStat & | rDrag | ) | const |
Definition at line 1106 of file svdopath.cxx.
References a, aPathPolygon, XPolyPolygon::getB2DPolyPolygon(), XPolygon::GetFlags(), SdrDragStat::GetHdl(), SdrDragStat::GetNow(), XPolygon::GetPointCount(), SdrHdl::GetPointNum(), SdrHdl::GetPolyNum(), XPolygon::Insert(), XPolyPolygon::Insert(), XPolygon::IsControl(), mpSdrPathDragData, XPolygon::Remove(), XPolygon::SetFlags(), and XPOLY_APPEND.
Referenced by SdrPathObj::getSpecialDragPoly().
|
inlinestatic |
Definition at line 527 of file svdopath.cxx.
References PathFill, and PathLine.
Referenced by EndCreate(), and MovCreate().
|
inlinestatic |
Definition at line 525 of file svdopath.cxx.
References FreehandFill, PathFill, PathPoly, and Polygon.
Referenced by getSpecialDragComment().
|
inline |
Definition at line 528 of file svdopath.cxx.
References mbCreating.
|
inlinestatic |
Definition at line 526 of file svdopath.cxx.
References FreehandFill, and FreehandLine.
Referenced by BegCreate(), EndCreate(), getSpecialDragComment(), and MovCreate().
bool ImpPathForDragAndCreate::MovCreate | ( | SdrDragStat & | rStat | ) |
Definition at line 1246 of file svdopath.cxx.
References aPathPolygon, XPolygon::CalcTangent(), CircleArc, CircleCut, CircleOrEllipse, CircleSection, XPolyPolygon::Count(), Default, FreehandFill, FreehandLine, SdrPaintView::GetFirstOutputDevice(), SdrCreateView::GetFreeHandMinDistPix(), SdrDragStat::GetNow(), XPolygon::GetPointCount(), SdrDragStat::GetPos0(), SdrDragStat::GetStart(), SdrDragStat::GetUser(), SdrDragStat::GetView(), IsBezier(), XPolygon::IsControl(), SdrCreateView::IsCreate1stPointAsCenter(), SdrMarkView::IsCreateMode(), IsFreeHand(), SdrDragStat::IsMouseDown(), Line, SdrDragStat::NextPoint(), PathFill, PathLine, XPolygon::PointsToBezier(), Polygon, PolyLine, pOut, Rectangle, XPolygon::SetFlags(), SdrDragStat::SetNoSnap(), SdrDragStat::SetOrtho8Possible(), SdrCreateView::TakeCurrentObj(), Point::X(), and Point::Y().
Referenced by SdrPathObj::MovCreate().
bool ImpPathForDragAndCreate::movePathDrag | ( | SdrDragStat & | rDrag | ) | const |
Definition at line 589 of file svdopath.cxx.
References abs(), Point::AdjustX(), Point::AdjustY(), GetAngle(), SdrSnapView::GetEliminatePolyPointLimitAngle(), SdrDragStat::GetNow(), XPolygon::GetPointCount(), SdrHdl::GetPointNum(), SdrHdl::GetPolyNum(), SdrDragStat::GetStart(), SdrDragStat::GetView(), SdrSnapView::IsBigOrtho(), XPolygon::IsControl(), SdrSnapView::IsEliminatePolyPoints(), SdrSnapView::IsOrtho(), mpSdrPathDragData, mrSdrPathObject, SdrDragStat::SetActionRect(), SdrDragStat::SetNow(), Point::X(), and Point::Y().
Referenced by SdrPathObj::applySpecialDrag().
|
static |
Definition at line 1562 of file svdopath.cxx.
References basegfx::B2DPolyPolygon::append(), basegfx::B2DPolygon::append(), SdrDragStat::GetUser(), SdrDragStat::GetView(), SdrDragStat::IsMouseDown(), and SdrCreateView::IsUseIncompatiblePathCreateInterface().
Referenced by SdrPathObj::getDragPolyPolygon(), and SdrPathObj::TakeCreatePoly().
basegfx::B2DPolyPolygon ImpPathForDragAndCreate::TakeObjectPolyPolygon | ( | const SdrDragStat & | rDrag | ) | const |
Definition at line 1520 of file svdopath.cxx.
References aPathPolygon, basegfx::B2DPolyPolygon::append(), basegfx::B2DPolygon::append(), basegfx::B2DPolygon::count(), basegfx::B2DPolyPolygon::count(), basegfx::B2DPolyPolygon::getB2DPolygon(), XPolyPolygon::getB2DPolyPolygon(), basegfx::B2DPolygon::getPrevControlPoint(), SdrDragStat::GetUser(), SdrDragStat::GetView(), SdrCreateView::IsUseIncompatiblePathCreateInterface(), basegfx::B2DPolygon::remove(), basegfx::B2DPolyPolygon::setB2DPolygon(), and basegfx::B2DPolygon::setPrevControlPoint().
|
private |
Definition at line 500 of file svdopath.cxx.
Referenced by BckCreate(), BegCreate(), beginPathDrag(), BrkCreate(), EndCreate(), endPathDrag(), getModifiedPolyPolygon(), getSpecialDragComment(), getSpecialDragPoly(), MovCreate(), and TakeObjectPolyPolygon().
|
private |
Definition at line 504 of file svdopath.cxx.
Referenced by BegCreate(), BrkCreate(), EndCreate(), and IsCreating().
|
private |
Definition at line 501 of file svdopath.cxx.
Referenced by BegCreate(), endPathDrag(), GetCreatePointer(), and getSpecialDragComment().
|
private |
Definition at line 503 of file svdopath.cxx.
Referenced by beginPathDrag(), endPathDrag(), getSpecialDragComment(), getSpecialDragPoly(), and movePathDrag().
|
private |
Definition at line 499 of file svdopath.cxx.
Referenced by beginPathDrag(), endPathDrag(), getSpecialDragComment(), and movePathDrag().