LibreOffice Module sc (master) 1
|
Base class for all functions. More...
#include <fupoor.hxx>
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< SdrObject > | 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 | |
ScDrawView * | pView |
ScTabViewShell & | rViewShell |
VclPtr< vcl::Window > | pWindow |
SdrModel * | pDrDoc |
SfxRequest | aSfxRequest |
Timer | aScrollTimer |
Timer | aDragTimer |
bool | bIsInDragMode |
Point | aMDPos |
Private Attributes | |
sal_uInt16 | mnCode |
Base class for all functions.
Definition at line 39 of file fupoor.hxx.
FuPoor::FuPoor | ( | ScTabViewShell & | rViewSh, |
vcl::Window * | pWin, | ||
ScDrawView * | pView, | ||
SdrModel * | pDoc, | ||
const SfxRequest & | rReq | ||
) |
Definition at line 35 of file fupoor.cxx.
References aDragTimer, aScrollTimer, LINK, SELENG_AUTOREPEAT_INTERVAL, SELENG_DRAGDROP_TIMEOUT, Timer::SetInvokeHandler(), and Timer::SetTimeout().
|
virtual |
Definition at line 55 of file fupoor.cxx.
References aDragTimer, aScrollTimer, and Task::Stop().
|
virtual |
Reimplemented in FuConstArc, FuConstCustomShape, FuConstPolygon, FuConstRectangle, FuConstUnoControl, and FuText.
Definition at line 61 of file fupoor.cxx.
Referenced by FuConstArc::Activate(), FuConstCustomShape::Activate(), FuConstPolygon::Activate(), FuConstRectangle::Activate(), FuConstUnoControl::Activate(), FuText::Activate(), and ScTabViewShell::ExecDraw().
sal_uInt8 FuPoor::Command | ( | const CommandEvent & | rCEvt | ) |
Definition at line 142 of file fupoor.cxx.
References SdrView::Command(), CommandEvent::GetCommand(), SdrObjEditView::GetTextEditOutlinerView(), OutlinerView::HasSelection(), pView, pWindow, and SC_CMD_NONE.
Referenced by ScGridWindow::DrawCommand().
|
virtual |
Reimplemented in FuConstArc, FuConstCustomShape, FuConstPolygon, FuConstRectangle, FuConstUnoControl, and FuText.
Definition at line 218 of file fupoor.cxx.
Referenced by ScTabViewShell::ExecDraw().
|
virtual |
Reimplemented in FuConstArc, FuConstCustomShape, FuConstPolygon, FuConstRectangle, FuConstUnoControl, and FuText.
Definition at line 65 of file fupoor.cxx.
References aDragTimer, aScrollTimer, and Task::Stop().
Referenced by FuConstArc::Deactivate(), FuConstCustomShape::Deactivate(), FuConstPolygon::Deactivate(), FuConstRectangle::Deactivate(), FuConstUnoControl::Deactivate(), FuText::Deactivate(), and ScTabViewShell::ExecDraw().
|
protected |
|
protected |
|
protected |
|
virtual |
Reimplemented in FuConstCustomShape.
Definition at line 241 of file fupoor.cxx.
References aMDPos, SdrMarkView::AreObjectsMarked(), aSfxRequest, SdrPaintView::GetDragStat(), SdrDragStat::GetHdl(), SdrMarkList::GetMark(), SdrMarkList::GetMarkCount(), SdrMarkView::GetMarkedObjectList(), SdrMark::GetMarkedSdrObj(), SdrObject::GetObjIdentifier(), SfxRequest::GetSlot(), SdrHdl::IsCornerHdl(), SdrDragView::IsDragObj(), SdrHdl::IsVertexHdl(), SdrMarkView::PickHandle(), and pView.
Referenced by FuDraw::DoModifiers().
|
protected |
Definition at line 72 of file fupoor.cxx.
References ScTabView::ActivatePart(), aScrollTimer, ScViewData::GetActivePart(), ScViewData::GetDocument(), ScViewData::GetHSplitMode(), ScViewData::GetTabNo(), ScTabView::GetViewData(), ScViewData::GetVSplitMode(), Size::Height(), ScDocument::IsNegativePage(), pWindow, rViewShell, SC_SPLIT_BOTTOMLEFT, SC_SPLIT_BOTTOMRIGHT, SC_SPLIT_FIX, SC_SPLIT_LEFT, SC_SPLIT_TOP, SC_SPLIT_TOPLEFT, SC_SPLIT_TOPRIGHT, ScTabView::ScrollLines(), Timer::Start(), Task::Stop(), WhichH(), WhichV(), Size::Width(), Point::X(), and Point::Y().
Referenced by FuConstruct::MouseMove(), FuSelection::MouseMove(), and FuText::MouseMove().
|
inline |
Definition at line 71 of file fupoor.hxx.
References mnCode.
|
inline |
Definition at line 90 of file fupoor.hxx.
References aSfxRequest, and SfxRequest::GetSlot().
Referenced by FuConstPolygon::Activate(), ScTabView::DrawDeselectAll(), ScTabViewShell::ExecDrawIns(), ScGridWinUIObject::execute(), lcl_KeyEditMode(), FuConstruct::MouseButtonUp(), FuSelection::MouseButtonUp(), ScTabViewShell::PrepareClose(), and ScTabViewObj::select().
|
staticprotected |
Definition at line 224 of file fupoor.cxx.
References tools::Rectangle::GetHeight(), tools::Rectangle::GetWidth(), tools::Rectangle::Left(), and tools::Rectangle::Top().
Referenced by FuConstArc::CreateDefaultObject(), and FuConstCustomShape::CreateDefaultObject().
bool FuPoor::IsDetectiveHit | ( | const Point & | rLogicPos | ) |
Definition at line 186 of file fupoor.cxx.
References SdrPaintView::GetHitTolerancePixel(), SdrPageView::GetObjList(), SdrPaintView::GetSdrPageView(), ScDetectiveFunc::IsNonAlienArrow(), SdrObjListIter::Next(), pObject, pView, pWindow, and SdrObjectPrimitiveHit().
Referenced by ScGridWindow::DrawMouseButtonDown(), and FuDraw::ForcePointer().
|
virtual |
Reimplemented in FuConstruct, FuDraw, and FuText.
Definition at line 137 of file fupoor.cxx.
Referenced by ScGridWindow::DrawKeyInput(), ScTabViewShell::ExecDraw(), and FuDraw::KeyInput().
|
virtual |
Reimplemented in FuConstArc, FuConstCustomShape, FuConstPolygon, FuConstRectangle, FuConstruct, FuConstUnoControl, FuDraw, FuSelection, and FuText.
Definition at line 128 of file fupoor.cxx.
References MouseEvent::GetButtons(), and SetMouseButtonCode().
Referenced by ScGridWindow::DrawMouseButtonDown().
|
virtual |
Reimplemented in FuConstArc, FuConstCustomShape, FuConstPolygon, FuConstRectangle, FuConstruct, FuConstUnoControl, FuDraw, FuSelection, and FuText.
Definition at line 120 of file fupoor.cxx.
References MouseEvent::GetButtons(), and SetMouseButtonCode().
Referenced by ScGridWindow::DrawMouseButtonUp().
|
inlinevirtual |
Reimplemented in FuConstPolygon, FuConstruct, FuDraw, FuSelection, and FuText.
Definition at line 75 of file fupoor.hxx.
Referenced by ScGridWindow::DrawMouseMove().
|
inline |
Definition at line 70 of file fupoor.hxx.
References mnCode.
Referenced by MouseButtonDown(), FuConstArc::MouseButtonDown(), FuConstCustomShape::MouseButtonDown(), FuConstPolygon::MouseButtonDown(), FuConstRectangle::MouseButtonDown(), FuConstruct::MouseButtonDown(), FuConstUnoControl::MouseButtonDown(), FuDraw::MouseButtonDown(), FuSelection::MouseButtonDown(), FuText::MouseButtonDown(), MouseButtonUp(), FuConstArc::MouseButtonUp(), FuConstCustomShape::MouseButtonUp(), FuConstPolygon::MouseButtonUp(), FuConstRectangle::MouseButtonUp(), FuConstruct::MouseButtonUp(), FuConstUnoControl::MouseButtonUp(), FuDraw::MouseButtonUp(), FuSelection::MouseButtonUp(), and FuText::MouseButtonUp().
|
inline |
Definition at line 88 of file fupoor.hxx.
References pWindow.
Referenced by ScGridWindow::DrawCommand(), ScGridWindow::DrawKeyInput(), ScGridWindow::DrawMouseButtonDown(), ScGridWindow::DrawMouseButtonUp(), ScGridWindow::DrawMouseMove(), and ScTabViewShell::WindowChanged().
void FuPoor::StopDragTimer | ( | ) |
Definition at line 211 of file fupoor.cxx.
References aDragTimer, Task::IsActive(), and Task::Stop().
Referenced by ScGridWindow::DrawEndAction().
|
protected |
Definition at line 53 of file fupoor.hxx.
Referenced by Deactivate(), FuPoor(), FuConstruct::MouseButtonDown(), FuSelection::MouseButtonDown(), FuText::MouseButtonDown(), FuSelection::MouseButtonUp(), FuText::MouseButtonUp(), FuConstruct::MouseMove(), FuSelection::MouseMove(), FuText::MouseMove(), FuConstruct::SimpleMouseButtonUp(), StopDragTimer(), and ~FuPoor().
|
protected |
Definition at line 57 of file fupoor.hxx.
Referenced by doConstructOrthogonal(), FuDraw::ForcePointer(), FuConstruct::MouseButtonDown(), FuSelection::MouseButtonDown(), FuText::MouseButtonDown(), FuSelection::MouseButtonUp(), FuConstruct::MouseMove(), FuSelection::MouseMove(), and FuText::MouseMove().
|
protected |
Definition at line 49 of file fupoor.hxx.
Referenced by Deactivate(), ForceScroll(), FuPoor(), and ~FuPoor().
|
protected |
Definition at line 47 of file fupoor.hxx.
Referenced by FuConstArc::Activate(), FuConstRectangle::Activate(), doConstructOrthogonal(), GetSlotID(), FuConstruct::KeyInput(), FuDraw::KeyInput(), FuConstRectangle::MouseButtonDown(), FuText::MouseButtonDown(), FuConstRectangle::MouseButtonUp(), FuText::MouseButtonUp(), FuText::SetInEditMode(), and FuConstruct::SimpleMouseButtonUp().
|
protected |
Definition at line 56 of file fupoor.hxx.
Referenced by FuConstruct::MouseButtonDown(), FuSelection::MouseButtonDown(), and FuText::MouseButtonDown().
|
private |
Definition at line 62 of file fupoor.hxx.
Referenced by GetMouseButtonCode(), and SetMouseButtonCode().
|
protected |
Definition at line 45 of file fupoor.hxx.
Referenced by FuConstArc::CreateDefaultObject(), FuConstCustomShape::CreateDefaultObject(), FuConstPolygon::CreateDefaultObject(), FuConstRectangle::CreateDefaultObject(), FuConstUnoControl::CreateDefaultObject(), FuText::CreateDefaultObject(), FuText::MakeOutliner(), FuText::MouseButtonUp(), and FuText::StopEditMode().
|
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().
|
protected |
Definition at line 44 of file fupoor.hxx.
Referenced by FuConstArc::Activate(), FuConstCustomShape::Activate(), FuConstPolygon::Activate(), FuConstRectangle::Activate(), FuConstUnoControl::Activate(), FuText::Activate(), Command(), FuText::CreateDefaultObject(), FuDraw::ForcePointer(), ForceScroll(), FuInsertGraphic::FuInsertGraphic(), FuInsertMedia::FuInsertMedia(), IsDetectiveHit(), FuDraw::IsSizingOrMovingNote(), FuConstruct::KeyInput(), FuDraw::KeyInput(), FuText::KeyInput(), FuText::MakeOutliner(), FuConstArc::MouseButtonDown(), FuConstCustomShape::MouseButtonDown(), FuConstPolygon::MouseButtonDown(), FuConstRectangle::MouseButtonDown(), FuConstruct::MouseButtonDown(), FuConstUnoControl::MouseButtonDown(), FuSelection::MouseButtonDown(), FuText::MouseButtonDown(), FuConstPolygon::MouseButtonUp(), FuSelection::MouseButtonUp(), FuText::MouseButtonUp(), FuConstPolygon::MouseMove(), FuConstruct::MouseMove(), FuSelection::MouseMove(), FuText::MouseMove(), FuText::SetInEditMode(), SetWindow(), FuConstruct::SimpleMouseButtonUp(), FuText::StopEditMode(), and FuSelection::TestDetective().
|
protected |
Definition at line 43 of file fupoor.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(), FuText::Deactivate(), FuDraw::ForcePointer(), FuText::ForcePointer(), ForceScroll(), FuInsertChart::FuInsertChart(), FuInsertMedia::FuInsertMedia(), FuInsertOLE::FuInsertOLE(), FuSelection::IsNoteCaptionClicked(), FuConstruct::KeyInput(), FuDraw::KeyInput(), FuText::KeyInput(), FuText::MakeOutliner(), FuSelection::MouseButtonDown(), FuText::MouseButtonDown(), FuConstruct::MouseButtonUp(), FuSelection::MouseButtonUp(), FuText::MouseButtonUp(), FuConstruct::MouseMove(), FuText::MouseMove(), FuDraw::ResetModifiers(), FuText::SetInEditMode(), FuConstruct::SimpleMouseButtonUp(), FuText::StopEditMode(), and FuSelection::TestDetective().