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:
[legend]
Collaboration diagram for SvxSearchCharSet:
[legend]

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 ()
 
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
 
void SelectCharacter (sal_UCS4 cNew)
 
void createContextMenu ()
 
void SetDoubleClickHdl (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 (const OUString &sTitle, const OUString &rFont)
 
void getFavCharacterList ()
 
void updateFavCharacterList (const OUString &rChar, const OUString &rFont)
 
int FirstInView () const
 
int PixelToMapIndex (const Point &) const
 
void OutputIndex (int index)
 
void DeSelect ()
 
bool IsSelected (sal_uInt16 _nPos) const
 
sal_uInt16 GetSelectIndexId () const
 
virtual void Show () override
 
virtual void Hide () override
 
uno::Reference< css::accessibility::XAccessible > getAccessibleParent () const
 
- Public Member Functions inherited from weld::CustomWidgetController
virtual void StyleUpdated ()
 
virtual bool Command (const CommandEvent &)
 
virtual tools::Rectangle GetFocusRect ()
 
virtual OUString RequestHelp (tools::Rectangle &)
 
virtual OUString GetHelpText () const
 
Size const & GetOutputSizePixel () const
 
void SetOutputSizePixel (const Size &rSize)
 
weld::DrawingAreaGetDrawingArea () const
 
void Invalidate ()
 
void Invalidate (const tools::Rectangle &rRect)
 
void GrabFocus ()
 
bool HasFocus () const
 
bool IsVisible () const
 
bool IsReallyVisible () const
 
bool IsEnabled () const
 
bool IsActive () const
 
int GetTextHeight () const
 
OUString GetAccessibleName () const
 
OUString GetAccessibleDescription () const
 
void CaptureMouse ()
 
bool IsMouseCaptured () const
 
void EnableRTL (bool bEnable)
 
bool IsRTLEnabled () const
 
void ReleaseMouse ()
 
void SetPointer (PointerStyle ePointerStyle)
 
void SetHelpId (const OString &rHelpId)
 
void SetAccessibleName (const OUString &rName)
 
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

sal_Int32 nCount
 
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
void InitSettings (vcl::RenderContext &rRenderContext)
 
Point MapIndexToPixel (int) const
 
 DECL_LINK (VscrollHdl, weld::ScrolledWindow &, void)
 
void ContextMenuSelect (const OString &rIdent)
 
void init ()
 
tools::Rectangle getGridRectangle (const Point &rPointUL, const Size &rOutputSize)
 
- Protected Attributes inherited from SvxShowCharSet
VclPtr< VirtualDevicemxVirDev
 
vcl::Font maFont
 
std::unique_ptr< weld::ScrolledWindowmxScrollArea
 
ItemsMap m_aItems
 
Link< SvxShowCharSet *, voidaDoubleClkHdl
 
Link< SvxShowCharSet *, voidaSelectHdl
 
Link< SvxShowCharSet *, voidaFavClickHdl
 
Link< SvxShowCharSet *, voidaHighHdl
 
Link< SvxShowCharSet *, voidaPreSelectHdl
 
std::deque< OUString > maFavCharList
 
std::deque< OUString > maFavCharFontList
 
rtl::Reference< svx::SvxShowCharSetAccm_xAccessible
 
uno::Reference< uno::XComponentContext > mxContext
 
long nX
 
long nY
 
long m_nXGap
 
long m_nYGap
 
bool bDrag
 
sal_Int32 nSelectedIndex
 
FontCharMapRef mxFontCharMap
 
Size maFontSize
 
Point maPosition
 
bool mbRecalculateFont: 1
 
bool mbUpdateForeground: 1
 
bool mbUpdateBackground: 1
 

Detailed Description

Definition at line 40 of file searchcharmap.hxx.

Constructor & Destructor Documentation

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

Definition at line 48 of file searchcharmap.cxx.

SvxSearchCharSet::~SvxSearchCharSet ( )
overridevirtual

Definition at line 397 of file searchcharmap.cxx.

Member Function Documentation

void SvxSearchCharSet::AppendCharToList ( sal_UCS4  cChar)

Definition at line 434 of file searchcharmap.cxx.

References m_aItemList, and nCount.

void SvxSearchCharSet::ClearPreviousData ( )
void SvxSearchCharSet::DrawChars_Impl ( vcl::RenderContext rRenderContext,
int  n1,
int  n2 
)
overrideprivatevirtual
sal_Int32 SvxSearchCharSet::getMaxCharCount ( ) const
overridevirtual

Reimplemented from SvxShowCharSet.

Definition at line 422 of file searchcharmap.cxx.

References nCount.

sal_UCS4 SvxSearchCharSet::GetSelectCharacter ( ) const
overridevirtual

Reimplemented from SvxShowCharSet.

Definition at line 280 of file searchcharmap.cxx.

References m_aItemList, and SvxShowCharSet::nSelectedIndex.

svx::SvxShowCharSetItem * SvxSearchCharSet::ImplGetItem ( int  _nPos)
overridevirtual
bool SvxSearchCharSet::KeyInput ( const KeyEvent rKEvt)
overrideprivatevirtual
int SvxSearchCharSet::LastInView ( ) const
overridevirtual

Reimplemented from SvxShowCharSet.

Definition at line 54 of file searchcharmap.cxx.

References COLUMN_COUNT, SvxShowCharSet::FirstInView(), nCount, and ROW_COUNT.

Referenced by DrawChars_Impl(), Paint(), and SelectIndex().

void SvxSearchCharSet::Paint ( vcl::RenderContext rRenderContext,
const tools::Rectangle rRect 
)
overrideprivatevirtual
void SvxSearchCharSet::RecalculateFont ( vcl::RenderContext rRenderContext)
overridevirtual
void SvxSearchCharSet::SelectCharacter ( const Subset sub)
void SvxSearchCharSet::SelectIndex ( int  index,
bool  bFocus = false 
)
overridevirtual

Member Data Documentation

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

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