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

#include <tphfedit.hxx>

Inheritance diagram for ScEditWindow:
Collaboration diagram for ScEditWindow:

Public Member Functions

 ScEditWindow (ScEditWindowLocation eLoc, weld::Window *pParent)
virtual void SetDrawingArea (weld::DrawingArea *pArea) override
virtual ~ScEditWindow () override
void SetFont (const ScPatternAttr &rPattern)
void SetText (const EditTextObject &rTextObject)
std::unique_ptr< EditTextObjectCreateTextObject ()
void SetCharAttributes ()
void InsertField (const SvxFieldItem &rFld)
void SetNumType (SvxNumType eNumType)
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible () override
ScHeaderEditEngineGetEditEngine () const override
void SetObjectSelectHdl (const Link< ScEditWindow &, void > &aLink)
void SetGetFocusHdl (const std::function< void(ScEditWindow &)> &rLink)
- 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)

Protected Member Functions

virtual void makeEditEngine () override
virtual bool KeyInput (const KeyEvent &rKEvt) override
virtual bool MouseButtonDown (const MouseEvent &rMEvt) override
virtual void GetFocus () override
virtual void LoseFocus () 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 Attributes

ScEditWindowLocation eLocation
bool mbRTL
unotools::WeakReference< ScAccessibleEditObjectmxAcc
Link< ScEditWindow &, void > aObjectSelectLink
std::function< void(ScEditWindow &)> m_GetFocusLink

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 45 of file tphfedit.hxx.

Constructor & Destructor Documentation

◆ ScEditWindow()

ScEditWindow::ScEditWindow ( ScEditWindowLocation  eLoc,
weld::Window pParent 

Definition at line 59 of file tphfedit.cxx.

◆ ~ScEditWindow()

ScEditWindow::~ScEditWindow ( )

Definition at line 118 of file tphfedit.cxx.

References unotools::WeakReference< class interface_type >::get(), and mxAcc.

Member Function Documentation

◆ CreateAccessible()

css::uno::Reference< css::accessibility::XAccessible > ScEditWindow::CreateAccessible ( )

Reimplemented from WeldEditView.

Definition at line 252 of file tphfedit.cxx.

References ScAccessibleEditObject::EditControl, and mxAcc.

◆ CreateTextObject()

std::unique_ptr< EditTextObject > ScEditWindow::CreateTextObject ( )

Definition at line 132 of file tphfedit.cxx.

References i, and WeldEditView::m_xEditEngine.

◆ GetEditEngine()

ScHeaderEditEngine * ScEditWindow::GetEditEngine ( ) const

Reimplemented from WeldEditView.

Definition at line 71 of file tphfedit.cxx.

References WeldEditView::m_xEditEngine.

Referenced by SetDrawingArea(), SetFont(), SetNumType(), and SetText().

◆ GetFocus()

void ScEditWindow::GetFocus ( )

◆ InsertField()

void ScEditWindow::InsertField ( const SvxFieldItem rFld)

Definition at line 171 of file tphfedit.cxx.

References WeldEditView::m_xEditView.

◆ KeyInput()

bool ScEditWindow::KeyInput ( const KeyEvent rKEvt)

◆ LoseFocus()

void ScEditWindow::LoseFocus ( )

◆ makeEditEngine()

void ScEditWindow::makeEditEngine ( )

Reimplemented from WeldEditView.

Definition at line 66 of file tphfedit.cxx.

References EditEngine::CreatePool(), get(), and WeldEditView::m_xEditEngine.

◆ MouseButtonDown()

bool ScEditWindow::MouseButtonDown ( const MouseEvent rMEvt)

Reimplemented from WeldEditView.

Definition at line 240 of file tphfedit.cxx.

References GetFocus(), comphelper::LibreOfficeKit::isActive(), and WeldEditView::MouseButtonDown().

◆ SetCharAttributes()

void ScEditWindow::SetCharAttributes ( )

◆ SetDrawingArea()

void ScEditWindow::SetDrawingArea ( weld::DrawingArea pArea)

◆ SetFont()

void ScEditWindow::SetFont ( const ScPatternAttr rPattern)

◆ SetGetFocusHdl()

void ScEditWindow::SetGetFocusHdl ( const std::function< void(ScEditWindow &)> &  rLink)

Definition at line 65 of file tphfedit.hxx.

◆ SetNumType()

void ScEditWindow::SetNumType ( SvxNumType  eNumType)

◆ SetObjectSelectHdl()

void ScEditWindow::SetObjectSelectHdl ( const Link< ScEditWindow &, void > &  aLink)

Definition at line 64 of file tphfedit.hxx.

◆ SetText()

void ScEditWindow::SetText ( const EditTextObject rTextObject)

Member Data Documentation

◆ aObjectSelectLink

Link<ScEditWindow&,void> ScEditWindow::aObjectSelectLink

Definition at line 81 of file tphfedit.hxx.

Referenced by KeyInput().

◆ eLocation

ScEditWindowLocation ScEditWindow::eLocation

Definition at line 75 of file tphfedit.hxx.

Referenced by SetDrawingArea().

◆ m_GetFocusLink

std::function<void (ScEditWindow&)> ScEditWindow::m_GetFocusLink

Definition at line 82 of file tphfedit.hxx.

Referenced by GetFocus().

◆ mbRTL

bool ScEditWindow::mbRTL

Definition at line 76 of file tphfedit.hxx.

Referenced by SetDrawingArea(), and SetFont().

◆ mpDialog

weld::Window* ScEditWindow::mpDialog

Definition at line 77 of file tphfedit.hxx.

Referenced by SetCharAttributes().

◆ mxAcc

unotools::WeakReference<ScAccessibleEditObject> ScEditWindow::mxAcc

Definition at line 79 of file tphfedit.hxx.

Referenced by CreateAccessible(), GetFocus(), LoseFocus(), SetDrawingArea(), and ~ScEditWindow().

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