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

#include <searchcharmap.hxx>

Inheritance diagram for SvxSearchCharSet:
Collaboration diagram for SvxSearchCharSet:

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::SvxShowCharSetItemImplGetItem (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::SvxShowCharSetItemImplGetItem (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::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 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_UCS4m_aItemList

Additional Inherited Members

- Static Public Member Functions inherited from SvxShowCharSet
static sal_uInt32 & getSelectedChar ()
static void CopyToClipboard (const OUString &str)
static sal_uInt16 GetRowPos (sal_uInt16 _nPos)
static sal_uInt16 GetColumnPos (sal_uInt16 _nPos)
- Static Public Member Functions inherited from weld::CustomWidgetController
static bool IsUpdateMode ()
- Protected Types inherited from SvxShowCharSet
typedef std::map< sal_Int32, std::shared_ptr< svx::SvxShowCharSetItem > > ItemsMap
- Protected Member Functions inherited from SvxShowCharSet
virtual bool KeyInput (const KeyEvent &) override
virtual void DrawChars_Impl (vcl::RenderContext &rRenderContext, int n1, int n2)
void InitSettings (vcl::RenderContext &rRenderContext)
Point MapIndexToPixel (int) const
 DECL_DLLPRIVATE_LINK (VscrollHdl, weld::ScrolledWindow &, void)
void ContextMenuSelect (std::u16string_view rIdent)
void init ()
tools::Rectangle getGridRectangle (const Point &rPointUL, const Size &rOutputSize) const
- Protected Attributes inherited from SvxShowCharSet
VclPtr< VirtualDevicemxVirDev
vcl::Font maFont
std::unique_ptr< weld::ScrolledWindowmxScrollArea
ItemsMap m_aItems
Link< SvxShowCharSet *, void > aDoubleClkHdl
Link< SvxShowCharSet *, void > m_aReturnKeypressHdl
Link< SvxShowCharSet *, void > aSelectHdl
Link< SvxShowCharSet *, void > aFavClickHdl
Link< SvxShowCharSet *, void > aHighHdl
Link< SvxShowCharSet *, void > aPreSelectHdl
std::deque< OUString > maFavCharList
std::deque< OUString > maFavCharFontList
rtl::Reference< svx::SvxShowCharSetAccm_xAccessible
tools::Long nX
tools::Long nY
tools::Long m_nXGap
tools::Long m_nYGap
bool bDrag
sal_Int32 nSelectedIndex
FontCharMapRef mxFontCharMap
Size maFontSize
bool mbRecalculateFont: 1
bool mbUpdateForeground: 1
bool mbUpdateBackground: 1

Detailed Description

Definition at line 37 of file searchcharmap.hxx.

Constructor & Destructor Documentation

◆ SvxSearchCharSet()

SvxSearchCharSet::SvxSearchCharSet ( std::unique_ptr< weld::ScrolledWindow pScrolledWindow,
const VclPtr< VirtualDevice > &  rDevice 

Definition at line 41 of file searchcharmap.cxx.

◆ ~SvxSearchCharSet()

SvxSearchCharSet::~SvxSearchCharSet ( )

Definition at line 420 of file searchcharmap.cxx.

Member Function Documentation

◆ AppendCharToList()

void SvxSearchCharSet::AppendCharToList ( sal_UCS4  cChar)

Definition at line 458 of file searchcharmap.cxx.

References m_aItemList.

◆ ClearPreviousData()

void SvxSearchCharSet::ClearPreviousData ( )

Definition at line 452 of file searchcharmap.cxx.

References weld::CustomWidgetController::Invalidate(), and m_aItemList.

◆ DrawChars_Impl()

void SvxSearchCharSet::DrawChars_Impl ( vcl::RenderContext rRenderContext,
int  n1,
int  n2 

◆ getMaxCharCount()

sal_Int32 SvxSearchCharSet::getMaxCharCount ( ) const

Reimplemented from SvxShowCharSet.

Definition at line 447 of file searchcharmap.cxx.

References m_aItemList.

Referenced by KeyInput(), LastInView(), SelectIndex(), and UpdateScrollRange().

◆ GetSelectCharacter()

sal_UCS4 SvxSearchCharSet::GetSelectCharacter ( ) const

Reimplemented from SvxShowCharSet.

Definition at line 296 of file searchcharmap.cxx.

References m_aItemList, and SvxShowCharSet::nSelectedIndex.

◆ ImplGetItem()

svx::SvxShowCharSetItem * SvxSearchCharSet::ImplGetItem ( int  _nPos)

◆ KeyInput()

bool SvxSearchCharSet::KeyInput ( const KeyEvent rKEvt)

◆ LastInView()

int SvxSearchCharSet::LastInView ( ) const

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().

◆ Paint()

void SvxSearchCharSet::Paint ( vcl::RenderContext rRenderContext,
const tools::Rectangle rRect 

◆ RecalculateFont()

void SvxSearchCharSet::RecalculateFont ( vcl::RenderContext rRenderContext)

◆ SelectCharacter()

void SvxSearchCharSet::SelectCharacter ( const Subset sub)

◆ SelectIndex()

void SvxSearchCharSet::SelectIndex ( int  index,
bool  bFocus = false 

◆ UpdateScrollRange()

void SvxSearchCharSet::UpdateScrollRange ( )

Definition at line 342 of file searchcharmap.cxx.

References COLUMN_COUNT, getMaxCharCount(), SvxShowCharSet::mxScrollArea, and ROW_COUNT.

Referenced by RecalculateFont().

Member Data Documentation

◆ m_aItemList

std::unordered_map<sal_Int32, sal_UCS4> SvxSearchCharSet::m_aItemList

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