LibreOffice Module sfx2 (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SvxCharView Class Referencefinal

#include <charwin.hxx>

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

Public Member Functions

 SvxCharView (const VclPtr< VirtualDevice > &rVirDev)
 
void SetFont (const vcl::Font &rFont)
 
vcl::Font const & GetFont () const
 
void SetText (const OUString &rText)
 
OUString const & GetText () const
 
void SetHasInsert (bool bInsert)
 
void InsertCharToDoc ()
 
void createContextMenu (const Point &rPosition)
 
Size get_preferred_size () const
 
void setMouseClickHdl (const Link< SvxCharView *, void > &rLink)
 
void setClearClickHdl (const Link< SvxCharView *, void > &rLink)
 
void setClearAllClickHdl (const Link< SvxCharView *, void > &rLink)
 
void ContextMenuSelect (std::u16string_view rIdent)
 
- 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
 

Private Member Functions

virtual void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
 
virtual void Resize () override
 
virtual bool MouseButtonDown (const MouseEvent &) override
 
virtual void GetFocus () override
 
virtual void LoseFocus () override
 
virtual bool KeyInput (const KeyEvent &) override
 
virtual bool Command (const CommandEvent &) override
 
virtual void SetDrawingArea (weld::DrawingArea *pDrawingArea) override
 

Private Attributes

VclPtr< VirtualDevicemxVirDev
 
tools::Long mnY
 
vcl::Font maFont
 
bool maHasInsert
 
OUString m_sText
 
Link< SvxCharView *, void > maMouseClickHdl
 
Link< SvxCharView *, void > maClearClickHdl
 
Link< SvxCharView *, void > maClearAllClickHdl
 

Additional Inherited Members

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

Detailed Description

Definition at line 29 of file charwin.hxx.

Constructor & Destructor Documentation

◆ SvxCharView()

SvxCharView::SvxCharView ( const VclPtr< VirtualDevice > &  rVirDev)

Definition at line 34 of file charwin.cxx.

Member Function Documentation

◆ Command()

bool SvxCharView::Command ( const CommandEvent rCommandEvent)
overrideprivatevirtual

◆ ContextMenuSelect()

void SvxCharView::ContextMenuSelect ( std::u16string_view  rIdent)

◆ createContextMenu()

void SvxCharView::createContextMenu ( const Point rPosition)

◆ get_preferred_size()

Size SvxCharView::get_preferred_size ( ) const
inline

◆ GetFocus()

void SvxCharView::GetFocus ( )
overrideprivatevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 55 of file charwin.cxx.

References weld::CustomWidgetController::Invalidate().

◆ GetFont()

vcl::Font const & SvxCharView::GetFont ( ) const
inline

◆ GetText()

OUString const & SvxCharView::GetText ( ) const
inline

Definition at line 56 of file charwin.hxx.

Referenced by InsertCharToDoc(), and Paint().

◆ InsertCharToDoc()

void SvxCharView::InsertCharToDoc ( )

◆ KeyInput()

bool SvxCharView::KeyInput ( const KeyEvent rKEvt)
overrideprivatevirtual

◆ LoseFocus()

void SvxCharView::LoseFocus ( )
overrideprivatevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 57 of file charwin.cxx.

References weld::CustomWidgetController::Invalidate().

◆ MouseButtonDown()

bool SvxCharView::MouseButtonDown ( const MouseEvent rMEvt)
overrideprivatevirtual

◆ Paint()

void SvxCharView::Paint ( vcl::RenderContext rRenderContext,
const tools::Rectangle rRect 
)
overrideprivatevirtual

◆ Resize()

void SvxCharView::Resize ( )
overrideprivatevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 256 of file charwin.cxx.

References GetFont(), and SetFont().

◆ setClearAllClickHdl()

void SvxCharView::setClearAllClickHdl ( const Link< SvxCharView *, void > &  rLink)

Definition at line 234 of file charwin.cxx.

References maClearAllClickHdl.

Referenced by SfxCharmapContainer::init().

◆ setClearClickHdl()

void SvxCharView::setClearClickHdl ( const Link< SvxCharView *, void > &  rLink)

Definition at line 229 of file charwin.cxx.

References maClearClickHdl.

Referenced by SfxCharmapContainer::init().

◆ SetDrawingArea()

void SvxCharView::SetDrawingArea ( weld::DrawingArea pDrawingArea)
overrideprivatevirtual

◆ SetFont()

void SvxCharView::SetFont ( const vcl::Font rFont)

◆ SetHasInsert()

void SvxCharView::SetHasInsert ( bool  bInsert)

Definition at line 267 of file charwin.cxx.

References maHasInsert.

Referenced by SfxCharmapContainer::init().

◆ setMouseClickHdl()

void SvxCharView::setMouseClickHdl ( const Link< SvxCharView *, void > &  rLink)

Definition at line 224 of file charwin.cxx.

References maMouseClickHdl.

Referenced by SfxCharmapContainer::init().

◆ SetText()

void SvxCharView::SetText ( const OUString &  rText)

Member Data Documentation

◆ m_sText

OUString SvxCharView::m_sText
private

Definition at line 36 of file charwin.hxx.

Referenced by SetText().

◆ maClearAllClickHdl

Link<SvxCharView*, void> SvxCharView::maClearAllClickHdl
private

Definition at line 40 of file charwin.hxx.

Referenced by ContextMenuSelect(), and setClearAllClickHdl().

◆ maClearClickHdl

Link<SvxCharView*, void> SvxCharView::maClearClickHdl
private

Definition at line 39 of file charwin.hxx.

Referenced by ContextMenuSelect(), and setClearClickHdl().

◆ maFont

vcl::Font SvxCharView::maFont
private

Definition at line 34 of file charwin.hxx.

Referenced by InsertCharToDoc(), Paint(), and SetFont().

◆ maHasInsert

bool SvxCharView::maHasInsert
private

Definition at line 35 of file charwin.hxx.

Referenced by MouseButtonDown(), and SetHasInsert().

◆ maMouseClickHdl

Link<SvxCharView*, void> SvxCharView::maMouseClickHdl
private

Definition at line 38 of file charwin.hxx.

Referenced by MouseButtonDown(), and setMouseClickHdl().

◆ mnY

tools::Long SvxCharView::mnY
private

Definition at line 33 of file charwin.hxx.

Referenced by Paint(), and SetFont().

◆ mxVirDev

VclPtr<VirtualDevice> SvxCharView::mxVirDev
private

Definition at line 32 of file charwin.hxx.

Referenced by SetDrawingArea(), and SetFont().


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