LibreOffice Module svx (master) 1
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
WeldEditView Class Reference

#include <weldeditview.hxx>

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

Public Member Functions

 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 weld::CustomWidgetController
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible ()
 
virtual void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)=0
 
virtual void Resize ()
 
virtual bool MouseButtonDown (const MouseEvent &)
 
virtual bool MouseMove (const MouseEvent &)
 
virtual bool MouseButtonUp (const MouseEvent &)
 
virtual void GetFocus ()
 
virtual void LoseFocus ()
 
virtual void StyleUpdated ()
 
virtual bool Command (const CommandEvent &)
 
virtual bool KeyInput (const KeyEvent &)
 
virtual tools::Rectangle GetFocusRect ()
 
virtual FactoryFunction GetUITestFactory () const
 
virtual OUString RequestHelp (tools::Rectangle &)
 
virtual OUString GetHelpText () const
 
Size const & GetOutputSizePixel () const
 
void SetOutputSizePixel (const Size &rSize)
 
virtual void SetDrawingArea (weld::DrawingArea *pDrawingArea)
 
weld::DrawingAreaGetDrawingArea () const
 
void Invalidate ()
 
void Invalidate (const tools::Rectangle &rRect)
 
virtual void Show ()
 
virtual void Hide ()
 
void SetCursor (void *pData)
 
void GrabFocus ()
 
bool HasFocus () const
 
bool HasChildFocus () const
 
bool IsVisible () const
 
bool IsReallyVisible () const
 
bool IsEnabled () const
 
void Enable () const
 
void Disable () const
 
bool IsActive () const
 
int GetTextHeight () const
 
int GetTextWidth (const OUString &rText) const
 
OUString GetAccessibleName () const
 
OUString GetAccessibleDescription () const
 
void CaptureMouse ()
 
bool IsMouseCaptured () const
 
Point GetPointerPosPixel () const
 
void EnableRTL (bool bEnable)
 
bool IsRTLEnabled () const
 
void ReleaseMouse ()
 
void SetPointer (PointerStyle ePointerStyle)
 
void SetHelpId (const OUString &rHelpId)
 
void SetAccessibleName (const OUString &rName)
 
void SetInputContext (const InputContext &rInputContext)
 
void SetCursorRect (const tools::Rectangle &rCursorRect, int nExtTextInputWidth)
 
virtual int GetSurroundingText (OUString &)
 
virtual bool DeleteSurroundingText (const Selection &)
 
css::uno::Reference< css::datatransfer::dnd::XDropTarget > GetDropTarget ()
 
css::uno::Reference< css::datatransfer::clipboard::XClipboard > GetClipboard () const
 
void SetDragDataTransferable (rtl::Reference< TransferDataContainer > &rTransferable, sal_uInt8 eDNDConstants)
 
virtual bool StartDrag ()
 
void set_size_request (int nWidth, int nHeight)
 
void queue_resize ()
 
 CustomWidgetController ()
 
virtual ~CustomWidgetController ()
 
 CustomWidgetController (CustomWidgetController const &)=default
 
 CustomWidgetController (CustomWidgetController &&)=default
 
CustomWidgetControlleroperator= (CustomWidgetController const &)=default
 
CustomWidgetControlleroperator= (CustomWidgetController &&)=default
 
- Public Member Functions inherited from EditViewCallbacks
virtual ~EditViewCallbacks ()
 
virtual void EditViewInvalidate (const tools::Rectangle &rRect)=0
 
virtual void EditViewSelectionChange ()=0
 
virtual OutputDeviceEditViewOutputDevice () const=0
 
virtual weld::WidgetEditViewPopupParent () const
 
virtual Point EditViewPointerPosPixel () const=0
 
virtual void EditViewInputContext (const InputContext &rInputContext)=0
 
virtual void EditViewCursorRect (const tools::Rectangle &rRect, int nExtTextInputWidth)=0
 
virtual void EditViewScrollStateChange ()
 
virtual css::uno::Reference< css::datatransfer::clipboard::XClipboard > GetClipboard () const=0
 
virtual css::uno::Reference< css::datatransfer::dnd::XDropTarget > GetDropTarget ()
 

Protected Member Functions

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
 

Protected Attributes

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
 

Additional Inherited Members

