LibreOffice Module svx (master) 1
|
#include <svdhdl.hxx>
Public Member Functions | |
SdrHdlGradient (const Point &rRef1, const Point &rRef2, bool bGrad) | |
virtual | ~SdrHdlGradient () override |
bool | IsGradient () const |
void | SetColorHandles (SdrHdlColor *pL1, SdrHdlColor *pL2) |
SdrHdlColor * | GetColorHdl1 () const |
SdrHdlColor * | GetColorHdl2 () const |
const Point & | Get2ndPos () const |
void | Set2ndPos (const Point &rPnt) |
DECL_LINK (ColorChangeHdl, SdrHdlColor *, void) | |
void | FromIAOToItem (SdrObject *pObj, bool bSetItemOnObject, bool bUndo) |
bool | IsMoveSingleHandle () const |
void | SetMoveSingleHandle (bool bNew) |
bool | IsMoveFirstHandle () const |
void | SetMoveFirstHandle (bool bNew) |
Public Member Functions inherited from SdrHdl | |
SdrHdl () | |
SdrHdl (const Point &rPnt, SdrHdlKind eNewKind) | |
virtual | ~SdrHdl () |
const sdr::overlay::OverlayObjectList & | getOverlayObjectList () const |
void | SetHdlList (SdrHdlList *pList) |
SdrHdlKind | GetKind () const |
void | Touch () |
const Point & | GetPos () const |
void | SetPos (const Point &rPnt) |
SdrPageView * | GetPageView () const |
void | SetPageView (SdrPageView *pNewPV) |
SdrObject * | GetObj () const |
void | SetObj (SdrObject *pNewObj) |
bool | IsSelected () const |
void | SetSelected (bool bJa=true) |
void | Set1PixMore (bool bJa=true) |
void | SetRotationAngle (Degree100 n) |
bool | IsCornerHdl () const |
bool | IsVertexHdl () const |
void | SetObjHdlNum (sal_uInt32 nNum) |
sal_uInt32 | GetObjHdlNum () const |
void | SetPolyNum (sal_uInt32 nNum) |
sal_uInt32 | GetPolyNum () const |
void | SetPointNum (sal_uInt32 nNum) |
sal_uInt32 | GetPointNum () const |
void | SetPlusHdl (bool bOn) |
bool | IsPlusHdl () const |
void | SetSourceHdlNum (sal_uInt32 nNum) |
sal_uInt32 | GetSourceHdlNum () const |
virtual PointerStyle | GetPointer () const |
bool | IsHdlHit (const Point &rPnt) const |
virtual bool | IsFocusHdl () const |
void | SetMoveOutside (bool bMoveOutside) |
virtual void | onMouseEnter (const MouseEvent &rMEvt) |
is called when the mouse enters the area of this handle. More... | |
virtual void | onHelpRequest () |
is called when help is requested for the area of this handle More... | |
virtual void | onMouseLeave () |
is called when the mouse leaves the area of this handle. More... | |
Private Member Functions | |
virtual void | CreateB2dIAObject () override |
Private Attributes | |
SdrHdlColor * | pColHdl1 |
SdrHdlColor * | pColHdl2 |
Point | a2ndPos |
bool | bGradient: 1 |
bool | bMoveSingleHandle: 1 |
bool | bMoveFirstHandle: 1 |
Definition at line 291 of file svdhdl.hxx.
Definition at line 1254 of file svdhdl.cxx.
References Transparence.
|
overridevirtual |
Definition at line 1265 of file svdhdl.cxx.
|
overrideprivatevirtual |
Reimplemented from SdrHdl.
Definition at line 1281 of file svdhdl.cxx.
References a2ndPos, SdrHdl::aPos, SdrMarkView::areMarkHandlesHidden(), COL_BLACK(), COL_BLUE(), basegfx::B2DVector::getLength(), SdrPageWindow::GetObjectContact(), SdrPageWindow::GetOverlayManager(), SdrPageView::GetPageWindow(), SdrPageWindow::GetPaintWindow(), SdrHdl::GetRidOfIAObject(), SdrPaintView::GetSdrPageView(), SdrHdlList::GetView(), basegfx::Tuple2D< typename TYPE >::getX(), basegfx::Tuple2D< typename TYPE >::getY(), SdrHdl::insertNewlyCreatedOverlayObjectForSdrHdl(), IsGradient(), basegfx::B2DVector::normalize(), SdrPaintWindow::OutputToWindow(), SdrPageView::PageWindowCount(), SdrHdl::pHdlList, Point::X(), and Point::Y().
SdrHdlGradient::DECL_LINK | ( | ColorChangeHdl | , |
SdrHdlColor * | , | ||
void | |||
) |
void SdrHdlGradient::FromIAOToItem | ( | SdrObject * | pObj, |
bool | bSetItemOnObject, | ||
bool | bUndo | ||
) |
Definition at line 1369 of file svdhdl.cxx.
References GradTransVector::aCol1, GradTransVector::aCol2, SdrModel::AddUndo(), GradTransGradient::aGradient, SdrModel::BegUndo(), bMoveFirstHandle, bMoveSingleHandle, SdrUndoFactory::CreateUndoAttrObject(), SdrModel::EndUndo(), FRound(), SfxItemSet::Get(), Get2ndPos(), SdrHdlColor::GetColor(), SdrModel::GetItemPool(), SdrObject::GetMergedItemSet(), SdrHdl::GetPos(), SdrObject::getSdrModelFromSdrObject(), SdrModel::GetSdrUndoFactory(), basegfx::Tuple2D< typename TYPE >::getX(), basegfx::Tuple2D< typename TYPE >::getY(), GradTransformer::GradToVec(), IsGradient(), SdrModel::IsUndoEnabled(), GradTransVector::maPositionA, GradTransVector::maPositionB, pColHdl1, pColHdl2, SdrHdl::pObj, SfxItemSet::Put(), rSet, Set2ndPos(), SdrHdlColor::SetColor(), SdrObject::SetMergedItemSetAndBroadcast(), SdrHdl::SetPos(), SvxResId(), GradTransformer::VecToGrad(), X, XATTR_FILLFLOATTRANSPARENCE(), XATTR_FILLGRADIENT(), and Y.
Referenced by SdrDragGradient::CancelSdrDrag(), SdrDragGradient::EndSdrDrag(), and SdrDragGradient::MoveSdrDrag().
|
inline |
Definition at line 322 of file svdhdl.hxx.
References a2ndPos.
Referenced by SdrDragGradient::BeginSdrDrag(), SdrDragGradient::EndSdrDrag(), and FromIAOToItem().
|
inline |
Definition at line 319 of file svdhdl.hxx.
References pColHdl1.
Referenced by SdrDragGradient::BeginSdrDrag(), SdrDragGradient::CancelSdrDrag(), and SdrDragGradient::MoveSdrDrag().
|
inline |
Definition at line 320 of file svdhdl.hxx.
References pColHdl2.
Referenced by SdrDragGradient::BeginSdrDrag(), SdrDragGradient::CancelSdrDrag(), and SdrDragGradient::MoveSdrDrag().
|
inline |
Definition at line 315 of file svdhdl.hxx.
References bGradient.
Referenced by CreateB2dIAObject(), and FromIAOToItem().
|
inline |
Definition at line 334 of file svdhdl.hxx.
References bMoveFirstHandle.
Referenced by SdrDragGradient::MoveSdrDrag().
|
inline |
Definition at line 332 of file svdhdl.hxx.
References bMoveSingleHandle.
Referenced by SdrDragGradient::MoveSdrDrag().
void SdrHdlGradient::Set2ndPos | ( | const Point & | rPnt | ) |
Definition at line 1269 of file svdhdl.cxx.
References a2ndPos, and SdrHdl::Touch().
Referenced by SdrDragGradient::CancelSdrDrag(), FromIAOToItem(), and SdrDragGradient::MoveSdrDrag().
|
inline |
Definition at line 318 of file svdhdl.hxx.
|
inline |
Definition at line 335 of file svdhdl.hxx.
References bMoveFirstHandle.
Referenced by SdrDragGradient::BeginSdrDrag().
|
inline |
Definition at line 333 of file svdhdl.hxx.
References bMoveSingleHandle.
Referenced by SdrDragGradient::BeginSdrDrag().
|
private |
Definition at line 299 of file svdhdl.hxx.
Referenced by CreateB2dIAObject(), Get2ndPos(), and Set2ndPos().
|
private |
Definition at line 302 of file svdhdl.hxx.
Referenced by IsGradient().
|
private |
Definition at line 306 of file svdhdl.hxx.
Referenced by FromIAOToItem(), IsMoveFirstHandle(), and SetMoveFirstHandle().
|
private |
Definition at line 305 of file svdhdl.hxx.
Referenced by FromIAOToItem(), IsMoveSingleHandle(), and SetMoveSingleHandle().
|
private |
Definition at line 295 of file svdhdl.hxx.
Referenced by FromIAOToItem(), GetColorHdl1(), and SetColorHandles().
|
private |
Definition at line 296 of file svdhdl.hxx.
Referenced by FromIAOToItem(), GetColorHdl2(), and SetColorHandles().