LibreOffice Module sc (master) 1
Public Member Functions | Private Member Functions | List of all members
FuText Class Reference

Base class for Text functions. More...

#include <futext.hxx>

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

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< SdrObjectCreateDefaultObject (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< SdrObjectCreateDefaultObject (const sal_uInt16 nID, const tools::Rectangle &rRectangle)
 
virtual bool doConstructOrthogonal () const
 

Private Member Functions

std::unique_ptr< SdrOutlinerMakeOutliner ()
 

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
ScDrawViewpView
 
ScTabViewShellrViewShell
 
VclPtr< vcl::WindowpWindow
 
SdrModelpDrDoc
 
SfxRequest aSfxRequest
 
Timer aScrollTimer
 
Timer aDragTimer
 
bool bIsInDragMode
 
Point aMDPos
 

Detailed Description

Base class for Text functions.

Definition at line 27 of file futext.hxx.

Constructor & Destructor Documentation

◆ FuText()

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

Definition at line 102 of file futext.cxx.

◆ ~FuText()

FuText::~FuText ( )
overridevirtual

Definition at line 108 of file futext.cxx.

Member Function Documentation

◆ Activate()

void FuText::Activate ( )
overridevirtual

◆ CreateDefaultObject()

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

◆ Deactivate()

void FuText::Deactivate ( )
overridevirtual

◆ ForcePointer()

void FuText::ForcePointer ( const MouseEvent pMEvt)
overridevirtual

Reimplemented from FuDraw.

Definition at line 474 of file futext.cxx.

References FuDraw::aNewPointer, FuPoor::rViewShell, and ScTabView::SetActivePointer().

◆ KeyInput()

bool FuText::KeyInput ( const KeyEvent rKEvt)
overridevirtual

◆ MakeOutliner()

std::unique_ptr< SdrOutliner > FuText::MakeOutliner ( )
private

◆ MouseButtonDown()

bool FuText::MouseButtonDown ( const MouseEvent rMEvt)
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().

◆ MouseButtonUp()

bool FuText::MouseButtonUp ( const MouseEvent rMEvt)
overridevirtual

◆ MouseMove()

bool FuText::MouseMove ( const MouseEvent rMEvt)
overridevirtual

◆ SetInEditMode()

void FuText::SetInEditMode ( SdrObject pObj = nullptr,
const Point pMousePixel = nullptr,
bool  bCursorToEnd = false,
const KeyEvent pInitialKey = nullptr 
)

◆ StopEditMode()

void FuText::StopEditMode ( )

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