LibreOffice Module sc (master) 1
Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
ScTextWnd Class Reference

#include <inputwin.hxx>

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

Public Member Functions

 ScTextWnd (ScTextWndGroup &rParent, ScTabViewShell *pViewSh)
 
virtual void SetDrawingArea (weld::DrawingArea *pDrawingArea) override
 
virtual ~ScTextWnd () override
 
virtual void SetTextString (const OUString &rString) override
 
virtual const OUString & GetTextString () const override
 
bool IsInputActive () override
 
virtual EditViewGetEditView () const override
 
virtual bool HasEditView () const override
 
const OutputDeviceGetEditViewDevice () const
 
virtual void MakeDialogEditView () override
 
virtual void StartEditEngine () override
 
virtual void StopEditEngine (bool bAll) override
 
virtual void TextGrabFocus () override
 
virtual void StyleUpdated () override
 
virtual void EditViewScrollStateChange () override
 
virtual void SetFormulaMode (bool bSet) override
 
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible () override
 
virtual void InsertAccessibleTextData (ScAccessibleEditLineTextData &rTextData) override
 
virtual void RemoveAccessibleTextData (ScAccessibleEditLineTextData &rTextData) override
 
virtual void Resize () override
 
int GetPixelHeightForLines (tools::Long nLines)
 
int GetEditEngTxtHeight () const
 
virtual tools::Long GetNumLines () const override
 
void SetNumLines (tools::Long nLines)
 
tools::Long GetLastNumExpandedLines () const
 
void SetLastNumExpandedLines (tools::Long nLastExpandedLines)
 
void DoScroll ()
 
 DECL_LINK (ModifyHdl, LinkParamNone *, void)
 
 DECL_LINK (EditStatusHdl, EditStatus &, void)
 
- Public Member Functions inherited from WeldEditView
 WeldEditView ()
 
virtual void SetDrawingArea (weld::DrawingArea *pDrawingArea) override
 
virtual int GetSurroundingText (OUString &rSurrounding) override
 
virtual bool DeleteSurroundingText (const Selection &rRange) override
 
void SetText (const OUString &rStr)
 
OUString GetText () const
 
virtual FactoryFunction GetUITestFactory () const override
 
void SetModifyHdl (const Link< LinkParamNone *, void > &rLink)
 
virtual EditViewGetEditView () const
 
virtual EditEngineGetEditEngine () const
 
bool HasSelection () const
 
void Delete ()
 
void Cut ()
 
void Copy ()
 
void Paste ()
 
virtual ~WeldEditView () override
 
virtual void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
 
virtual bool MouseMove (const MouseEvent &rMEvt) override
 
virtual bool MouseButtonDown (const MouseEvent &rMEvt) override
 
virtual bool MouseButtonUp (const MouseEvent &rMEvt) override
 
virtual bool KeyInput (const KeyEvent &rKEvt) override
 
virtual bool Command (const CommandEvent &rCEvt) override
 
virtual bool CanFocus () const
 
virtual void GetFocus () override
 
virtual void LoseFocus () override
 
virtual void Resize () override
 
virtual css::uno::Reference< css::datatransfer::clipboard::XClipboard > GetClipboard () const override
 
virtual css::uno::Reference< css::datatransfer::dnd::XDropTarget > GetDropTarget () override
 
bool GetAcceptsTab () const
 
void SetAcceptsTab (bool bAcceptsTab)
 
- Public Member Functions inherited from ScTextWndBase
virtual void InsertAccessibleTextData (ScAccessibleEditLineTextData &rTextData)=0
 
virtual void RemoveAccessibleTextData (ScAccessibleEditLineTextData &rTextData)=0
 
virtual void SetTextString (const OUString &rString)=0
 
virtual const OUString & GetTextString () const =0
 
virtual void StartEditEngine ()=0
 
virtual void StopEditEngine (bool bAll)=0
 
virtual EditViewGetEditView () const =0
 
virtual bool HasEditView () const =0
 
virtual void MakeDialogEditView ()=0
 
virtual void SetFormulaMode (bool bSet)=0
 
virtual bool IsInputActive ()=0
 
virtual void TextGrabFocus ()=0
 
virtual tools::Long GetNumLines () const =0
 
virtual ~ScTextWndBase ()
 

Protected Member Functions

virtual void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
 
virtual bool MouseMove (const MouseEvent &rMEvt) override
 
