LibreOffice Module sc (master) 1
|
Base class for all Drawmodule specific functions. More...
#include <fudraw.hxx>
Public Member Functions | |
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 |
Protected Attributes | |
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 |
Private Member Functions | |
void | DoModifiers (const MouseEvent &rMEvt) |
void | ResetModifiers () |
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) |
Base class for all Drawmodule specific functions.
Definition at line 27 of file fudraw.hxx.
FuDraw::FuDraw | ( | ScTabViewShell & | rViewSh, |
vcl::Window * | pWin, | ||
ScDrawView * | pView, | ||
SdrModel * | pDoc, | ||
const SfxRequest & | rReq | ||
) |
Definition at line 59 of file fudraw.cxx.
References Arrow.
|
overridevirtual |
Definition at line 67 of file fudraw.cxx.
|
private |
Definition at line 71 of file fudraw.cxx.
References FuPoor::doConstructOrthogonal(), SdrSnapView::IsAngleSnapEnabled(), SdrCreateView::IsCreate1stPointAsCenter(), MouseEvent::IsMod2(), SdrSnapView::IsOrtho(), SdrDragView::IsResizeAtCenter(), MouseEvent::IsShift(), FuPoor::pView, SdrSnapView::SetAngleSnapEnabled(), SdrCreateView::SetCreate1stPointAsCenter(), SdrSnapView::SetOrtho(), and SdrDragView::SetResizeAtCenter().
Referenced by MouseButtonDown(), and MouseMove().
|
virtual |
something missing ????
in Gridwin?
Reimplemented in FuText.
Definition at line 669 of file fudraw.cxx.
References FuPoor::aMDPos, MouseEvent::GetButtons(), SdrPaintView::getHitTolLog(), SdrObject::getHyperlink(), ScMacroInfo::GetMacro(), ScDrawLayer::GetMacroInfo(), SdrObject::GetMacroPointer(), SdrView::GetPreferredPointer(), ScTabView::GetViewData(), SdrCreateView::IsAction(), FuPoor::IsDetectiveHit(), SdrObject::IsGroupObject(), SdrMarkView::IsMarkedHit(), MouseEvent::IsMod2(), SdrObjEditView::IsTextEdit(), ScViewData::IsThemedCursor(), lcl_UrlHit(), SdrMarkView::PickHandle(), SdrMarkView::PickObj(), FuPoor::pView, FuPoor::pWindow, FuPoor::rViewShell, and ScTabView::SetActivePointer().
Referenced by FuSelection::MouseButtonDown(), FuSelection::MouseButtonUp(), and FuSelection::MouseMove().
bool FuDraw::IsEditingANote | ( | ) | const |
Definition at line 730 of file fudraw.cxx.
References SdrMarkList::GetMark(), SdrMarkList::GetMarkCount(), SdrMarkView::GetMarkedObjectList(), SdrMark::GetMarkedSdrObj(), ScDrawLayer::IsNoteCaption(), and FuPoor::pView.
Referenced by FuText::MouseButtonDown().
bool FuDraw::IsSizingOrMovingNote | ( | const MouseEvent & | rMEvt | ) | const |
Definition at line 745 of file fudraw.cxx.
References SdrMarkList::GetMark(), SdrMarkList::GetMarkCount(), SdrMarkView::GetMarkedObjectList(), SdrMark::GetMarkedSdrObj(), MouseEvent::GetPosPixel(), MouseEvent::IsLeft(), ScDrawLayer::IsNoteCaption(), SdrObjEditView::IsTextEditFrameHit(), SdrMarkView::PickHandle(), FuPoor::pView, and FuPoor::pWindow.
Referenced by FuText::MouseButtonDown().
|
overridevirtual |
via accelerator
Reimplemented from FuPoor.
Reimplemented in FuConstruct, and FuText.
Definition at line 190 of file fudraw.cxx.
References a, ScTabViewShell::ActivateObject(), SdrMarkView::AreObjectsMarked(), FuPoor::aSfxRequest, E3dView::BegDragObj(), tools::Rectangle::Bottom(), bReadOnly, tools::Rectangle::Contains(), ScDrawView::DeleteMarked(), SdrDragView::EndDragObj(), SfxDispatcher::Execute(), SdrMarkView::GetAllMarkedRect(), vcl::KeyCode::GetCode(), ScViewData::GetDispatcher(), ScViewData::GetDocShell(), SdrPaintView::GetDragStat(), SdrHdlList::GetFocusHdl(), SfxViewFrame::GetFrame(), SdrHdlList::GetHdl(), SdrHdlList::GetHdlCount(), SdrMarkView::GetHdlList(), KeyEvent::GetKeyCode(), SdrHdl::GetKind(), SdrMarkList::GetMark(), SdrMarkList::GetMarkCount(), SdrMarkView::GetMarkedObjectList(), SdrMarkView::GetMarkedObjRect(), SdrMark::GetMarkedSdrObj(), vcl::KeyCode::GetModifier(), SdrHdl::GetPointNum(), SdrHdl::GetPolyNum(), SdrHdl::GetPos(), SfxRequest::GetSlot(), ScTabView::GetViewData(), SfxViewShell::GetViewFrame(), SdrDragView::GetWorkArea(), SdrMarkView::HasMarkableObj(), SdrMarkView::HasMultipleMarkableObjects(), Size::Height(), comphelper::LibreOfficeKit::isActive(), ScDocument::IsChart(), SdrDragView::IsDragObj(), ScTabView::IsDrawSelMode(), ScTabViewShell::IsDrawTextShell(), tools::Rectangle::IsEmpty(), SfxFrame::IsInPlace(), SfxViewShell::isLOKMobilePhone(), vcl::KeyCode::IsMod1(), vcl::KeyCode::IsMod2(), SdrEditView::IsMoveAllowed(), SdrDragStat::IsNoSnap(), ScDrawLayer::IsNoteCaption(), SdrMarkView::IsPointMarked(), SfxObjectShell::IsReadOnly(), vcl::KeyCode::IsShift(), EditEngine::IsSimpleCharInput(), SdrSnapView::IsSnapEnabled(), SdrObjEditView::IsTextEdit(), KEY_DELETE, KEY_DOWN, KEY_END, KEY_ESCAPE, KEY_F2, KEY_HOME, KEY_LEFT, KEY_RETURN, KEY_RIGHT, KEY_SPACE, KEY_TAB, KEY_UP, FuPoor::KeyInput(), lcl_KeyEditMode(), tools::Rectangle::Left(), ScDrawView::MakeVisible(), SdrMarkView::MarkNextObj(), SdrMarkView::MarkPoint(), E3dView::MovAction(), tools::Rectangle::Move(), SdrEditView::MoveAllMarked(), FuPoor::pView, FuPoor::pWindow, SdrHdlList::ResetFocusHdl(), tools::Rectangle::Right(), FuPoor::rViewShell, ScTabViewShell::SetDrawShell(), SdrSnapView::SetSnapEnabled(), tools::Rectangle::Top(), SdrView::UnmarkAll(), SdrMarkView::UnmarkAllObj(), SdrMarkView::UnmarkAllPoints(), SdrMarkView::UnmarkPoint(), and Size::Width().
Referenced by FuConstruct::KeyInput(), and FuText::KeyInput().
|
overridevirtual |
Reimplemented from FuPoor.
Reimplemented in FuConstArc, FuConstCustomShape, FuConstPolygon, FuConstRectangle, FuConstruct, FuConstUnoControl, FuSelection, and FuText.
Definition at line 128 of file fudraw.cxx.
References DoModifiers(), MouseEvent::GetButtons(), and FuPoor::SetMouseButtonCode().
Referenced by FuConstruct::MouseButtonDown(), and FuSelection::MouseButtonDown().
|
overridevirtual |
Reimplemented from FuPoor.
Reimplemented in FuConstArc, FuConstCustomShape, FuConstPolygon, FuConstRectangle, FuConstruct, FuConstUnoControl, FuSelection, and FuText.
Definition at line 147 of file fudraw.cxx.
References MouseEvent::GetButtons(), ResetModifiers(), and FuPoor::SetMouseButtonCode().
Referenced by FuConstruct::MouseButtonUp(), and FuSelection::MouseButtonUp().
|
overridevirtual |
Reimplemented from FuPoor.
Reimplemented in FuConstPolygon, FuConstruct, FuSelection, and FuText.
Definition at line 137 of file fudraw.cxx.
References DoModifiers(), SdrCreateView::IsAction(), and FuPoor::pView.
Referenced by FuConstruct::MouseMove(), and FuSelection::MouseMove().
|
private |
Definition at line 102 of file fudraw.cxx.
References ScViewOptions::GetGridOptions(), ScViewData::GetOptions(), SvxOptionsGrid::GetUseGridSnap(), ScTabView::GetViewData(), SdrSnapView::IsAngleSnapEnabled(), SdrCreateView::IsCreate1stPointAsCenter(), SdrSnapView::IsGridSnap(), SdrSnapView::IsOrtho(), SdrDragView::IsResizeAtCenter(), SdrSnapView::IsSnapEnabled(), FuPoor::pView, FuPoor::rViewShell, SdrSnapView::SetAngleSnapEnabled(), SdrCreateView::SetCreate1stPointAsCenter(), SdrSnapView::SetGridSnap(), SdrSnapView::SetOrtho(), SdrDragView::SetResizeAtCenter(), and SdrSnapView::SetSnapEnabled().
Referenced by MouseButtonUp().
|
protected |
Definition at line 30 of file fudraw.hxx.
Referenced by FuConstArc::Activate(), FuConstCustomShape::Activate(), FuConstPolygon::Activate(), FuConstRectangle::Activate(), FuConstUnoControl::Activate(), FuText::Activate(), FuText::ForcePointer(), and FuConstruct::MouseMove().
|
protected |
Definition at line 31 of file fudraw.hxx.
Referenced by FuConstArc::Activate(), FuConstCustomShape::Activate(), FuConstPolygon::Activate(), FuConstRectangle::Activate(), FuConstUnoControl::Activate(), FuText::Activate(), FuConstArc::Deactivate(), FuConstCustomShape::Deactivate(), FuConstPolygon::Deactivate(), FuConstRectangle::Deactivate(), FuConstUnoControl::Deactivate(), and FuText::Deactivate().