LibreOffice Module sc (master) 1
|
#include <select.hxx>
Public Member Functions | |
ScViewFunctionSet (ScViewData *pNewViewData) | |
void | SetSelectionEngine (ScViewSelectionEngine *pSelEngine) |
void | SetAnchor (SCCOL nPosX, SCROW nPosY) |
void | SetAnchorFlag (bool bSet) |
virtual void | BeginDrag () override |
virtual void | CreateAnchor () override |
virtual void | DestroyAnchor () override |
virtual void | SetCursorAtPoint (const Point &rPointPixel, bool bDontSelectAtCursor=false) override |
virtual bool | IsSelectionAtPoint (const Point &rPointPixel) override |
virtual void | DeselectAtPoint (const Point &rPointPixel) override |
virtual void | DeselectAll () override |
bool | SetCursorAtCell (SCCOL nPosX, SCROW nPosY, bool bScroll) |
bool | CheckRefBounds (SCCOL nPosX, SCROW nPosY) |
Public Member Functions inherited from FunctionSet | |
virtual | ~FunctionSet ()=0 |
virtual void | BeginDrag ()=0 |
virtual void | CreateAnchor ()=0 |
virtual void | DestroyAnchor ()=0 |
virtual void | SetCursorAtPoint (const Point &rPointPixel, bool bDontSelectAtCursor=false)=0 |
virtual bool | IsSelectionAtPoint (const Point &rPointPixel)=0 |
virtual void | DeselectAtPoint (const Point &rPointPixel)=0 |
virtual void | DeselectAll ()=0 |
Private Member Functions | |
ScSplitPos | GetWhich () const |
sal_uLong | CalcUpdateInterval (const Size &rWinSize, const Point &rEffPos, bool bLeftScroll, bool bTopScroll, bool bRightScroll, bool bBottomScroll) |
Private Attributes | |
ScViewData * | m_pViewData |
ScViewSelectionEngine * | m_pEngine |
bool | m_bAnchor |
bool | m_bStarted |
ScAddress | m_aAnchorPos |
Definition at line 40 of file select.hxx.
ScViewFunctionSet::ScViewFunctionSet | ( | ScViewData * | pNewViewData | ) |
Definition at line 46 of file select.cxx.
References m_pViewData.
|
overridevirtual |
Implements FunctionSet.
Definition at line 146 of file select.cxx.
References ScRange::aStart, ScAddress::Col(), ScViewFunc::CopyToClip(), DND_ACTION_COPY, DND_ACTION_COPYMOVE, DND_ACTION_LINK, vcl::Window::EndTracking(), ScTabView::FakeButtonUp(), SfxObjectShell::FillTransferableObjectDescriptor(), ScViewData::GetActiveWin(), ScViewData::GetCurX(), ScViewData::GetCurY(), ScViewData::GetDocShell(), ScViewData::GetMarkData(), SfxObjectShell::GetMedium(), SelectionEngine::GetMousePosPixel(), ScViewData::GetPosFromPixel(), ScViewData::GetTabNo(), INetURLObject::GetURLNoPass(), SfxMedium::GetURLObject(), ScViewData::GetView(), GetWhich(), comphelper::LibreOfficeKit::isActive(), ScModule::IsFormulaMode(), ScMarkData::IsMarked(), ScMarkData::IsMultiMarked(), vcl::Window::IsTracking(), vcl::Window::LocalStartDrag(), m_pEngine, m_pViewData, TransferableObjectDescriptor::maDisplayName, ScMarkData::MarkToSimple(), ScAddress::Row(), SC_MOD, SCDOCMODE_CLIP, ScViewFunc::SelectionEditable(), Point::X(), and Point::Y().
|
private |
Definition at line 63 of file select.cxx.
References vcl::Window::GetDesktopRectPixel(), tools::Rectangle::GetHeight(), Size::getHeight(), ScViewData::GetViewShell(), tools::Rectangle::GetWidth(), Size::getWidth(), SelectionEngine::GetWindow(), Point::getX(), Point::getY(), Size::Height(), ScTabViewShell::IsRefInputMode(), m_pEngine, m_pViewData, vcl::Window::OutputToAbsoluteScreenPixel(), SELENG_AUTOREPEAT_INTERVAL_MAX, Size::Width(), Point::X(), and Point::Y().
Referenced by SetCursorAtPoint().
Definition at line 426 of file select.cxx.
References ScViewData::GetRefEndX(), ScViewData::GetRefEndY(), ScViewData::GetRefStartX(), ScViewData::GetRefStartY(), and m_pViewData.
Referenced by ScGridWindow::MouseButtonDown(), and SetCursorAtCell().
|
overridevirtual |
Implements FunctionSet.
Definition at line 220 of file select.cxx.
References ScViewData::GetCurX(), ScViewData::GetCurY(), ScViewData::GetRefStartX(), ScViewData::GetRefStartY(), m_bAnchor, m_pViewData, SC_MOD, and SetAnchor().
Referenced by SetCursorAtCell().
|
overridevirtual |
Implements FunctionSet.
Definition at line 766 of file select.cxx.
References ScTabView::DoneBlockMode(), ScTabView::DoneRefMode(), ScViewData::GetView(), ScViewData::GetViewShell(), ScViewData::IsAnyFillMode(), m_bAnchor, m_pViewData, SC_MOD, and ScTabViewShell::UpdateInputHandler().
|
overridevirtual |
Implements FunctionSet.
Definition at line 761 of file select.cxx.
|
overridevirtual |
Implements FunctionSet.
Definition at line 275 of file select.cxx.
References ScTabView::DoneBlockMode(), ScTabView::DoneRefMode(), ScViewData::GetView(), ScViewData::IsAnyFillMode(), m_bAnchor, m_pViewData, and SC_MOD.
|
private |
Definition at line 55 of file select.cxx.
References ScViewData::GetActivePart(), ScViewSelectionEngine::GetWhich(), m_pEngine, and m_pViewData.
Referenced by BeginDrag(), IsSelectionAtPoint(), SetCursorAtCell(), and SetCursorAtPoint().
|
overridevirtual |
Implements FunctionSet.
Definition at line 740 of file select.cxx.
References ScViewData::GetMarkData(), ScViewData::GetPosFromPixel(), GetWhich(), ScViewData::IsAnyFillMode(), ScMarkData::IsCellMarked(), ScMarkData::IsMultiMarked(), m_bAnchor, m_pViewData, SC_MOD, Point::X(), and Point::Y().
Definition at line 231 of file select.cxx.
References ScAddress::Col(), ScTabView::DoneBlockMode(), ScTabView::DoneRefMode(), ScViewData::GetMarkData(), ScViewData::GetTabNo(), ScViewData::GetView(), ScTabView::InitBlockMode(), ScTabView::InitRefMode(), ScViewData::IsAnyFillMode(), ScMarkData::IsMarked(), ScTabView::IsMarking(), ScMarkData::IsMultiMarked(), m_aAnchorPos, m_bAnchor, m_bStarted, m_pViewData, ScAddress::Row(), SC_MOD, SC_REFTYPE_REF, ScAddress::Set(), and ScAddress::Tab().
Referenced by CreateAnchor().
void ScViewFunctionSet::SetAnchorFlag | ( | bool | bSet | ) |
Definition at line 289 of file select.cxx.
References m_bAnchor.
Referenced by ScGridWindow::MouseButtonUp().
Definition at line 437 of file select.cxx.
References ScRange::aEnd, ScTabView::AlignToCursor(), ScRange::aStart, CheckRefBounds(), ScAddress::Col(), ScDocument::ColHidden(), CreateAnchor(), ScTabView::DoneBlockMode(), ScTabView::DoneRefMode(), EMBED_LT, EMBED_RB, ScDocument::FirstVisibleRow(), ScDocument::GetColWidth(), ScViewData::GetCurX(), ScViewData::GetCurY(), ScViewData::GetDelMark(), SfxLokHelper::getDeviceFormFactor(), ScViewData::GetDocument(), ScDocument::GetEmbedded(), ScViewData::GetFillMode(), ScViewData::GetMarkData(), SelectionEngine::GetMouseEvent(), ScViewData::GetRefStartX(), ScViewData::GetRefStartY(), ScViewData::GetRefType(), ScDocument::GetRowHeight(), ScViewData::GetSfxDocShell(), ScViewData::GetSimpleArea(), ScViewData::GetTabNo(), ScDocument::GetTabProtection(), ScViewData::GetView(), ScViewData::GetViewShell(), GetWhich(), ScDocument::HasAttrib(), ScTabView::HideAllCursors(), i, ScTabView::InitBlockMode(), ScTabView::InitRefMode(), ScViewData::IsAnyFillMode(), ScDocument::IsEmbedded(), ScViewData::IsFillMode(), ScMarkData::IsMarked(), ScModule::IsModalMode(), ScMarkData::IsMultiMarked(), ScTableProtection::isOptionEnabled(), ScTabViewShell::IsRefInputMode(), ScViewData::IsSelCtrlMouseClick(), MouseEvent::IsShift(), ScDocument::IsTabProtected(), KEY_MOD1, m_aAnchorPos, m_bAnchor, m_bStarted, m_pEngine, m_pViewData, ScTabView::MarkCursor(), Marks, MATRIX, nScFillModeMouseModifier, Protected, ScViewData::ResetDelMark(), ScAddress::Row(), SC_FOLLOW_LINE, SC_MOD, SC_REFTYPE_EMBED_LT, SC_REFTYPE_EMBED_RB, SC_REFTYPE_FILL, SC_REFTYPE_REF, ScTableProtection::SELECT_LOCKED_CELLS, ScTableProtection::SELECT_UNLOCKED_CELLS, ScTabView::SelectionChanged(), ScAddress::Set(), ScTabView::SetCursor(), ScViewData::SetDelMark(), ScViewData::SetRefStart(), ScTabView::ShowAllCursors(), ScAddress::Tab(), ScTabView::UpdateRef(), ScTabView::UpdateShrinkOverlay(), and ScDocument::ValidRow().
Referenced by ScTabView::MoveCursorAbs(), and SetCursorAtPoint().
|
overridevirtual |
Implements FunctionSet.
Definition at line 294 of file select.cxx.
References ScTabView::ActivatePart(), aSwitchPos, bDidSwitch, tools::Rectangle::Bottom(), CalcUpdateInterval(), ScDocument::ColHidden(), ScViewData::GetActivePart(), ScViewData::GetDocument(), ScViewData::GetEditArea(), ScViewData::GetFillMode(), ScViewData::GetHSplitMode(), ScViewData::GetMouseQuadrant(), vcl::Window::GetOutputSizePixel(), ScViewData::GetPosFromPixel(), ScViewData::GetTabNo(), ScViewData::GetView(), ScViewData::GetVSplitMode(), GetWhich(), SelectionEngine::GetWindow(), Size::Height(), ScViewData::IsFillMode(), ScDocument::LastVisibleRow(), m_pEngine, m_pViewData, MATRIX, ScViewData::ResetOldCursor(), tools::Rectangle::Right(), SC_SPLIT_BOTTOMLEFT, SC_SPLIT_BOTTOMRIGHT, SC_SPLIT_FIX, SC_SPLIT_TOPLEFT, SC_SPLIT_TOPRIGHT, SELENG_AUTOREPEAT_INTERVAL, SetCursorAtCell(), SelectionEngine::SetUpdateInterval(), Point::setX(), Point::setY(), ScDocument::ValidRow(), Size::Width(), Point::X(), and Point::Y().
void ScViewFunctionSet::SetSelectionEngine | ( | ScViewSelectionEngine * | pSelEngine | ) |
|
private |
Definition at line 48 of file select.hxx.
Referenced by SetAnchor(), and SetCursorAtCell().
|
private |
Definition at line 46 of file select.hxx.
Referenced by CreateAnchor(), DeselectAll(), DestroyAnchor(), IsSelectionAtPoint(), SetAnchor(), SetAnchorFlag(), and SetCursorAtCell().
|
private |
Definition at line 47 of file select.hxx.
Referenced by SetAnchor(), and SetCursorAtCell().
|
private |
Definition at line 44 of file select.hxx.
Referenced by BeginDrag(), CalcUpdateInterval(), GetWhich(), SetCursorAtCell(), SetCursorAtPoint(), and SetSelectionEngine().
|
private |
Definition at line 43 of file select.hxx.
Referenced by BeginDrag(), CalcUpdateInterval(), CheckRefBounds(), CreateAnchor(), DeselectAll(), DestroyAnchor(), GetWhich(), IsSelectionAtPoint(), ScViewFunctionSet(), SetAnchor(), SetCursorAtCell(), and SetCursorAtPoint().