virtual bool MouseButtonDown (const MouseEvent &rMEvt) override
 
virtual bool MouseButtonUp (const MouseEvent &rMEvt) override
 
virtual bool Command (const CommandEvent &rCEvt) override
 
virtual bool KeyInput (const KeyEvent &rKEvt) override
 
virtual bool CanFocus () const override
 
virtual void GetFocus () override
 
virtual bool StartDrag () override
 
- Protected Member Functions inherited from WeldEditView
virtual void makeEditEngine ()
 
void InitAccessible ()
 
void DoPaint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)
 
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible () override
 
virtual void EditViewInvalidate (const tools::Rectangle &rRect) override
 
virtual void EditViewSelectionChange () override
 
virtual OutputDeviceEditViewOutputDevice () const override
 
virtual Point EditViewPointerPosPixel () const override
 
virtual void EditViewInputContext (const InputContext &rInputContext) override
 
virtual void EditViewCursorRect (const tools::Rectangle &rRect, int nExtTextInputWidth) override
 
virtual weld::WidgetEditViewPopupParent () const override
 

Private Types

typedef ::std::vector< ScAccessibleEditLineTextData * > AccTextDataVector
 

Private Member Functions

void ImplInitSettings ()
 
void UpdateAutoCorrFlag ()
 
void SetScrollBarRange ()
 
void InitEditEngine ()
 
void UpdateFocus ()
 

Private Attributes

rtl::Reference< svt::OStringTransferablem_xHelper
 
rtl::Reference< ScAccessibleEditObjectpAcc
 
OUString aString
 
vcl::Font aTextFont
 
AccTextDataVector maAccTextDatas
 
bool bIsRTL
 
bool bIsInsertMode
 
bool bFormulaMode
 
bool bInputMode
 
ScTabViewShellmpViewShell
 
ScTextWndGroupmrGroupBar
 
tools::Long mnLastExpandedLines
 
bool mbInvalidate
 

Additional Inherited Members

- Protected Attributes inherited from WeldEditView
bool m_bAcceptsTab
 
css::uno::Reference< css::datatransfer::dnd::XDropTarget > m_xDropTarget
 
std::unique_ptr< EditEnginem_xEditEngine
 
std::unique_ptr< EditViewm_xEditView
 
rtl::Reference< WeldEditAccessiblem_xAccessible
 

Detailed Description

Definition at line 65 of file inputwin.hxx.

Member Typedef Documentation

◆ AccTextDataVector

Definition at line 142 of file inputwin.hxx.

Constructor & Destructor Documentation

◆ ScTextWnd()

ScTextWnd::ScTextWnd ( ScTextWndGroup rParent,
ScTabViewShell pViewSh 
)

Definition at line 1659 of file inputwin.cxx.

◆ ~ScTextWnd()

ScTextWnd::~ScTextWnd ( )
overridevirtual

Definition at line 1671 of file inputwin.cxx.

References maAccTextDatas.

Member Function Documentation

◆ CanFocus()

bool ScTextWnd::CanFocus ( ) const
overrideprotectedvirtual

Reimplemented from WeldEditView.

Definition at line 1683 of file inputwin.cxx.

References SC_MOD.

Referenced by UpdateFocus().

◆ Command()

bool ScTextWnd::Command ( const CommandEvent rCEvt)
overrideprotectedvirtual

◆ CreateAccessible()

css::uno::Reference< css::accessibility::XAccessible > ScTextWnd::CreateAccessible ( )
overridevirtual

Reimplemented from WeldEditView.

Definition at line 2240 of file inputwin.cxx.

References pAcc.

◆ DECL_LINK() [1/2]

ScTextWnd::DECL_LINK ( EditStatusHdl  ,
EditStatus ,
void   
)

◆ DECL_LINK() [2/2]

ScTextWnd::DECL_LINK ( ModifyHdl  ,
LinkParamNone ,
void   
)

◆ DoScroll()

void ScTextWnd::DoScroll ( )

◆ EditViewScrollStateChange()

void ScTextWnd::EditViewScrollStateChange ( )
overridevirtual

Definition at line 1935 of file inputwin.cxx.

References SetScrollBarRange().

◆ GetEditEngTxtHeight()

int ScTextWnd::GetEditEngTxtHeight ( ) const

Definition at line 1431 of file inputwin.cxx.

References WeldEditView::m_xEditView.

Referenced by SetScrollBarRange().

