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

Base class for all functions. More...

#include <fupoor.hxx>

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

Public Member Functions

 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 Member Functions

 DECL_LINK (ScrollHdl, Timer *, void)
 
void ForceScroll (const Point &aPixPos)
 
 DECL_LINK (DragTimerHdl, Timer *, void)
 
 DECL_LINK (DragHdl, void *, void)
 

Static Protected Member Functions

static void ImpForceQuadratic (tools::Rectangle &rRect)
 

Protected Attributes

ScDrawViewpView
 
ScTabViewShellrViewShell
 
VclPtr< vcl::WindowpWindow
 
SdrModelpDrDoc
 
SfxRequest aSfxRequest
 
Timer aScrollTimer
 
Timer aDragTimer
 
bool bIsInDragMode
 
Point aMDPos
 

Private Attributes

sal_uInt16 mnCode
 

Detailed Description

Base class for all functions.

Definition at line 39 of file fupoor.hxx.

Constructor & Destructor Documentation

◆ FuPoor()

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

◆ ~FuPoor()

FuPoor::~FuPoor ( )
virtual

Definition at line 55 of file fupoor.cxx.

References aDragTimer, aScrollTimer, and Task::Stop().

Member Function Documentation

◆ Activate()

void FuPoor::Activate ( )
virtual

◆ Command()

sal_uInt8 FuPoor::Command ( const CommandEvent rCEvt)

◆ CreateDefaultObject()

rtl::Reference< SdrObject > FuPoor::CreateDefaultObject ( const sal_uInt16  nID,
const tools::Rectangle rRectangle 
)
virtual

Reimplemented in FuConstArc, FuConstCustomShape, FuConstPolygon, FuConstRectangle, FuConstUnoControl, and FuText.

Definition at line 218 of file fupoor.cxx.

Referenced by ScTabViewShell::ExecDraw().

◆ Deactivate()

void FuPoor::Deactivate ( )
virtual

◆ DECL_LINK() [1/3]

FuPoor::DECL_LINK ( DragHdl  ,
void *  ,
void   
)
protected

◆ DECL_LINK() [2/3]

FuPoor::DECL_LINK ( DragTimerHdl  ,
Timer ,
void   
)
protected

◆ DECL_LINK() [3/3]

FuPoor::DECL_LINK ( ScrollHdl  ,
Timer ,
void   
)
protected

◆ doConstructOrthogonal()

bool FuPoor::doConstructOrthogonal ( ) const
virtual

◆ ForceScroll()

void FuPoor::ForceScroll ( const Point aPixPos)
protected

◆ GetMouseButtonCode()

sal_uInt16 FuPoor::GetMouseButtonCode ( ) const
inline

Definition at line 71 of file fupoor.hxx.

References mnCode.

◆ GetSlotID()

sal_uInt16 FuPoor::GetSlotID ( ) const
inline

◆ ImpForceQuadratic()

void FuPoor::ImpForceQuadratic ( tools::Rectangle rRect)
staticprotected

◆ IsDetectiveHit()

bool FuPoor::IsDetectiveHit ( const Point rLogicPos)

◆ KeyInput()

bool FuPoor::KeyInput ( const KeyEvent rKEvt)
virtual

Reimplemented in FuConstruct, FuDraw, and FuText.

Definition at line 137 of file fupoor.cxx.

Referenced by ScGridWindow::DrawKeyInput(), ScTabViewShell::ExecDraw(), and FuDraw::KeyInput().

◆ MouseButtonDown()

bool FuPoor::MouseButtonDown ( const MouseEvent rMEvt)
virtual

◆ MouseButtonUp()

bool FuPoor::MouseButtonUp ( const MouseEvent rMEvt)
virtual

◆ MouseMove()

virtual bool FuPoor::MouseMove ( const MouseEvent )
inlinevirtual

Reimplemented in FuConstPolygon, FuConstruct, FuDraw, FuSelection, and FuText.

