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 () override
 
virtual bool HasEditView () const override
 
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 (long nLines)
 
int GetEditEngTxtHeight () const
 
virtual long GetNumLines () const override
 
void SetNumLines (long nLines)
 
long GetLastNumExpandedLines () const
 
void DoScroll ()
 
 DECL_LINK (ModifyHdl, LinkParamNone *, void)
 
- Public Member Functions inherited from WeldEditView
 WeldEditView ()
 
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)
 
EditEngineGetEditEngine ()
 
bool HasSelection () const
 
void Cut ()
 
void Copy ()
 
void Paste ()
 
virtual ~WeldEditView () override
 
- Public Member Functions inherited from ScTextWndBase
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 void GetFocus () override
 
virtual bool StartDrag () override
 
- Protected Member Functions inherited from WeldEditView
virtual void makeEditEngine ()
 
virtual void LoseFocus () override
 
virtual void EditViewInvalidate (const tools::Rectangle &rRect) override
 
virtual void EditViewSelectionChange () override
 
virtual OutputDeviceEditViewOutputDevice () const override
 
virtual void EditViewInputContext (const InputContext &rInputContext) override
 
virtual void EditViewCursorRect (const tools::Rectangle &rRect, int nExtTextInputWidth) override
 

Private Types

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

Private Member Functions

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

Private Attributes

rtl::Reference< svt::OStringTransferablem_xHelper
 
css::uno::WeakReference< css::accessibility::XAccessible > xAcc
 
ScAccessibleEditObjectpAcc
 
OUString aString
 
vcl::Font aTextFont
 
AccTextDataVector maAccTextDatas
 
bool bIsRTL
 
bool bIsInsertMode
 
bool bFormulaMode
 
bool bInputMode
 
ScTabViewShellmpViewShell
 
ScTextWndGroupmrGroupBar
 
long mnLines
 
long mnLastExpandedLines
 
bool mbInvalidate
 

Additional Inherited Members

- Protected Attributes inherited from WeldEditView
std::unique_ptr< EditEnginem_xEditEngine
 
std::unique_ptr< EditViewm_xEditView
 
rtl::Reference< WeldEditAccessiblem_xAccessible
 

Detailed Description

Definition at line 71 of file inputwin.hxx.

Member Typedef Documentation

Definition at line 143 of file inputwin.hxx.

Constructor & Destructor Documentation

ScTextWnd::ScTextWnd ( ScTextWndGroup rParent,
ScTabViewShell pViewSh 
)

Definition at line 1501 of file inputwin.cxx.

ScTextWnd::~ScTextWnd ( )
overridevirtual

Definition at line 1515 of file inputwin.cxx.

References maAccTextDatas.

Member Function Documentation

bool ScTextWnd::Command ( const CommandEvent rCEvt)
overrideprotectedvirtual
css::uno::Reference< css::accessibility::XAccessible > ScTextWnd::CreateAccessible ( )
overridevirtual

Reimplemented from WeldEditView.

Definition at line 2021 of file inputwin.cxx.

References ScAccessibleEditObject::EditLine, pAcc, and xAcc.

ScTextWnd::DECL_LINK ( ModifyHdl  ,
LinkParamNone ,
void   
)
void ScTextWnd::DoScroll ( )
void ScTextWnd::EditViewScrollStateChange ( )
overridevirtual

Definition at line 1733 of file inputwin.cxx.

References SetScrollBarRange().

int ScTextWnd::GetEditEngTxtHeight ( ) const

Definition at line 1283 of file inputwin.cxx.

References WeldEditView::m_xEditView.

Referenced by SetScrollBarRange().

EditView * ScTextWnd::GetEditView ( )
overridevirtual
void ScTextWnd::GetFocus ( )
overrideprotectedvirtual
long ScTextWnd::GetLastNumExpandedLines ( ) const
inline

Definition at line 113 of file inputwin.hxx.

References mnLastExpandedLines.

virtual long ScTextWnd::GetNumLines ( ) const
inlineoverridevirtual

Implements ScTextWndBase.

Definition at line 111 of file inputwin.hxx.

References mnLines.

int ScTextWnd::GetPixelHeightForLines ( long  nLines)

Definition at line 1241 of file inputwin.cxx.

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

Referenced by SetDrawingArea().

const OUString & ScTextWnd::GetTextString ( ) const
overridevirtual
bool ScTextWnd::HasEditView ( ) const
overridevirtual
void ScTextWnd::ImplInitSettings ( )
private
void ScTextWnd::InitEditEngine ( )
private
void ScTextWnd::InsertAccessibleTextData ( ScAccessibleEditLineTextData rTextData)
overridevirtual

Implements ScTextWndBase.

Definition at line 2029 of file inputwin.cxx.

References maAccTextDatas.

Referenced by ScAccessibleEditLineTextData::ScAccessibleEditLineTextData().

bool ScTextWnd::IsInputActive ( )
overridevirtual