◆ GetEditView()

EditView * ScTextWnd::GetEditView ( ) const
overridevirtual

◆ GetEditViewDevice()

const OutputDevice & ScTextWnd::GetEditViewDevice ( ) const

Definition at line 1377 of file inputwin.cxx.

References WeldEditView::EditViewOutputDevice().

◆ GetFocus()

void ScTextWnd::GetFocus ( )
overrideprotectedvirtual

◆ GetLastNumExpandedLines()

tools::Long ScTextWnd::GetLastNumExpandedLines ( ) const
inline

Definition at line 109 of file inputwin.hxx.

References mnLastExpandedLines.

◆ GetNumLines()

tools::Long ScTextWnd::GetNumLines ( ) const
overridevirtual

Implements ScTextWndBase.

Definition at line 1388 of file inputwin.cxx.

References ScViewData::GetFormulaBarLines(), ScTabView::GetViewData(), and mpViewShell.

Referenced by SetTextString().

◆ GetPixelHeightForLines()

int ScTextWnd::GetPixelHeightForLines ( tools::Long  nLines)

Definition at line 1382 of file inputwin.cxx.

References OutputDevice::GetTextHeight(), and OutputDevice::LogicToPixel().

Referenced by SetDrawingArea().

◆ GetTextString()

const OUString & ScTextWnd::GetTextString ( ) const
overridevirtual

◆ HasEditView()

bool ScTextWnd::HasEditView ( ) const
overridevirtual

◆ ImplInitSettings()

void ScTextWnd::ImplInitSettings ( )
private

◆ InitEditEngine()

void ScTextWnd::InitEditEngine ( )
private

◆ InsertAccessibleTextData()

void ScTextWnd::InsertAccessibleTextData ( ScAccessibleEditLineTextData rTextData)
overridevirtual

Implements ScTextWndBase.

Definition at line 2246 of file inputwin.cxx.

References maAccTextDatas.

Referenced by ScAccessibleEditLineTextData::ScAccessibleEditLineTextData().

◆ IsInputActive()

bool ScTextWnd::IsInputActive ( )
overridevirtual

Implements ScTextWndBase.

Definition at line 2115 of file inputwin.cxx.

Referenced by ScAccessibleEditLineTextData::GetEditViewForwarder().

◆ KeyInput()

bool ScTextWnd::KeyInput ( const KeyEvent rKEvt)
overrideprotectedvirtual

Reimplemented from WeldEditView.

Definition at line 1887 of file inputwin.cxx.

References bInputMode, ScTabViewShell::GetActiveViewShell(), SC_MOD, and ScTabViewShell::SfxKeyInput().

◆ MakeDialogEditView()

void ScTextWnd::MakeDialogEditView ( )
overridevirtual

◆ MouseButtonDown()

bool ScTextWnd::MouseButtonDown ( const MouseEvent rMEvt)
overrideprotectedvirtual

◆ MouseButtonUp()

bool ScTextWnd::MouseButtonUp ( const MouseEvent rMEvt)
overrideprotectedvirtual

◆ MouseMove()

bool ScTextWnd::MouseMove ( const MouseEvent rMEvt)
overrideprotectedvirtual

Reimplemented from WeldEditView.

Definition at line 1678 of file inputwin.cxx.

References WeldEditView::m_xEditView.

◆ Paint()

void ScTextWnd::Paint ( vcl::RenderContext rRenderContext,
const tools::Rectangle rRect 
)
overrideprotectedvirtual

◆ RemoveAccessibleTextData()

void ScTextWnd::RemoveAccessibleTextData ( ScAccessibleEditLineTextData rTextData)
overridevirtual

◆ Resize()

void ScTextWnd::Resize ( )
overridevirtual

◆ SetDrawingArea()

void ScTextWnd::SetDrawingArea ( weld::DrawingArea pDrawingArea)
overridevirtual

◆ SetFormulaMode()

void ScTextWnd::SetFormulaMode ( bool  bSet)
overridevirtual

Implements ScTextWndBase.

Definition at line 1910 of file inputwin.cxx.

References bFormulaMode, and UpdateAutoCorrFlag().

◆ SetLastNumExpandedLines()

void ScTextWnd::SetLastNumExpandedLines ( tools::Long  nLastExpandedLines)
inline

Definition at line 110 of file inputwin.hxx.

References mnLastExpandedLines.

