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 SdrObjectUniquePtr CreateDefaultObject (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 40 of file fupoor.hxx.

Constructor & Destructor Documentation

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

Definition at line 53 of file fupoor.cxx.

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

Member Function Documentation

void FuPoor::Activate ( )
virtual
sal_uInt8 FuPoor::Command ( const CommandEvent rCEvt)
SdrObjectUniquePtr FuPoor::CreateDefaultObject ( const sal_uInt16  nID,
const tools::Rectangle rRectangle 
)
virtual

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

Definition at line 217 of file fupoor.cxx.

Referenced by ScTabViewShell::ExecDraw().

void FuPoor::Deactivate ( )
virtual
FuPoor::DECL_LINK ( ScrollHdl  ,
Timer ,
void   
)
protected
FuPoor::DECL_LINK ( DragTimerHdl  ,
Timer ,
void   
)
protected
FuPoor::DECL_LINK ( DragHdl  ,
void ,
void   
)
protected
bool FuPoor::doConstructOrthogonal ( ) const
virtual
void FuPoor::ForceScroll ( const Point aPixPos)
protected
sal_uInt16 FuPoor::GetMouseButtonCode ( ) const
inline

Definition at line 72 of file fupoor.hxx.

References mnCode.

sal_uInt16 FuPoor::GetSlotID ( ) const
inline
void FuPoor::ImpForceQuadratic ( tools::Rectangle rRect)
staticprotected
bool FuPoor::IsDetectiveHit ( const Point rLogicPos)
bool FuPoor::KeyInput ( const KeyEvent rKEvt)
virtual

Reimplemented in FuDraw, FuText, and FuConstruct.

Definition at line 135 of file fupoor.cxx.

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

bool FuPoor::MouseButtonDown ( const MouseEvent rMEvt)
virtual
bool FuPoor::MouseButtonUp ( const MouseEvent rMEvt)
virtual
virtual bool FuPoor::MouseMove ( const MouseEvent )
inlinevirtual

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

Definition at line 76 of file fupoor.hxx.

Referenced by ScGridWindow::DrawMouseMove().

void FuPoor::SetMouseButtonCode ( sal_uInt16  nNew)
inline
void FuPoor::SetWindow ( vcl::Window pWin)
inline
void FuPoor::StopDragTimer ( )

Definition at line 210 of file fupoor.cxx.

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

Referenced by ScGridWindow::DrawEndAction().

Member Data Documentation

Timer FuPoor::aDragTimer
protected
Point FuPoor::aMDPos
protected
Timer FuPoor::aScrollTimer
protected

Definition at line 50 of file fupoor.hxx.

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

SfxRequest FuPoor::aSfxRequest
protected
bool FuPoor::bIsInDragMode
protected
sal_uInt16 FuPoor::mnCode
private

Definition at line 63 of file fupoor.hxx.

Referenced by GetMouseButtonCode().

SdrModel* FuPoor::pDrDoc
protected
ScDrawView* FuPoor::pView
protected

Definition at line 43 of file fupoor.hxx.

Referenced by FuConstArc::Activate(), FuConstRectangle::Activate(), FuConstPolygon::Activate(), FuConstCustomShape::Activate(), FuText::Activate(), FuConstUnoControl::Activate(), FuSelection::ActivateNoteHandles(), Command(), FuConstArc::CreateDefaultObject(), FuConstRectangle::CreateDefaultObject(), FuConstPolygon::CreateDefaultObject(), FuConstCustomShape::CreateDefaultObject(), FuConstUnoControl::CreateDefaultObject(), FuText::CreateDefaultObject(), FuConstPolygon::Deactivate(), FuConstCustomShape::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(), FuText::KeyInput(), FuDraw::KeyInput(), FuConstRectangle::MouseButtonDown(), FuConstArc::MouseButtonDown(), FuConstPolygon::MouseButtonDown(), FuConstruct::MouseButtonDown(), FuConstCustomShape::MouseButtonDown(), FuSelection::MouseButtonDown(), FuText::MouseButtonDown(), FuConstUnoControl::MouseButtonDown(), FuConstArc::MouseButtonUp(), FuConstRectangle::MouseButtonUp(), FuConstPolygon::MouseButtonUp(), FuConstruct::MouseButtonUp(), FuConstCustomShape::MouseButtonUp(), FuSelection::MouseButtonUp(), FuText::MouseButtonUp(), FuConstUnoControl::MouseButtonUp(), FuConstPolygon::MouseMove(), FuConstruct::MouseMove(), FuSelection::MouseMove(), FuText::MouseMove(), FuDraw::MouseMove(), FuDraw::ResetModifiers(), FuText::SetInEditMode(), FuConstruct::SimpleMouseButtonUp(), FuText::StopEditMode(), and FuSelection::TestDetective().

VclPtr<vcl::Window> FuPoor::pWindow
protected
ScTabViewShell& FuPoor::rViewShell
protected

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