Implements ScTextWndBase.

Definition at line 1899 of file inputwin.cxx.

Referenced by ScAccessibleEditLineTextData::GetEditViewForwarder().

bool ScTextWnd::KeyInput ( const KeyEvent rKEvt)
overrideprotectedvirtual

Reimplemented from WeldEditView.

Definition at line 1685 of file inputwin.cxx.

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

void ScTextWnd::MakeDialogEditView ( )
overridevirtual
bool ScTextWnd::MouseButtonDown ( const MouseEvent rMEvt)
overrideprotectedvirtual
bool ScTextWnd::MouseButtonUp ( const MouseEvent rMEvt)
overrideprotectedvirtual
bool ScTextWnd::MouseMove ( const MouseEvent rMEvt)
overrideprotectedvirtual

Reimplemented from WeldEditView.

Definition at line 1522 of file inputwin.cxx.

References WeldEditView::m_xEditView.

void ScTextWnd::Paint ( vcl::RenderContext rRenderContext,
const tools::Rectangle rRect 
)
overrideprotectedvirtual
void ScTextWnd::RemoveAccessibleTextData ( ScAccessibleEditLineTextData rTextData)
overridevirtual
void ScTextWnd::Resize ( )
overridevirtual
void ScTextWnd::SetDrawingArea ( weld::DrawingArea pDrawingArea)
overridevirtual
void ScTextWnd::SetFormulaMode ( bool  bSet)
overridevirtual

Implements ScTextWndBase.

Definition at line 1708 of file inputwin.cxx.

References bFormulaMode, and UpdateAutoCorrFlag().

void ScTextWnd::SetNumLines ( long  nLines)

Definition at line 1248 of file inputwin.cxx.

References mnLastExpandedLines, mnLines, and Resize().

void ScTextWnd::SetScrollBarRange ( )
private
void ScTextWnd::SetTextString ( const OUString &  rString)
overridevirtual
bool ScTextWnd::StartDrag ( )
overrideprotectedvirtual

Definition at line 1674 of file inputwin.cxx.

References WeldEditView::m_xEditView, and m_xHelper.

void ScTextWnd::StartEditEngine ( )
overridevirtual
void ScTextWnd::StopEditEngine ( bool  bAll)
overridevirtual
void ScTextWnd::StyleUpdated ( )
overridevirtual

Definition at line 2045 of file inputwin.cxx.

References ImplInitSettings().

void ScTextWnd::TextGrabFocus ( )
overridevirtual

Implements ScTextWndBase.

Definition at line 2051 of file inputwin.cxx.

References GetFocus(), and GrabFocus.

Referenced by MouseButtonDown().

void ScTextWnd::UpdateAutoCorrFlag ( )
private

Definition at line 1717 of file inputwin.cxx.

References bFormulaMode, and WeldEditView::m_xEditEngine.

Referenced by InitEditEngine(), and SetFormulaMode().

Member Data Documentation

OUString ScTextWnd::aString
private

Definition at line 148 of file inputwin.hxx.

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

vcl::Font ScTextWnd::aTextFont
private

Definition at line 149 of file inputwin.hxx.

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

bool ScTextWnd::bFormulaMode
private

Definition at line 153 of file inputwin.hxx.

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

bool ScTextWnd::bInputMode
private

Definition at line 157 of file inputwin.hxx.

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

bool ScTextWnd::bIsInsertMode
private

Definition at line 152 of file inputwin.hxx.

Referenced by InitEditEngine(), and StopEditEngine().

bool ScTextWnd::bIsRTL
private

Definition at line 151 of file inputwin.hxx.

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

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

Definition at line 141 of file inputwin.hxx.

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

AccTextDataVector ScTextWnd::maAccTextDatas
private
bool ScTextWnd::mbInvalidate
private

Definition at line 163 of file inputwin.hxx.

Referenced by Paint(), and SetTextString().

long ScTextWnd::mnLastExpandedLines
private

Definition at line 162 of file inputwin.hxx.

Referenced by GetLastNumExpandedLines(), and SetNumLines().

long ScTextWnd::mnLines
private

Definition at line 161 of file inputwin.hxx.

Referenced by GetNumLines(), SetNumLines(), and SetTextString().

ScTabViewShell* ScTextWnd::mpViewShell
private

Definition at line 159 of file inputwin.hxx.

Referenced by InitEditEngine(), MakeDialogEditView(), StartEditEngine(), and StopEditEngine().

ScTextWndGroup& ScTextWnd::mrGroupBar
private

Definition at line 160 of file inputwin.hxx.

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

ScAccessibleEditObject* ScTextWnd::pAcc
private

Definition at line 146 of file inputwin.hxx.

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

css::uno::WeakReference< css::accessibility::XAccessible > ScTextWnd::xAcc
private

Definition at line 145 of file inputwin.hxx.

Referenced by CreateAccessible().


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