◆ SetNumLines()

void ScTextWnd::SetNumLines ( tools::Long  nLines)

◆ SetScrollBarRange()

void ScTextWnd::SetScrollBarRange ( )
private

◆ SetTextString()

void ScTextWnd::SetTextString ( const OUString &  rString)
overridevirtual

◆ StartDrag()

bool ScTextWnd::StartDrag ( )
overrideprotectedvirtual

Definition at line 1875 of file inputwin.cxx.

References WeldEditView::m_xEditEngine, WeldEditView::m_xEditView, and m_xHelper.

◆ StartEditEngine()

void ScTextWnd::StartEditEngine ( )
overridevirtual

◆ StopEditEngine()

void ScTextWnd::StopEditEngine ( bool  bAll)
overridevirtual

◆ StyleUpdated()

void ScTextWnd::StyleUpdated ( )
overridevirtual

Definition at line 2262 of file inputwin.cxx.

References ImplInitSettings().

◆ TextGrabFocus()

void ScTextWnd::TextGrabFocus ( )
overridevirtual

Implements ScTextWndBase.

Definition at line 2268 of file inputwin.cxx.

References GrabFocus.

Referenced by Command(), and UpdateFocus().

◆ UpdateAutoCorrFlag()

void ScTextWnd::UpdateAutoCorrFlag ( )
private

Definition at line 1919 of file inputwin.cxx.

References bFormulaMode, and WeldEditView::m_xEditEngine.

Referenced by InitEditEngine(), and SetFormulaMode().

◆ UpdateFocus()

void ScTextWnd::UpdateFocus ( )
private

Definition at line 1688 of file inputwin.cxx.

References CanFocus(), StartEditEngine(), and TextGrabFocus().

Referenced by Command(), and MouseButtonDown().

Member Data Documentation

◆ aString

OUString ScTextWnd::aString
private

Definition at line 146 of file inputwin.hxx.

Referenced by GetTextString(), InitEditEngine(), SetTextString(), and StopEditEngine().

◆ aTextFont

vcl::Font ScTextWnd::aTextFont
private

Definition at line 147 of file inputwin.hxx.

Referenced by ImplInitSettings(), InitEditEngine(), MakeDialogEditView(), and SetDrawingArea().

◆ bFormulaMode

bool ScTextWnd::bFormulaMode
private

Definition at line 151 of file inputwin.hxx.

Referenced by Command(), SetFormulaMode(), and UpdateAutoCorrFlag().

◆ bInputMode

bool ScTextWnd::bInputMode
private

Definition at line 155 of file inputwin.hxx.

Referenced by Command(), KeyInput(), and SetTextString().

◆ bIsInsertMode

bool ScTextWnd::bIsInsertMode
private

Definition at line 150 of file inputwin.hxx.

Referenced by InitEditEngine(), and StopEditEngine().

◆ bIsRTL

bool ScTextWnd::bIsRTL
private

Definition at line 149 of file inputwin.hxx.

Referenced by ImplInitSettings(), InitEditEngine(), MakeDialogEditView(), and SetTextString().

◆ m_xHelper

rtl::Reference<svt::OStringTransferable> ScTextWnd::m_xHelper
private

Definition at line 140 of file inputwin.hxx.

Referenced by MouseButtonDown(), SetDrawingArea(), and StartDrag().

◆ maAccTextDatas

AccTextDataVector ScTextWnd::maAccTextDatas
private

◆ mbInvalidate

bool ScTextWnd::mbInvalidate
private

Definition at line 160 of file inputwin.hxx.

Referenced by Paint(), and SetTextString().

◆ mnLastExpandedLines

tools::Long ScTextWnd::mnLastExpandedLines
private

Definition at line 159 of file inputwin.hxx.

Referenced by GetLastNumExpandedLines(), SetLastNumExpandedLines(), and SetNumLines().

◆ mpViewShell

ScTabViewShell* ScTextWnd::mpViewShell
private

◆ mrGroupBar

ScTextWndGroup& ScTextWnd::mrGroupBar
private

Definition at line 158 of file inputwin.hxx.

Referenced by Command(), DoScroll(), and SetScrollBarRange().

◆ pAcc

rtl::Reference<ScAccessibleEditObject> ScTextWnd::pAcc
private

Definition at line 144 of file inputwin.hxx.

Referenced by CreateAccessible(), InitEditEngine(), and MakeDialogEditView().


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