LibreOffice Module sfx2 (master) 1
|
#include <charwin.hxx>
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::DrawingArea * | GetDrawingArea () 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 | |
CustomWidgetController & | operator= (CustomWidgetController const &)=default |
CustomWidgetController & | operator= (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< VirtualDevice > | mxVirDev |
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 () |
Definition at line 29 of file charwin.hxx.
SvxCharView::SvxCharView | ( | const VclPtr< VirtualDevice > & | rVirDev | ) |
Definition at line 34 of file charwin.cxx.
|
overrideprivatevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 90 of file charwin.cxx.
References weld::CustomWidgetController::Command(), createContextMenu(), CommandEvent::GetCommand(), CommandEvent::GetMousePosPixel(), weld::CustomWidgetController::GrabFocus(), and weld::CustomWidgetController::Invalidate().
void SvxCharView::ContextMenuSelect | ( | std::u16string_view | rIdent | ) |
Definition at line 126 of file charwin.cxx.
References Link< typename Arg, typename Ret >::Call(), maClearAllClickHdl, maClearClickHdl, and u.
Referenced by createContextMenu().
void SvxCharView::createContextMenu | ( | const Point & | rPosition | ) |
Definition at line 115 of file charwin.cxx.
References ContextMenuSelect(), Application::CreateBuilder(), weld::CustomWidgetController::GetDrawingArea(), and weld::CustomWidgetController::Invalidate().
Referenced by Command().
|
inline |
Definition at line 62 of file charwin.hxx.
References weld::Widget::get_preferred_size(), and weld::CustomWidgetController::GetDrawingArea().
|
overrideprivatevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 55 of file charwin.cxx.
References weld::CustomWidgetController::Invalidate().
|
inline |
Definition at line 54 of file charwin.hxx.
Referenced by Resize(), SfxCharmapContainer::updateFavCharControl(), and SfxCharmapContainer::updateRecentCharControl().
|
inline |
Definition at line 56 of file charwin.hxx.
Referenced by InsertCharToDoc(), and Paint().
void SvxCharView::InsertCharToDoc | ( | ) |
Definition at line 103 of file charwin.cxx.
References comphelper::dispatchCommand(), vcl::Font::GetFamilyName(), GetText(), maFont, and comphelper::makePropertyValue().
Referenced by KeyInput(), and MouseButtonDown().
|
overrideprivatevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 75 of file charwin.cxx.
References vcl::KeyCode::GetCode(), KeyEvent::GetKeyCode(), InsertCharToDoc(), KEY_RETURN, and KEY_SPACE.
|
overrideprivatevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 57 of file charwin.cxx.
References weld::CustomWidgetController::Invalidate().
|
overrideprivatevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 59 of file charwin.cxx.
References Link< typename Arg, typename Ret >::Call(), MouseEvent::GetClicks(), InsertCharToDoc(), MouseEvent::IsLeft(), maHasInsert, and maMouseClickHdl.
|
overrideprivatevirtual |
Implements weld::CustomWidgetController.
Definition at line 134 of file charwin.cxx.
References Point::AdjustY(), tools::Rectangle::Bottom(), OutputDevice::DrawRect(), OutputDevice::DrawText(), StyleSettings::GetFieldTextColor(), OutputDevice::GetFont(), vcl::Font::GetFontSize(), StyleSettings::GetHighlightColor(), StyleSettings::GetHighlightTextColor(), weld::CustomWidgetController::GetOutputSizePixel(), Application::GetSettings(), StyleSettings::GetShadowColor(), AllSettings::GetStyleSettings(), GetText(), OutputDevice::GetTextBoundRect(), OutputDevice::GetTextHeight(), OutputDevice::GetTextWidth(), tools::Rectangle::GetWidth(), StyleSettings::GetWindowColor(), StyleSettings::GetWindowTextColor(), weld::CustomWidgetController::HasChildFocus(), weld::CustomWidgetController::HasFocus(), Size::Height(), tools::Rectangle::IsEmpty(), tools::Rectangle::Left(), maFont, mnY, OutputDevice::SetFillColor(), OutputDevice::SetFont(), vcl::Font::SetFontSize(), Size::setHeight(), OutputDevice::SetLineColor(), OutputDevice::SetTextColor(), Point::setX(), tools::Rectangle::Top(), and Size::Width().
|
overrideprivatevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 256 of file charwin.cxx.
void SvxCharView::setClearAllClickHdl | ( | const Link< SvxCharView *, void > & | rLink | ) |
Definition at line 234 of file charwin.cxx.
References maClearAllClickHdl.
Referenced by SfxCharmapContainer::init().
void SvxCharView::setClearClickHdl | ( | const Link< SvxCharView *, void > & | rLink | ) |
Definition at line 229 of file charwin.cxx.
References maClearClickHdl.
Referenced by SfxCharmapContainer::init().
|
overrideprivatevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 41 of file charwin.cxx.
References vcl::Font::GetFontSize(), StyleSettings::GetLabelFont(), Application::GetSettings(), AllSettings::GetStyleSettings(), Size::Height(), mxVirDev, PUSH_ALLFONT, weld::Widget::set_size_request(), vcl::Font::SetFontSize(), weld::SetPointFont(), and Size::Width().
void SvxCharView::SetFont | ( | const vcl::Font & | rFont | ) |
Definition at line 239 of file charwin.cxx.
References ALIGN_TOP, weld::CustomWidgetController::GetOutputSizePixel(), Size::Height(), weld::CustomWidgetController::Invalidate(), maFont, mnY, mxVirDev, PUSH_ALLFONT, vcl::Font::SetAlignment(), vcl::Font::SetFontSize(), vcl::Font::SetTransparent(), vcl::Font::SetWeight(), and WEIGHT_NORMAL.
Referenced by Resize(), SfxCharmapContainer::updateFavCharControl(), and SfxCharmapContainer::updateRecentCharControl().
void SvxCharView::SetHasInsert | ( | bool | bInsert | ) |
Definition at line 267 of file charwin.cxx.
References maHasInsert.
Referenced by SfxCharmapContainer::init().
void SvxCharView::setMouseClickHdl | ( | const Link< SvxCharView *, void > & | rLink | ) |
Definition at line 224 of file charwin.cxx.
References maMouseClickHdl.
Referenced by SfxCharmapContainer::init().
void SvxCharView::SetText | ( | const OUString & | rText | ) |
Definition at line 261 of file charwin.cxx.
References weld::CustomWidgetController::Invalidate(), and m_sText.
Referenced by SfxCharmapContainer::updateFavCharControl(), and SfxCharmapContainer::updateRecentCharControl().
|
private |
Definition at line 36 of file charwin.hxx.
Referenced by SetText().
|
private |
Definition at line 40 of file charwin.hxx.
Referenced by ContextMenuSelect(), and setClearAllClickHdl().
|
private |
Definition at line 39 of file charwin.hxx.
Referenced by ContextMenuSelect(), and setClearClickHdl().
|
private |
Definition at line 34 of file charwin.hxx.
Referenced by InsertCharToDoc(), Paint(), and SetFont().
|
private |
Definition at line 35 of file charwin.hxx.
Referenced by MouseButtonDown(), and SetHasInsert().
|
private |
Definition at line 38 of file charwin.hxx.
Referenced by MouseButtonDown(), and setMouseClickHdl().
|
private |
Definition at line 33 of file charwin.hxx.
|
private |
Definition at line 32 of file charwin.hxx.
Referenced by SetDrawingArea(), and SetFont().