LibreOffice Module sc (master) 1
|
Draw rectangle. More...
#include <fuconstr.hxx>
Public Member Functions | |
FuConstruct (ScTabViewShell &rViewSh, vcl::Window *pWin, ScDrawView *pView, SdrModel *pDoc, const SfxRequest &rReq) | |
virtual | ~FuConstruct () override |
virtual bool | KeyInput (const KeyEvent &rKEvt) override |
virtual SC_DLLPUBLIC bool | MouseMove (const MouseEvent &rMEvt) override |
virtual bool | MouseButtonUp (const MouseEvent &rMEvt) override |
virtual bool | MouseButtonDown (const MouseEvent &rMEvt) override |
bool | SimpleMouseButtonUp (const MouseEvent &rMEvt) |
Public Member Functions inherited from FuDraw | |
FuDraw (ScTabViewShell &rViewSh, vcl::Window *pWin, ScDrawView *pView, SdrModel *pDoc, const SfxRequest &rReq) | |
virtual | ~FuDraw () override |
virtual bool | KeyInput (const KeyEvent &rKEvt) override |
virtual void | ForcePointer (const MouseEvent *pMEvt) |
virtual bool | MouseMove (const MouseEvent &rMEvt) override |
virtual bool | MouseButtonUp (const MouseEvent &rMEvt) override |
virtual bool | MouseButtonDown (const MouseEvent &rMEvt) override |
bool | IsEditingANote () const |
bool | IsSizingOrMovingNote (const MouseEvent &rMEvt) const |
Public Member Functions inherited from FuPoor | |
FuPoor (ScTabViewShell &rViewSh, vcl::Window *pWin, ScDrawView *pView, SdrModel *pDoc, const SfxRequest &rReq) | |
virtual | ~FuPoor () |
void | SetMouseButtonCode (sal_uInt16 nNew) |
sal_uInt16 | GetMouseButtonCode () const |
virtual bool | KeyInput (const KeyEvent &rKEvt) |
virtual bool | MouseMove (const MouseEvent &) |
virtual bool | MouseButtonUp (const MouseEvent &rMEvt) |
virtual bool | MouseButtonDown (const MouseEvent &rMEvt) |
sal_uInt8 | Command (const CommandEvent &rCEvt) |
virtual void | Activate () |
virtual void | Deactivate () |
void | SetWindow (vcl::Window *pWin) |
sal_uInt16 | GetSlotID () const |
bool | IsDetectiveHit (const Point &rLogicPos) |
void | StopDragTimer () |
virtual rtl::Reference< SdrObject > | CreateDefaultObject (const sal_uInt16 nID, const tools::Rectangle &rRectangle) |
virtual bool | doConstructOrthogonal () const |
Additional Inherited Members | |
Protected Member Functions inherited from FuPoor | |
DECL_LINK (ScrollHdl, Timer *, void) | |
void | ForceScroll (const Point &aPixPos) |
DECL_LINK (DragTimerHdl, Timer *, void) | |
DECL_LINK (DragHdl, void *, void) | |
Static Protected Member Functions inherited from FuPoor | |
static void | ImpForceQuadratic (tools::Rectangle &rRect) |
Protected Attributes inherited from FuDraw | |
PointerStyle | aNewPointer |
PointerStyle | aOldPointer |
Protected Attributes inherited from FuPoor | |
ScDrawView * | pView |
ScTabViewShell & | rViewShell |
VclPtr< vcl::Window > | pWindow |
SdrModel * | pDrDoc |
SfxRequest | aSfxRequest |
Timer | aScrollTimer |
Timer | aDragTimer |
bool | bIsInDragMode |
Point | aMDPos |
Draw rectangle.
Definition at line 27 of file fuconstr.hxx.
FuConstruct::FuConstruct | ( | ScTabViewShell & | rViewSh, |
vcl::Window * | pWin, | ||
ScDrawView * | pView, | ||
SdrModel * | pDoc, | ||
const SfxRequest & | rReq | ||
) |
Definition at line 36 of file fuconstr.cxx.
|
overridevirtual |
Definition at line 42 of file fuconstr.cxx.
|
overridevirtual |
Reimplemented from FuDraw.
Reimplemented in FuText.
Definition at line 218 of file fuconstr.cxx.
References FuPoor::aSfxRequest, SdrCreateView::BrkAction(), ScDrawView::DeleteMarked(), Execute(), vcl::KeyCode::GetCode(), ScViewData::GetDispatcher(), KeyEvent::GetKeyCode(), SfxRequest::GetSlot(), ScTabView::GetViewData(), SdrCreateView::IsAction(), KEY_DELETE, KEY_ESCAPE, FuDraw::KeyInput(), FuPoor::pView, FuPoor::pWindow, and FuPoor::rViewShell.
|
overridevirtual |
Reimplemented from FuDraw.
Reimplemented in FuConstArc, FuConstCustomShape, FuConstPolygon, FuConstRectangle, FuConstUnoControl, and FuText.
Definition at line 46 of file fuconstr.cxx.
References FuPoor::aDragTimer, FuPoor::aMDPos, SdrMarkView::AreObjectsMarked(), SdrCreateView::BckAction(), E3dView::BegDragObj(), FuPoor::bIsInDragMode, MouseEvent::GetButtons(), MouseEvent::GetPosPixel(), SdrCreateView::IsAction(), MouseEvent::IsLeft(), SdrMarkView::IsMarkedHit(), MouseEvent::IsRight(), FuDraw::MouseButtonDown(), SdrMarkView::PickHandle(), FuPoor::pView, FuPoor::pWindow, FuPoor::SetMouseButtonCode(), Timer::Start(), and SdrView::UnmarkAll().
Referenced by FuConstArc::MouseButtonDown(), FuConstCustomShape::MouseButtonDown(), FuConstPolygon::MouseButtonDown(), FuConstRectangle::MouseButtonDown(), and FuConstUnoControl::MouseButtonDown().
|
overridevirtual |
Reimplemented from FuDraw.
Reimplemented in FuConstArc, FuConstCustomShape, FuConstPolygon, FuConstRectangle, FuConstUnoControl, and FuText.
Definition at line 128 of file fuconstr.cxx.
References SdrMarkView::AreObjectsMarked(), DynCastSdrTextObj(), Execute(), MouseEvent::GetButtons(), MouseEvent::GetClicks(), ScViewData::GetDispatcher(), ScTabView::GetDrawFuncPtr(), SdrMarkList::GetMark(), SdrMarkList::GetMarkCount(), SdrMarkView::GetMarkedObjectList(), SdrMark::GetMarkedSdrObj(), SdrObject::GetOutlinerParaObject(), MouseEvent::GetPosPixel(), FuPoor::GetSlotID(), ScViewData::GetView(), ScTabView::GetViewData(), OutlinerParaObject::IsEffectivelyVertical(), MouseEvent::IsLeft(), FuDraw::MouseButtonUp(), FuPoor::pView, FuPoor::rViewShell, FuText::SetInEditMode(), FuPoor::SetMouseButtonCode(), and SimpleMouseButtonUp().
Referenced by FuConstArc::MouseButtonUp(), FuConstCustomShape::MouseButtonUp(), FuConstPolygon::MouseButtonUp(), FuConstRectangle::MouseButtonUp(), and FuConstUnoControl::MouseButtonUp().
|
overridevirtual |
Reimplemented from FuDraw.
Reimplemented in FuConstPolygon, and FuText.
Definition at line 87 of file fuconstr.cxx.
References FuPoor::aDragTimer, FuPoor::aMDPos, FuDraw::aNewPointer, FuPoor::ForceScroll(), SdrHdl::GetPointer(), MouseEvent::GetPosPixel(), SdrCreateView::IsAction(), Task::IsActive(), SdrMarkView::IsMarkedHit(), FuDraw::MouseMove(), E3dView::MovAction(), SdrMarkView::PickHandle(), FuPoor::pView, FuPoor::pWindow, FuPoor::rViewShell, SC_MAXDRAGMOVE, ScTabView::SetActivePointer(), Task::Stop(), Point::X(), and Point::Y().
Referenced by FuConstPolygon::MouseMove().
bool FuConstruct::SimpleMouseButtonUp | ( | const MouseEvent & | rMEvt | ) |
Definition at line 179 of file fuconstr.cxx.
References FuPoor::aDragTimer, SdrMarkView::AreObjectsMarked(), FuPoor::aSfxRequest, SdrDragView::EndDragObj(), SdrMarkView::EndMarkObj(), SfxDispatcher::Execute(), MouseEvent::GetClicks(), ScViewData::GetDispatcher(), MouseEvent::GetPosPixel(), SfxRequest::GetSlot(), ScTabView::GetViewData(), SdrCreateView::IsAction(), Task::IsActive(), SdrDragView::IsDragObj(), SdrMarkView::IsMarkObj(), MouseEvent::IsMod1(), SdrMarkView::MarkObj(), FuPoor::pView, FuPoor::pWindow, FuPoor::rViewShell, and Task::Stop().
Referenced by FuConstPolygon::MouseButtonUp(), and MouseButtonUp().