Definition at line 75 of file fupoor.hxx.

Referenced by ScGridWindow::DrawMouseMove().

◆ SetMouseButtonCode()

void FuPoor::SetMouseButtonCode ( sal_uInt16  nNew)
inline

◆ SetWindow()

void FuPoor::SetWindow ( vcl::Window pWin)
inline

◆ StopDragTimer()

void FuPoor::StopDragTimer ( )

Definition at line 211 of file fupoor.cxx.

References aDragTimer, Task::IsActive(), and Task::Stop().

Referenced by ScGridWindow::DrawEndAction().

Member Data Documentation

◆ aDragTimer

Timer FuPoor::aDragTimer
protected

◆ aMDPos

Point FuPoor::aMDPos
protected

◆ aScrollTimer

Timer FuPoor::aScrollTimer
protected

Definition at line 49 of file fupoor.hxx.

Referenced by Deactivate(), ForceScroll(), FuPoor(), and ~FuPoor().

◆ aSfxRequest

SfxRequest FuPoor::aSfxRequest
protected

◆ bIsInDragMode

bool FuPoor::bIsInDragMode
protected

◆ mnCode

sal_uInt16 FuPoor::mnCode
private

Definition at line 62 of file fupoor.hxx.

Referenced by GetMouseButtonCode(), and SetMouseButtonCode().

◆ pDrDoc

SdrModel* FuPoor::pDrDoc
protected

◆ pView

ScDrawView* FuPoor::pView
protected

Definition at line 42 of file fupoor.hxx.

Referenced by FuConstArc::Activate(), FuConstCustomShape::Activate(), FuConstPolygon::Activate(), FuConstRectangle::Activate(), FuConstUnoControl::Activate(), FuText::Activate(), Command(), FuConstArc::CreateDefaultObject(), FuConstCustomShape::CreateDefaultObject(), FuConstPolygon::CreateDefaultObject(), FuConstRectangle::CreateDefaultObject(), FuConstUnoControl::CreateDefaultObject(), FuText::CreateDefaultObject(), FuConstPolygon::Deactivate(), FuConstUnoControl::Deactivate(), doConstructOrthogonal(), FuDraw::DoModifiers(), FuDraw::ForcePointer(), FuInsertChart::FuInsertChart(), FuInsertGraphic::FuInsertGraphic(), FuInsertMedia::FuInsertMedia(), FuInsertOLE::FuInsertOLE(), IsDetectiveHit(), FuDraw::IsEditingANote(), FuSelection::IsNoteCaptionClicked(), FuSelection::IsNoteCaptionMarked(), FuDraw::IsSizingOrMovingNote(), FuConstruct::KeyInput(), FuDraw::KeyInput(), FuText::KeyInput(), FuConstArc::MouseButtonDown(), FuConstCustomShape::MouseButtonDown(), FuConstPolygon::MouseButtonDown(), FuConstRectangle::MouseButtonDown(), FuConstruct::MouseButtonDown(), FuConstUnoControl::MouseButtonDown(), FuSelection::MouseButtonDown(), FuText::MouseButtonDown(), FuConstArc::MouseButtonUp(), FuConstCustomShape::MouseButtonUp(), FuConstPolygon::MouseButtonUp(), FuConstRectangle::MouseButtonUp(), FuConstruct::MouseButtonUp(), FuConstUnoControl::MouseButtonUp(), FuSelection::MouseButtonUp(), FuText::MouseButtonUp(), FuConstPolygon::MouseMove(), FuConstruct::MouseMove(), FuDraw::MouseMove(), FuSelection::MouseMove(), FuText::MouseMove(), FuDraw::ResetModifiers(), FuText::SetInEditMode(), FuConstruct::SimpleMouseButtonUp(), FuText::StopEditMode(), and FuSelection::TestDetective().

◆ pWindow

VclPtr<vcl::Window> FuPoor::pWindow
protected

◆ rViewShell

ScTabViewShell& FuPoor::rViewShell
protected

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