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 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)
 
virtual EditEngineGetEditEngine () const
 
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 ()
 
void InitAccessible ()
 
void DoPaint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)
 
virtual void LoseFocus () 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 ()
 

Private Attributes

rtl::Reference< svt::OStringTransferablem_xHelper
 
ScAccessibleEditObjectpAcc
 
OUString aString
 
vcl::Font aTextFont
 
AccTextDataVector maAccTextDatas
 
bool bIsRTL
 
bool bIsInsertMode
 
bool bFormulaMode
 
bool bInputMode
 
ScTabViewShellmpViewShell
 
ScTextWndGroupmrGroupBar
 
tools::Long mnLines
 
tools::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 67 of file inputwin.hxx.

Member Typedef Documentation

Definition at line 141 of file inputwin.hxx.

Constructor & Destructor Documentation

ScTextWnd::ScTextWnd ( ScTextWndGroup rParent,
ScTabViewShell pViewSh 
)

Definition at line 1553 of file inputwin.cxx.

ScTextWnd::~ScTextWnd ( )
overridevirtual

Definition at line 1567 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 2077 of file inputwin.cxx.

References ScAccessibleEditObject::EditLine, and pAcc.

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

Definition at line 1789 of file inputwin.cxx.

References SetScrollBarRange().

int ScTextWnd::GetEditEngTxtHeight ( ) const

Definition at line 1335 of file inputwin.cxx.

References WeldEditView::m_xEditView.

Referenced by SetScrollBarRange().

EditView * ScTextWnd::GetEditView ( ) const
overridevirtual
const OutputDevice & ScTextWnd::GetEditViewDevice ( ) const

Definition at line 1288 of file inputwin.cxx.

References WeldEditView::EditViewOutputDevice().

void ScTextWnd::GetFocus ( )
overrideprotectedvirtual
tools::Long ScTextWnd::GetLastNumExpandedLines ( ) const
inline

Definition at line 111 of file inputwin.hxx.

References mnLastExpandedLines.

virtual tools::Long ScTextWnd::GetNumLines ( ) const
inlineoverridevirtual

Implements ScTextWndBase.

Definition at line 109 of file inputwin.hxx.

References mnLines.

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

Definition at line 1293 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 2083 of file inputwin.cxx.

References maAccTextDatas.

Referenced by ScAccessibleEditLineTextData::ScAccessibleEditLineTextData().

bool ScTextWnd::IsInputActive ( )
overridevirtual

Implements ScTextWndBase.

Definition at line 1955 of file inputwin.cxx.

Referenced by ScAccessibleEditLineTextData::GetEditViewForwarder().

bool ScTextWnd::KeyInput ( const KeyEvent rKEvt)
overrideprotectedvirtual

Reimplemented from WeldEditView.

Definition at line 1741 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 1574 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 1764 of file inputwin.cxx.

References bFormulaMode, and UpdateAutoCorrFlag().

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

Definition at line 1300 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 1730 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 2099 of file inputwin.cxx.

References ImplInitSettings().

void ScTextWnd::TextGrabFocus ( )
overridevirtual

Implements ScTextWndBase.

Definition at line 2105 of file inputwin.cxx.

References GrabFocus.

Referenced by MouseButtonDown().

void ScTextWnd::UpdateAutoCorrFlag ( )
private

Definition at line 1773 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 145 of file inputwin.hxx.

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

vcl::Font ScTextWnd::aTextFont
private

Definition at line 146 of file inputwin.hxx.

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

bool ScTextWnd::bFormulaMode
private

Definition at line 150 of file inputwin.hxx.

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

bool ScTextWnd::bInputMode
private

Definition at line 154 of file inputwin.hxx.

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

bool ScTextWnd::bIsInsertMode
private

Definition at line 149 of file inputwin.hxx.

Referenced by InitEditEngine(), and StopEditEngine().

bool ScTextWnd::bIsRTL
private

Definition at line 148 of file inputwin.hxx.

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

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

Definition at line 139 of file inputwin.hxx.

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

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

Definition at line 160 of file inputwin.hxx.

Referenced by Paint(), and SetTextString().

tools::Long ScTextWnd::mnLastExpandedLines
private

Definition at line 159 of file inputwin.hxx.

Referenced by GetLastNumExpandedLines(), and SetNumLines().

tools::Long ScTextWnd::mnLines
private

Definition at line 158 of file inputwin.hxx.

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

ScTabViewShell* ScTextWnd::mpViewShell
private

Definition at line 156 of file inputwin.hxx.

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

ScTextWndGroup& ScTextWnd::mrGroupBar
private

Definition at line 157 of file inputwin.hxx.

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

ScAccessibleEditObject* ScTextWnd::pAcc
private

Definition at line 143 of file inputwin.hxx.

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


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