LibreOffice Module svx (master) 1
|
#include <searchcharmap.hxx>
Public Member Functions | |
SvxSearchCharSet (std::unique_ptr< weld::ScrolledWindow > pScrolledWindow, const VclPtr< VirtualDevice > &rDevice) | |
virtual | ~SvxSearchCharSet () override |
virtual void | RecalculateFont (vcl::RenderContext &rRenderContext) override |
void | SelectCharacter (const Subset *sub) |
virtual sal_UCS4 | GetSelectCharacter () const override |
virtual svx::SvxShowCharSetItem * | ImplGetItem (int _nPos) override |
virtual int | LastInView () const override |
virtual void | SelectIndex (int index, bool bFocus=false) override |
void | AppendCharToList (sal_UCS4 cChar) |
void | ClearPreviousData () |
void | UpdateScrollRange () |
virtual sal_Int32 | getMaxCharCount () const override |
Public Member Functions inherited from SvxShowCharSet | |
SvxShowCharSet (std::unique_ptr< weld::ScrolledWindow > pScrollArea, const VclPtr< VirtualDevice > &rVirDev) | |
virtual | ~SvxShowCharSet () override |
virtual void | RecalculateFont (vcl::RenderContext &rRenderContext) |
void | SelectCharacter (sal_UCS4 cNew) |
virtual sal_UCS4 | GetSelectCharacter () const |
void | createContextMenu (const Point &rPosition) |
void | SetDoubleClickHdl (const Link< SvxShowCharSet *, void > &rLink) |
void | SetReturnKeyPressHdl (const Link< SvxShowCharSet *, void > &rLink) |
void | SetSelectHdl (const Link< SvxShowCharSet *, void > &rHdl) |
void | SetHighlightHdl (const Link< SvxShowCharSet *, void > &rHdl) |
void | SetPreSelectHdl (const Link< SvxShowCharSet *, void > &rHdl) |
void | SetFavClickHdl (const Link< SvxShowCharSet *, void > &rHdl) |
void | SetFont (const vcl::Font &rFont) |
vcl::Font const & | GetFont () const |
FontCharMapRef const & | GetFontCharMap () |
bool | isFavChar (std::u16string_view sTitle, std::u16string_view rFont) |
void | getFavCharacterList () |
void | updateFavCharacterList (const OUString &rChar, const OUString &rFont) |
virtual svx::SvxShowCharSetItem * | ImplGetItem (int _nPos) |
int | FirstInView () const |
virtual int | LastInView () const |
int | PixelToMapIndex (const Point &) const |
virtual void | SelectIndex (int index, bool bFocus=false) |
void | OutputIndex (int index) |
void | DeSelect () |
bool | IsSelected (sal_uInt16 _nPos) const |
sal_uInt16 | GetSelectIndexId () const |
virtual sal_Int32 | getMaxCharCount () const |
virtual void | Show () override |
virtual void | Hide () override |
uno::Reference< css::accessibility::XAccessible > | getAccessibleParent () const |
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 | DrawChars_Impl (vcl::RenderContext &rRenderContext, int n1, int n2) override |
virtual void | Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override |
virtual bool | KeyInput (const KeyEvent &rKEvt) override |
Private Attributes | |
std::unordered_map< sal_Int32, sal_UCS4 > | m_aItemList |
Definition at line 37 of file searchcharmap.hxx.
SvxSearchCharSet::SvxSearchCharSet | ( | std::unique_ptr< weld::ScrolledWindow > | pScrolledWindow, |
const VclPtr< VirtualDevice > & | rDevice | ||
) |
Definition at line 41 of file searchcharmap.cxx.
|
overridevirtual |
Definition at line 420 of file searchcharmap.cxx.
void SvxSearchCharSet::AppendCharToList | ( | sal_UCS4 | cChar | ) |
Definition at line 458 of file searchcharmap.cxx.
References m_aItemList.
void SvxSearchCharSet::ClearPreviousData | ( | ) |
Definition at line 452 of file searchcharmap.cxx.
References weld::CustomWidgetController::Invalidate(), and m_aItemList.
|
overrideprivatevirtual |
Reimplemented from SvxShowCharSet.
Definition at line 150 of file searchcharmap.cxx.
References tools::Rectangle::Bottom(), COL_TRANSPARENT(), COLUMN_COUNT, OutputDevice::DrawLine(), OutputDevice::DrawRect(), OutputDevice::DrawText(), SvxShowCharSet::FirstInView(), StyleSettings::GetDisableColor(), StyleSettings::GetFaceColor(), StyleSettings::GetFieldTextColor(), OutputDevice::GetFillColor(), SvxShowCharSet::getGridRectangle(), StyleSettings::GetHighlightColor(), StyleSettings::GetHighlightTextColor(), StyleSettings::GetLightColor(), OutputDevice::GetLineColor(), weld::CustomWidgetController::GetOutputSizePixel(), Application::GetSettings(), StyleSettings::GetShadowColor(), AllSettings::GetStyleSettings(), OutputDevice::GetTextBoundRect(), OutputDevice::GetTextColor(), OutputDevice::GetTextHeight(), OutputDevice::GetTextWidth(), tools::Rectangle::GetWidth(), weld::CustomWidgetController::HasFocus(), Size::Height(), i, tools::Rectangle::IsEmpty(), SvxShowCharSet::isFavChar(), LastInView(), tools::Rectangle::Left(), m_aItemList, SvxShowCharSet::m_nXGap, SvxShowCharSet::m_nYGap, SvxShowCharSet::MapIndexToPixel(), SvxShowCharSet::mxVirDev, n1, n2, SvxShowCharSet::nSelectedIndex, SvxShowCharSet::nX, SvxShowCharSet::nY, tools::Rectangle::Right(), ROW_COUNT, OutputDevice::SetFillColor(), OutputDevice::SetLineColor(), OutputDevice::SetTextColor(), sName, tools::Rectangle::Top(), Size::Width(), x, Point::X(), y, and Point::Y().
Referenced by Paint().
|
overridevirtual |
Reimplemented from SvxShowCharSet.
Definition at line 447 of file searchcharmap.cxx.
References m_aItemList.
Referenced by KeyInput(), LastInView(), SelectIndex(), and UpdateScrollRange().
|
overridevirtual |
Reimplemented from SvxShowCharSet.
Definition at line 296 of file searchcharmap.cxx.
References m_aItemList, and SvxShowCharSet::nSelectedIndex.
|
overridevirtual |
Reimplemented from SvxShowCharSet.
Definition at line 424 of file searchcharmap.cxx.
References _nPos, m_aItemList, SvxShowCharSet::m_aItems, SvxShowCharSet::m_xAccessible, SvxShowCharSet::MapIndexToPixel(), SvxShowCharSet::nX, SvxShowCharSet::nY, Point::X(), and Point::Y().
Referenced by SelectIndex().
|
overrideprivatevirtual |
Reimplemented from SvxShowCharSet.
Definition at line 53 of file searchcharmap.cxx.
References SvxShowCharSet::aDoubleClkHdl, SvxShowCharSet::aPreSelectHdl, Link< typename Arg, typename Ret >::Call(), COLUMN_COUNT, vcl::KeyCode::GetCode(), KeyEvent::GetKeyCode(), getMaxCharCount(), vcl::KeyCode::GetModifier(), KEY_DOWN, KEY_END, KEY_ESCAPE, KEY_HOME, KEY_LEFT, KEY_PAGEDOWN, KEY_PAGEUP, KEY_RETURN, KEY_RIGHT, KEY_SPACE, KEY_TAB, KEY_UP, SvxShowCharSet::KeyInput(), SvxShowCharSet::nSelectedIndex, ROW_COUNT, and SelectIndex().
|
overridevirtual |
Reimplemented from SvxShowCharSet.
Definition at line 46 of file searchcharmap.cxx.
References COLUMN_COUNT, SvxShowCharSet::FirstInView(), getMaxCharCount(), nIndex, and ROW_COUNT.
Referenced by DrawChars_Impl(), Paint(), and SelectIndex().
|
overrideprivatevirtual |
Reimplemented from SvxShowCharSet.
Definition at line 143 of file searchcharmap.cxx.
References DrawChars_Impl(), SvxShowCharSet::FirstInView(), SvxShowCharSet::InitSettings(), LastInView(), and RecalculateFont().
|
overridevirtual |
Reimplemented from SvxShowCharSet.
Definition at line 310 of file searchcharmap.cxx.
References ALIGN_TOP, COLUMN_COUNT, SvxShowCharSet::getFavCharacterList(), OutputDevice::GetFont(), OutputDevice::GetFontCharMap(), weld::CustomWidgetController::GetOutputSizePixel(), Size::Height(), SvxShowCharSet::m_aItems, SvxShowCharSet::m_nXGap, SvxShowCharSet::m_nYGap, SvxShowCharSet::maFontSize, SvxShowCharSet::mbRecalculateFont, SvxShowCharSet::mxFontCharMap, SvxShowCharSet::nX, SvxShowCharSet::nY, OutputDevice::PixelToLogic(), ROW_COUNT, vcl::Font::SetAlignment(), OutputDevice::SetFont(), vcl::Font::SetFontSize(), vcl::Font::SetTransparent(), vcl::Font::SetWeight(), UpdateScrollRange(), WEIGHT_LIGHT, and Size::Width().
Referenced by Paint(), SelectCharacter(), and SelectIndex().
void SvxSearchCharSet::SelectCharacter | ( | const Subset * | sub | ) |
Definition at line 115 of file searchcharmap.cxx.
References SvxShowCharSet::aHighHdl, Link< typename Arg, typename Ret >::Call(), Subset::GetRangeMin(), weld::CustomWidgetController::Invalidate(), tools::SvRef< typename T >::is(), m_aItemList, SvxShowCharSet::mxFontCharMap, SvxShowCharSet::mxVirDev, RecalculateFont(), and SelectIndex().
|
overridevirtual |
Reimplemented from SvxShowCharSet.
Definition at line 349 of file searchcharmap.cxx.
References SvxShowCharSet::aHighHdl, Any, SvxShowCharSet::aSelectHdl, Link< typename Arg, typename Ret >::Call(), COLUMN_COUNT, SvxShowCharSet::FirstInView(), svx::SvxShowCharSetItem::GetAccessible(), getMaxCharCount(), ImplGetItem(), weld::CustomWidgetController::Invalidate(), tools::SvRef< typename T >::is(), LastInView(), SvxShowCharSet::m_xAccessible, svx::SvxShowCharSetItem::m_xItem, makeAny(), SvxShowCharSet::mxFontCharMap, SvxShowCharSet::mxScrollArea, SvxShowCharSet::mxVirDev, SvxShowCharSet::nSelectedIndex, and RecalculateFont().
Referenced by KeyInput(), and SelectCharacter().
void SvxSearchCharSet::UpdateScrollRange | ( | ) |
Definition at line 342 of file searchcharmap.cxx.
References COLUMN_COUNT, getMaxCharCount(), SvxShowCharSet::mxScrollArea, and ROW_COUNT.
Referenced by RecalculateFont().
|
private |
Definition at line 60 of file searchcharmap.hxx.
Referenced by AppendCharToList(), ClearPreviousData(), DrawChars_Impl(), getMaxCharCount(), GetSelectCharacter(), ImplGetItem(), and SelectCharacter().