- Static Public Member Functions inherited from weld::CustomWidgetController
static bool IsUpdateMode ()
 

Detailed Description

Definition at line 22 of file weldeditview.hxx.

Constructor & Destructor Documentation

◆ WeldEditView()

WeldEditView::WeldEditView ( )

Definition at line 103 of file weldeditview.cxx.

◆ ~WeldEditView()

WeldEditView::~WeldEditView ( )
overridevirtual

Definition at line 855 of file weldeditview.cxx.

References m_xAccessible.

Member Function Documentation

◆ CanFocus()

bool WeldEditView::CanFocus ( ) const
virtual

Definition at line 1658 of file weldeditview.cxx.

Referenced by MouseButtonDown().

◆ Command()

bool WeldEditView::Command ( const CommandEvent rCEvt)
overridevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 307 of file weldeditview.cxx.

References EditView::Command(), and GetEditView().

◆ Copy()

void WeldEditView::Copy ( )

Definition at line 91 of file weldeditview.cxx.

References GetEditView().

◆ CreateAccessible()

css::uno::Reference< css::accessibility::XAccessible > WeldEditView::CreateAccessible ( )
overrideprotectedvirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 846 of file weldeditview.cxx.

References m_xAccessible.

◆ Cut()

void WeldEditView::Cut ( )

Definition at line 85 of file weldeditview.cxx.

References GetEditView().

◆ Delete()

void WeldEditView::Delete ( )

Definition at line 79 of file weldeditview.cxx.

References GetEditView().

◆ DeleteSurroundingText()

bool WeldEditView::DeleteSurroundingText ( const Selection rRange)
overridevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 1612 of file weldeditview.cxx.

References EditView::DeleteSurroundingText(), and GetEditView().

◆ DoPaint()

void WeldEditView::DoPaint ( vcl::RenderContext rRenderContext,
const tools::Rectangle rRect 
)
protected

◆ EditViewCursorRect()

virtual void WeldEditView::EditViewCursorRect ( const tools::Rectangle rRect,
int  nExtTextInputWidth 
)
inlineoverrideprotectedvirtual

◆ EditViewInputContext()

virtual void WeldEditView::EditViewInputContext ( const InputContext rInputContext)
inlineoverrideprotectedvirtual

Implements EditViewCallbacks.

Definition at line 99 of file weldeditview.hxx.

References weld::CustomWidgetController::SetInputContext().

◆ EditViewInvalidate()

virtual void WeldEditView::EditViewInvalidate ( const tools::Rectangle rRect)
inlineoverrideprotectedvirtual

Implements EditViewCallbacks.

Definition at line 88 of file weldeditview.hxx.

References weld::CustomWidgetController::Invalidate().

◆ EditViewOutputDevice()

virtual OutputDevice & WeldEditView::EditViewOutputDevice ( ) const
inlineoverrideprotectedvirtual

◆ EditViewPointerPosPixel()

Point WeldEditView::EditViewPointerPosPixel ( ) const
overrideprotectedvirtual

◆ EditViewPopupParent()

virtual weld::Widget * WeldEditView::EditViewPopupParent ( ) const
inlineoverrideprotectedvirtual

Reimplemented from EditViewCallbacks.

Definition at line 111 of file weldeditview.hxx.

References weld::CustomWidgetController::GetDrawingArea().

◆ EditViewSelectionChange()

virtual void WeldEditView::EditViewSelectionChange ( )
inlineoverrideprotectedvirtual

Implements EditViewCallbacks.

Definition at line 90 of file weldeditview.hxx.

References weld::CustomWidgetController::Invalidate().

◆ GetAcceptsTab()

bool WeldEditView::GetAcceptsTab ( ) const
inline

Definition at line 81 of file weldeditview.hxx.

Referenced by KeyInput().

◆ GetClipboard()

css::uno::Reference< css::datatransfer::clipboard::XClipboard > WeldEditView::GetClipboard ( ) const
overridevirtual

Implements EditViewCallbacks.

Definition at line 1667 of file weldeditview.cxx.

References weld::CustomWidgetController::GetClipboard().

◆ GetDropTarget()

css::uno::Reference< css::datatransfer::dnd::XDropTarget > WeldEditView::GetDropTarget ( )
overridevirtual

Reimplemented from EditViewCallbacks.

Definition at line 1660 of file weldeditview.cxx.

