LibreOffice Module sc (master) 1
|
Base class for Text functions. More...
#include <futext.hxx>
Public Member Functions | |
FuText (ScTabViewShell &rViewSh, vcl::Window *pWin, ScDrawView *pView, SdrModel *pDoc, const SfxRequest &rReq) | |
virtual | ~FuText () override |
virtual bool | KeyInput (const KeyEvent &rKEvt) override |
virtual bool | MouseMove (const MouseEvent &rMEvt) override |
virtual bool | MouseButtonUp (const MouseEvent &rMEvt) override |
virtual bool | MouseButtonDown (const MouseEvent &rMEvt) override |
virtual void | Activate () override |
virtual void | Deactivate () override |
virtual void | ForcePointer (const MouseEvent *pMEvt) override |
void | SetInEditMode (SdrObject *pObj=nullptr, const Point *pMousePixel=nullptr, bool bCursorToEnd=false, const KeyEvent *pInitialKey=nullptr) |
void | StopEditMode () |
virtual rtl::Reference< SdrObject > | CreateDefaultObject (const sal_uInt16 nID, const tools::Rectangle &rRectangle) override |
Public Member Functions inherited from FuConstruct | |
FuConstruct (ScTabViewShell &rViewSh, vcl::Window *pWin, ScDrawView *pView, SdrModel *pDoc, const SfxRequest &rReq) | |
virtual | ~FuConstruct () override |
virtual bool | KeyInput (const KeyEvent &rKEvt) override |
virtual SC_DLLPUBLIC bool | MouseMove (const MouseEvent &rMEvt) override |
virtual bool | MouseButtonUp (const MouseEvent &rMEvt) override |
virtual bool | MouseButtonDown (const MouseEvent &rMEvt) override |
bool | SimpleMouseButtonUp (const MouseEvent &rMEvt) |
Public Member Functions inherited from FuDraw | |
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 |
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 |
Private Member Functions | |
std::unique_ptr< SdrOutliner > | MakeOutliner () |
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) |
Protected Attributes inherited from FuDraw | |
PointerStyle | aNewPointer |
PointerStyle | aOldPointer |
Protected Attributes inherited from FuPoor | |
ScDrawView * | pView |
ScTabViewShell & | rViewShell |
VclPtr< vcl::Window > | pWindow |
SdrModel * | pDrDoc |
SfxRequest | aSfxRequest |
Timer | aScrollTimer |
Timer | aDragTimer |
bool | bIsInDragMode |
Point | aMDPos |
Base class for Text functions.
Definition at line 27 of file futext.hxx.
FuText::FuText | ( | ScTabViewShell & | rViewSh, |
vcl::Window * | pWin, | ||
ScDrawView * | pView, | ||
SdrModel * | pDoc, | ||
const SfxRequest & | rReq | ||
) |
Definition at line 102 of file futext.cxx.
|
overridevirtual |
Definition at line 108 of file futext.cxx.
|
overridevirtual |
Reimplemented from FuPoor.
Definition at line 498 of file futext.cxx.
References FuPoor::Activate(), FuDraw::aNewPointer, FuDraw::aOldPointer, SfxViewFrame::GetBindings(), SfxViewShell::GetViewFrame(), SfxBindings::Invalidate(), FuPoor::pView, FuPoor::pWindow, FuPoor::rViewShell, ScTabView::SetActivePointer(), SdrCreateView::SetCreateMode(), SdrCreateView::SetCurrentObj(), and SdrMarkView::SetDragMode().
|
overridevirtual |
Reimplemented from FuPoor.
Definition at line 623 of file futext.cxx.
References DynCastSdrTextObj(), SdrCreateView::GetCurrentObjIdentifier(), SdrCreateView::GetCurrentObjInventor(), SdrModel::GetItemPool(), SdrObjFactory::MakeNewObject(), makeSdrTextAutoGrowHeightItem(), makeSdrTextAutoGrowWidthItem(), FuPoor::pDrDoc, SfxItemSet::Put(), FuPoor::pView, FuPoor::pWindow, SDRTEXTHORZADJUST_RIGHT, SDRTEXTVERTADJUST_TOP, SetInEditMode(), and Width.
|
overridevirtual |
Reimplemented from FuPoor.
Definition at line 525 of file futext.cxx.
References FuDraw::aOldPointer, FuPoor::Deactivate(), FuPoor::rViewShell, ScTabView::SetActivePointer(), and StopEditMode().
|
overridevirtual |
Reimplemented from FuDraw.
Definition at line 474 of file futext.cxx.
References FuDraw::aNewPointer, FuPoor::rViewShell, and ScTabView::SetActivePointer().
|
overridevirtual |
Reimplemented from FuConstruct.
Definition at line 481 of file futext.cxx.
References SfxViewFrame::GetBindings(), SfxViewShell::GetViewFrame(), FuDraw::KeyInput(), FmFormView::KeyInput(), lcl_InvalidateAttribs(), FuPoor::pView, FuPoor::pWindow, and FuPoor::rViewShell.
|
private |
Definition at line 27 of file futext2.cxx.
References SdrModel::GetRefDevice(), ScTabView::GetViewData(), FuPoor::pDrDoc, FuPoor::pWindow, FuPoor::rViewShell, SdrMakeOutliner(), OutputDevice::SetMapMode(), and ScViewData::UpdateOutlinerFlags().
Referenced by MouseButtonDown(), and SetInEditMode().
|
overridevirtual |
?? the default values are not correct when result is without outliner ???!?
Reimplemented from FuConstruct.
Definition at line 113 of file futext.cxx.
References FuPoor::aDragTimer, FuPoor::aMDPos, FuPoor::aSfxRequest, SdrCreateView::BegCreateObj(), E3dView::BegDragObj(), SdrMarkView::BegMarkObj(), SdrMarkView::BegMarkPoints(), FuPoor::bIsInDragMode, Execute(), SfxDispatcher::Execute(), SfxViewFrame::GetBindings(), MouseEvent::GetButtons(), ScViewData::GetDispatcher(), SdrMarkView::GetHdl(), SdrMarkView::GetHdlNum(), SdrPaintView::getHitTolLog(), SdrHdl::GetKind(), SdrMarkList::GetMark(), SdrMarkList::GetMarkCount(), SdrMarkView::GetMarkedObjectList(), SdrMark::GetMarkedSdrObj(), SdrObject::GetOutlinerParaObject(), MouseEvent::GetPosPixel(), SdrView::GetPreferredPointer(), SfxRequest::GetSlot(), SdrObjEditView::GetTextEditOutlinerView(), ScTabView::GetViewData(), SfxViewShell::GetViewFrame(), SdrMarkView::HasMarkablePoints(), SfxBindings::Invalidate(), FuDraw::IsEditingANote(), SdrMarkView::IsEditMode(), OutlinerParaObject::IsEffectivelyVertical(), MouseEvent::IsLeft(), SdrMarkView::IsMarkedHit(), MouseEvent::IsMod1(), ScDrawLayer::IsNoteCaption(), SdrMarkView::IsPointMarkable(), SdrMarkView::IsPointMarked(), MouseEvent::IsShift(), FuDraw::IsSizingOrMovingNote(), SdrObjEditView::IsTextEdit(), lcl_InvalidateAttribs(), lcl_UpdateHyphenator(), MakeOutliner(), SdrMarkView::MarkObj(), SdrMarkView::MarkPoint(), OutlinerView::MouseButtonDown(), FmFormView::MouseButtonDown(), SdrMarkView::PickHandle(), SdrMarkView::PickObj(), FuPoor::pView, FuPoor::pWindow, FuPoor::rViewShell, ScDrawView::SdrBeginTextEdit(), ScTabView::SetActivePointer(), SdrCreateView::SetCreateMode(), SdrMarkView::SetDragMode(), ScTabViewShell::SetDrawTextUndo(), FuPoor::SetMouseButtonCode(), Timer::Start(), StopEditMode(), SdrView::UnmarkAll(), SdrMarkView::UnmarkAllObj(), SdrMarkView::UnmarkAllPoints(), and SdrMarkView::UnmarkPoint().
|
overridevirtual |
Reimplemented from FuConstruct.
Definition at line 361 of file futext.cxx.
References FuPoor::aDragTimer, SdrMarkView::AreObjectsMarked(), FuPoor::aSfxRequest, DynCastSdrTextObj(), SdrCreateView::EndAction(), SdrCreateView::EndCreateObj(), SdrDragView::EndDragObj(), SfxDispatcher::Execute(), SdrEditView::ForceMarkedToAnotherPage(), SfxViewFrame::GetBindings(), MouseEvent::GetButtons(), MouseEvent::GetClicks(), ScViewData::GetDispatcher(), SdrModel::GetItemPool(), SdrMarkList::GetMark(), SdrMarkView::GetMarkedObjectList(), SdrMark::GetMarkedSdrObj(), MouseEvent::GetPosPixel(), SfxRequest::GetSlot(), ScTabView::GetViewData(), SfxViewShell::GetViewFrame(), SdrCreateView::IsAction(), Task::IsActive(), SdrCreateView::IsCreateObj(), SdrDragView::IsDragObj(), MouseEvent::IsLeft(), MouseEvent::IsMod1(), MouseEvent::IsShift(), lcl_InvalidateAttribs(), makeSdrTextAutoGrowHeightItem(), makeSdrTextAutoGrowWidthItem(), SdrMarkView::MarkObj(), SdrView::MouseButtonUp(), FuPoor::pDrDoc, SfxItemSet::Put(), FuPoor::pView, FuPoor::pWindow, FuPoor::rViewShell, SDRTEXTHORZADJUST_RIGHT, SDRTEXTVERTADJUST_TOP, SetInEditMode(), SdrObject::SetMergedItemSetAndBroadcast(), FuPoor::SetMouseButtonCode(), Task::Stop(), and Width.
|
overridevirtual |
Reimplemented from FuConstruct.
Definition at line 332 of file futext.cxx.
References FuPoor::aDragTimer, FuPoor::aMDPos, FuPoor::ForceScroll(), MouseEvent::GetPosPixel(), SdrView::GetPreferredPointer(), SdrCreateView::IsAction(), Task::IsActive(), SdrView::MouseMove(), E3dView::MovAction(), FuPoor::pView, FuPoor::pWindow, FuPoor::rViewShell, SC_MAXDRAGMOVE, ScTabView::SetActivePointer(), Task::Stop(), Point::X(), and Point::Y().
void FuText::SetInEditMode | ( | SdrObject * | pObj = nullptr , |
const Point * | pMousePixel = nullptr , |
||
bool | bCursorToEnd = false , |
||
const KeyEvent * | pInitialKey = nullptr |
||
) |
?? without returned Outliner the defaults are not correct ???!?
Definition at line 533 of file futext.cxx.
References aNewSelection, SdrMarkView::AreObjectsMarked(), FuPoor::aSfxRequest, DynCastSdrTextObj(), EE_INDEX_NOT_FOUND, EE_PARA_NOT_FOUND, SdrObject::GetLayer(), SdrMarkList::GetMark(), SdrMarkList::GetMarkCount(), SdrMarkView::GetMarkedObjectList(), SdrMark::GetMarkedSdrObj(), SdrObject::GetObjIdentifier(), SdrObject::GetOutlinerParaObject(), SdrPaintView::GetSdrPageView(), SfxRequest::GetSlot(), SdrObjEditView::GetTextEditOutlinerView(), ScTabView::GetViewData(), SdrObject::HasTextEdit(), OutlinerParaObject::IsEffectivelyVertical(), lcl_UpdateHyphenator(), MakeOutliner(), MOUSE_LEFT, OutlinerView::MouseButtonDown(), OutlinerView::MouseButtonUp(), NONE, OutlinerView::PostKeyEvent(), FuPoor::pView, FuPoor::pWindow, FuPoor::rViewShell, SC_LAYER_INTERN(), ScDrawView::SdrBeginTextEdit(), ScTabViewShell::SetDrawTextUndo(), SdrCreateView::SetEditMode(), ScViewData::SetPasteMode(), OutlinerView::SetSelection(), ScDrawView::UnlockInternalLayer(), and ScTabView::UpdateCopySourceOverlay().
Referenced by CreateDefaultObject(), ScViewFunc::EditNote(), ScTabViewShell::ExecStyle(), lcl_KeyEditMode(), FuConstruct::MouseButtonUp(), FuSelection::MouseButtonUp(), and MouseButtonUp().
void FuText::StopEditMode | ( | ) |
Definition at line 42 of file futext3.cxx.
References SfxUndoManager::AddUndoAction(), ScPostIt::AutoStamp(), ScDrawLayer::BeginCalcUndo(), DynCastSdrTextObj(), SfxUndoManager::EnterListAction(), ScDrawLayer::GetCalcUndo(), ScPostIt::GetCaption(), ScViewData::GetDocShell(), ScViewData::GetDocument(), ScDocument::GetDrawLayer(), SfxUndoManager::GetMaxUndoActionCount(), ScDocument::GetNote(), ScDrawLayer::GetNoteCaptionData(), ScPostIt::GetNoteData(), ScDocument::GetSheetLimits(), ScViewData::GetTabNo(), SdrObjEditView::GetTextEditObject(), SfxUndoManager::GetUndoAction(), ScDocShell::GetUndoManager(), ScTabView::GetViewData(), SfxViewShell::GetViewShellId(), SdrTextObj::HasText(), vcl::Cursor::Hide(), ScDocument::IsUndoEnabled(), vcl::Cursor::IsVisible(), SfxUndoManager::LeaveListAction(), ScDrawView::LockInternalLayer(), ScDocument::LockStreamValid(), ScTabView::OnLOKNoteStateChanged(), FuPoor::pDrDoc, pObject, FuPoor::pView, FuPoor::pWindow, ScDocument::ReleaseNote(), SfxUndoManager::RemoveLastUndoAction(), FuPoor::rViewShell, SC_LAYER_INTERN(), ScResId(), ScDrawView::SdrEndTextEdit(), SfxListUndoAction::SetComment(), ScTabViewShell::SetDrawTextUndo(), ScDocument::SetStreamValid(), ScPostIt::ShowCaptionTemp(), ScAddress::Tab(), and ScViewFunc::UpdateSelectionArea().
Referenced by Deactivate(), and MouseButtonDown().