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
 
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 SdrObjectUniquePtr CreateDefaultObject (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 28 of file fudraw.hxx.

Constructor & Destructor Documentation

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

Definition at line 41 of file fudraw.cxx.

References Arrow.

FuDraw::~FuDraw ( )
overridevirtual

Definition at line 49 of file fudraw.cxx.

Member Function Documentation

void FuDraw::DoModifiers ( const MouseEvent rMEvt)
private
void FuDraw::ForcePointer ( const MouseEvent pMEvt)
virtual
bool FuDraw::IsEditingANote ( ) const
bool FuDraw::IsSizingOrMovingNote ( const MouseEvent rMEvt) const
bool FuDraw::KeyInput ( const KeyEvent rKEvt)
overridevirtual

via accelerator

Reimplemented from FuPoor.

Reimplemented in FuText, and FuConstruct.

Definition at line 172 of file fudraw.cxx.

References a, ScTabViewShell::ActivateObject(), SdrMarkView::AreObjectsMarked(), FuPoor::aSfxRequest, E3dView::BegDragObj(), tools::Rectangle::Bottom(), bReadOnly, 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(), 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(), nCode, OutputDevice::PixelToLogic(), Point, 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().

bool FuDraw::MouseButtonDown ( const MouseEvent rMEvt)
overridevirtual
bool FuDraw::MouseButtonUp ( const MouseEvent rMEvt)
overridevirtual
bool FuDraw::MouseMove ( const MouseEvent rMEvt)
overridevirtual

Reimplemented from FuPoor.

Reimplemented in FuText, FuSelection, FuConstruct, and FuConstPolygon.

Definition at line 119 of file fudraw.cxx.

References DoModifiers(), SdrCreateView::IsAction(), and FuPoor::pView.

Referenced by FuConstruct::MouseMove(), and FuSelection::MouseMove().

void FuDraw::ResetModifiers ( )
private

Member Data Documentation

PointerStyle FuDraw::aNewPointer
protected
PointerStyle FuDraw::aOldPointer
protected

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