References weld::CustomWidgetController::GetDropTarget(), and m_xDropTarget.

◆ GetEditEngine()

EditEngine * WeldEditView::GetEditEngine ( ) const
virtual

Definition at line 71 of file weldeditview.cxx.

References m_xEditEngine.

Referenced by GetText(), InitAccessible(), KeyInput(), Resize(), SetModifyHdl(), and SetText().

◆ GetEditView()

EditView * WeldEditView::GetEditView ( ) const
virtual

◆ GetFocus()

void WeldEditView::GetFocus ( )
overridevirtual

◆ GetSurroundingText()

int WeldEditView::GetSurroundingText ( OUString &  rSurrounding)
overridevirtual

◆ GetText()

OUString WeldEditView::GetText ( ) const

Definition at line 62 of file weldeditview.cxx.

References GetEditEngine(), and EditEngine::GetText().

◆ GetUITestFactory()

FactoryFunction WeldEditView::GetUITestFactory ( ) const
overridevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 1703 of file weldeditview.cxx.

◆ HasSelection()

bool WeldEditView::HasSelection ( ) const

Definition at line 73 of file weldeditview.cxx.

References GetEditView(), and EditView::HasSelection().

◆ InitAccessible()

void WeldEditView::InitAccessible ( )
protected

Definition at line 1596 of file weldeditview.cxx.

References GetEditEngine(), GetEditView(), and m_xAccessible.

Referenced by SetDrawingArea().

◆ KeyInput()

bool WeldEditView::KeyInput ( const KeyEvent rKEvt)
overridevirtual

◆ LoseFocus()

void WeldEditView::LoseFocus ( )
overridevirtual

◆ makeEditEngine()

void WeldEditView::makeEditEngine ( )
protectedvirtual

◆ MouseButtonDown()

bool WeldEditView::MouseButtonDown ( const MouseEvent rMEvt)
overridevirtual

◆ MouseButtonUp()

bool WeldEditView::MouseButtonUp ( const MouseEvent rMEvt)
overridevirtual

◆ MouseMove()

bool WeldEditView::MouseMove ( const MouseEvent rMEvt)
overridevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 248 of file weldeditview.cxx.

References GetEditView(), and EditView::MouseMove().

◆ Paint()

void WeldEditView::Paint ( vcl::RenderContext rRenderContext,
const tools::Rectangle rRect 
)
overridevirtual

Implements weld::CustomWidgetController.

Definition at line 162 of file weldeditview.cxx.

References DoPaint().

◆ Paste()

void WeldEditView::Paste ( )

Definition at line 97 of file weldeditview.cxx.

References GetEditView().

◆ Resize()

void WeldEditView::Resize ( )
overridevirtual

◆ SetAcceptsTab()

void WeldEditView::SetAcceptsTab ( bool  bAcceptsTab)
inline

Definition at line 83 of file weldeditview.hxx.

◆ SetDrawingArea()

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

◆ SetModifyHdl()

void WeldEditView::SetModifyHdl ( const Link< LinkParamNone *, void > &  rLink)

Definition at line 64 of file weldeditview.cxx.

References GetEditEngine(), and EditEngine::SetModifyHdl().

◆ SetText()

void WeldEditView::SetText ( const OUString &  rStr)

Definition at line 60 of file weldeditview.cxx.

References GetEditEngine(), and EditEngine::SetText().

Member Data Documentation

◆ m_bAcceptsTab

bool WeldEditView::m_bAcceptsTab
protected

Definition at line 51 of file weldeditview.hxx.

◆ m_xAccessible

rtl::Reference<WeldEditAccessible> WeldEditView::m_xAccessible
protected

Definition at line 56 of file weldeditview.hxx.

Referenced by CreateAccessible(), GetFocus(), InitAccessible(), LoseFocus(), and ~WeldEditView().

◆ m_xDropTarget

css::uno::Reference<css::datatransfer::dnd::XDropTarget> WeldEditView::m_xDropTarget
protected

Definition at line 53 of file weldeditview.hxx.

Referenced by GetDropTarget().

◆ m_xEditEngine

std::unique_ptr<EditEngine> WeldEditView::m_xEditEngine
protected

◆ m_xEditView

std::unique_ptr<EditView> WeldEditView::m_xEditView
protected

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