LibreOffice Module sc (master) 1
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
FuDraw Class Reference

Base class for all Drawmodule specific functions. More...

#include <fudraw.hxx>

Inheritance diagram for FuDraw:
[legend]
Collaboration diagram for FuDraw:
[legend]

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< SdrObjectCreateDefaultObject (const sal_uInt16 nID, const tools::Rectangle &rRectangle)
 
virtual bool doConstructOrthogonal () const
 

Protected Attributes

PointerStyle aNewPointer
 
PointerStyle aOldPointer
 
- Protected Attributes inherited from FuPoor
ScDrawViewpView
 
ScTabViewShellrViewShell
 
VclPtr< vcl::WindowpWindow
 
SdrModelpDrDoc
 
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)
 

Detailed Description

Base class for all Drawmodule specific functions.

Definition at line 27 of file fudraw.hxx.

Constructor & Destructor Documentation

◆ FuDraw()

FuDraw::FuDraw ( ScTabViewShell rViewSh,
vcl::Window pWin,
ScDrawView pView,
SdrModel pDoc,
const SfxRequest rReq 
)

Definition at line 59 of file fudraw.cxx.

References Arrow.

◆ ~FuDraw()

FuDraw::~FuDraw ( )
overridevirtual

Definition at line 67 of file fudraw.cxx.

Member Function Documentation

◆ DoModifiers()

void FuDraw::DoModifiers ( const MouseEvent rMEvt)
private

◆ ForcePointer()

void FuDraw::ForcePointer ( const MouseEvent pMEvt)
virtual

◆ IsEditingANote()

bool FuDraw::IsEditingANote ( ) const

◆ IsSizingOrMovingNote()

bool FuDraw::IsSizingOrMovingNote ( const MouseEvent rMEvt) const

◆ KeyInput()

bool FuDraw::KeyInput ( const KeyEvent rKEvt)
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().

◆ MouseButtonDown()

bool FuDraw::MouseButtonDown ( const MouseEvent rMEvt)
overridevirtual

◆ MouseButtonUp()

bool FuDraw::MouseButtonUp ( const MouseEvent rMEvt)
overridevirtual

◆ MouseMove()

bool FuDraw::MouseMove ( const MouseEvent rMEvt)
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().

◆ ResetModifiers()

void FuDraw::ResetModifiers ( )
private

Member Data Documentation

◆ aNewPointer

PointerStyle FuDraw::aNewPointer
protected

◆ aOldPointer

PointerStyle FuDraw::aOldPointer
protected

The documentation for this class was generated from the following files: