LibreOffice Module svx (master) 1
Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
SvxShowCharSet Class Reference

#include <charmap.hxx>

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

Public Member Functions

 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
 

Static Public Member Functions

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

typedef std::map< sal_Int32, std::shared_ptr< svx::SvxShowCharSetItem > > ItemsMap
 

Protected Member Functions

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

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
 

Private Member Functions

virtual void SetDrawingArea (weld::DrawingArea *pDrawingArea) override
 
virtual void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
 
virtual void Resize () override
 
virtual bool MouseButtonDown (const MouseEvent &rMEvt) override
 
virtual bool MouseMove (const MouseEvent &rMEvt) override
 
virtual bool MouseButtonUp (const MouseEvent &rMEvt) override
 
virtual void GetFocus () override
 
virtual void LoseFocus () override
 
virtual bool Command (const CommandEvent &rCEvt) override
 
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible () override
 
virtual FactoryFunction GetUITestFactory () const override
 

Detailed Description

Definition at line 55 of file charmap.hxx.

Member Typedef Documentation

◆ ItemsMap

typedef std::map<sal_Int32, std::shared_ptr<svx::SvxShowCharSetItem> > SvxShowCharSet::ItemsMap
protected

Definition at line 120 of file charmap.hxx.

Constructor & Destructor Documentation

◆ SvxShowCharSet()

SvxShowCharSet::SvxShowCharSet ( std::unique_ptr< weld::ScrolledWindow pScrollArea,
const VclPtr< VirtualDevice > &  rVirDev 
)

Definition at line 66 of file charmap.cxx.

References init().

◆ ~SvxShowCharSet()

SvxShowCharSet::~SvxShowCharSet ( )
overridevirtual

Definition at line 840 of file charmap.cxx.

References m_aItems, and m_xAccessible.

Member Function Documentation

◆ Command()

bool SvxShowCharSet::Command ( const CommandEvent rCEvt)
overrideprivatevirtual

◆ ContextMenuSelect()

void SvxShowCharSet::ContextMenuSelect ( std::u16string_view  rIdent)
protected

◆ CopyToClipboard()

void SvxShowCharSet::CopyToClipboard ( const OUString &  str)
static

Definition at line 275 of file charmap.cxx.

References comphelper::getProcessComponentContext().

Referenced by ContextMenuSelect().

◆ CreateAccessible()

css::uno::Reference< XAccessible > SvxShowCharSet::CreateAccessible ( )
overrideprivatevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 852 of file charmap.cxx.

References m_xAccessible.

◆ createContextMenu()

void SvxShowCharSet::createContextMenu ( const Point rPosition)

◆ DECL_DLLPRIVATE_LINK()

SvxShowCharSet::DECL_DLLPRIVATE_LINK ( VscrollHdl  ,
weld::ScrolledWindow ,
void   
)
protected

References init().

◆ DeSelect()

void SvxShowCharSet::DeSelect ( )

◆ DrawChars_Impl()

void SvxShowCharSet::DrawChars_Impl ( vcl::RenderContext rRenderContext,
int  n1,
int  n2 
)
protectedvirtual

◆ FirstInView()

int SvxShowCharSet::FirstInView ( ) const

◆ getAccessibleParent()

uno::Reference< css::accessibility::XAccessible > SvxShowCharSet::getAccessibleParent ( ) const
inline

◆ GetColumnPos()

sal_uInt16 SvxShowCharSet::GetColumnPos ( sal_uInt16  _nPos)
static

◆ getFavCharacterList()

void SvxShowCharSet::getFavCharacterList ( )

◆ GetFocus()

void SvxShowCharSet::GetFocus ( )
overrideprivatevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 112 of file charmap.cxx.

References nSelectedIndex, and SelectIndex().

◆ GetFont()

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

Definition at line 79 of file charmap.hxx.

◆ GetFontCharMap()

FontCharMapRef const & SvxShowCharSet::GetFontCharMap ( )

Definition at line 887 of file charmap.cxx.

References mxFontCharMap, mxVirDev, and RecalculateFont().

◆ getGridRectangle()

tools::Rectangle SvxShowCharSet::getGridRectangle ( const Point rPointUL,
const Size rOutputSize 
) const
protected

◆ getMaxCharCount()

sal_Int32 SvxShowCharSet::getMaxCharCount ( ) const
virtual

Reimplemented in SvxSearchCharSet.

Definition at line 882 of file charmap.cxx.

References mxFontCharMap.

Referenced by svx::SvxShowCharSetAcc::getAccessibleChildCount().

◆ GetRowPos()

sal_uInt16 SvxShowCharSet::GetRowPos ( sal_uInt16  _nPos)
static

◆ GetSelectCharacter()

sal_UCS4 SvxShowCharSet::GetSelectCharacter ( ) const
virtual

Reimplemented in SvxSearchCharSet.

Definition at line 667 of file charmap.cxx.

References getSelectedChar(), mxFontCharMap, and nSelectedIndex.

Referenced by ContextMenuSelect(), and createContextMenu().

◆ getSelectedChar()

sal_uInt32 & SvxShowCharSet::getSelectedChar ( )
static

Definition at line 55 of file charmap.cxx.

Referenced by GetSelectCharacter(), RecalculateFont(), and SelectIndex().

◆ GetSelectIndexId()

sal_uInt16 SvxShowCharSet::GetSelectIndexId ( ) const
inline

◆ GetUITestFactory()

FactoryFunction SvxShowCharSet::GetUITestFactory ( ) const
overrideprivatevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 61 of file charmap.cxx.

References SvxShowCharSetUIObject::create().

◆ Hide()

virtual void SvxShowCharSet::Hide ( )
inlineoverridevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 101 of file charmap.hxx.

◆ ImplGetItem()

svx::SvxShowCharSetItem * SvxShowCharSet::ImplGetItem ( int  _nPos)
virtual

◆ init()

void SvxShowCharSet::init ( )
protected

Definition at line 94 of file charmap.cxx.

References bDrag, getFavCharacterList(), LINK, m_nXGap, m_nYGap, mxScrollArea, and nSelectedIndex.

Referenced by SvxShowCharSet().

◆ InitSettings()

void SvxShowCharSet::InitSettings ( vcl::RenderContext rRenderContext)
protected

◆ isFavChar()

bool SvxShowCharSet::isFavChar ( std::u16string_view  sTitle,
std::u16string_view  rFont 
)

◆ IsSelected()

bool SvxShowCharSet::IsSelected ( sal_uInt16  _nPos) const
inline

Definition at line 93 of file charmap.hxx.

References _nPos.

Referenced by svx::SvxShowCharSetAcc::implIsSelected().

◆ KeyInput()

bool SvxShowCharSet::KeyInput ( const KeyEvent rKEvt)
overrideprotectedvirtual

◆ LastInView()

int SvxShowCharSet::LastInView ( ) const
virtual

◆ LoseFocus()

void SvxShowCharSet::LoseFocus ( )
overrideprivatevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 117 of file charmap.cxx.

References nSelectedIndex, and SelectIndex().

◆ MapIndexToPixel()

Point SvxShowCharSet::MapIndexToPixel ( int  nIndex) const
protected

◆ MouseButtonDown()

bool SvxShowCharSet::MouseButtonDown ( const MouseEvent rMEvt)
overrideprivatevirtual

◆ MouseButtonUp()

bool SvxShowCharSet::MouseButtonUp ( const MouseEvent rMEvt)
overrideprivatevirtual

◆ MouseMove()

bool SvxShowCharSet::MouseMove ( const MouseEvent rMEvt)
overrideprivatevirtual

◆ OutputIndex()

void SvxShowCharSet::OutputIndex ( int  index)

◆ Paint()

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

Implements weld::CustomWidgetController.

Reimplemented in SvxSearchCharSet.

Definition at line 454 of file charmap.cxx.

References DrawChars_Impl(), FirstInView(), InitSettings(), LastInView(), and RecalculateFont().

◆ PixelToMapIndex()

int SvxShowCharSet::PixelToMapIndex ( const Point point) const

◆ RecalculateFont()

void SvxShowCharSet::RecalculateFont ( vcl::RenderContext rRenderContext)
virtual

◆ Resize()

void SvxShowCharSet::Resize ( )
overrideprivatevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 107 of file charmap.cxx.

References mbRecalculateFont.

◆ SelectCharacter()

void SvxShowCharSet::SelectCharacter ( sal_UCS4  cNew)

◆ SelectIndex()

void SvxShowCharSet::SelectIndex ( int  index,
bool  bFocus = false 
)
virtual

◆ SetDoubleClickHdl()

void SvxShowCharSet::SetDoubleClickHdl ( const Link< SvxShowCharSet *, void > &  rLink)
inline

Definition at line 71 of file charmap.hxx.

◆ SetDrawingArea()

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

◆ SetFavClickHdl()

void SvxShowCharSet::SetFavClickHdl ( const Link< SvxShowCharSet *, void > &  rHdl)
inline

Definition at line 76 of file charmap.hxx.

◆ SetFont()

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

◆ SetHighlightHdl()

void SvxShowCharSet::SetHighlightHdl ( const Link< SvxShowCharSet *, void > &  rHdl)
inline

Definition at line 74 of file charmap.hxx.

◆ SetPreSelectHdl()

void SvxShowCharSet::SetPreSelectHdl ( const Link< SvxShowCharSet *, void > &  rHdl)
inline

Definition at line 75 of file charmap.hxx.

◆ SetReturnKeyPressHdl()

void SvxShowCharSet::SetReturnKeyPressHdl ( const Link< SvxShowCharSet *, void > &  rLink)
inline

Definition at line 72 of file charmap.hxx.

◆ SetSelectHdl()

void SvxShowCharSet::SetSelectHdl ( const Link< SvxShowCharSet *, void > &  rHdl)
inline

Definition at line 73 of file charmap.hxx.

◆ Show()

virtual void SvxShowCharSet::Show ( )
inlineoverridevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 100 of file charmap.hxx.

◆ updateFavCharacterList()

void SvxShowCharSet::updateFavCharacterList ( const OUString &  rChar,
const OUString &  rFont 
)

Member Data Documentation

◆ aDoubleClkHdl

Link<SvxShowCharSet*,void> SvxShowCharSet::aDoubleClkHdl
protected

◆ aFavClickHdl

Link<SvxShowCharSet*,void> SvxShowCharSet::aFavClickHdl
protected

Definition at line 125 of file charmap.hxx.

Referenced by ContextMenuSelect().

◆ aHighHdl

Link<SvxShowCharSet*,void> SvxShowCharSet::aHighHdl
protected

◆ aPreSelectHdl

Link<SvxShowCharSet*,void> SvxShowCharSet::aPreSelectHdl
protected

Definition at line 127 of file charmap.hxx.

Referenced by KeyInput(), and SvxSearchCharSet::KeyInput().

◆ aSelectHdl

Link<SvxShowCharSet*,void> SvxShowCharSet::aSelectHdl
protected

◆ bDrag

bool SvxShowCharSet::bDrag
protected

Definition at line 137 of file charmap.hxx.

Referenced by init(), MouseButtonDown(), MouseButtonUp(), and MouseMove().

◆ m_aItems

ItemsMap SvxShowCharSet::m_aItems
protected

◆ m_aReturnKeypressHdl

Link<SvxShowCharSet*,void> SvxShowCharSet::m_aReturnKeypressHdl
protected

Definition at line 123 of file charmap.hxx.

Referenced by KeyInput().

◆ m_nXGap

tools::Long SvxShowCharSet::m_nXGap
protected

◆ m_nYGap

tools::Long SvxShowCharSet::m_nYGap
protected

◆ m_xAccessible

rtl::Reference<svx::SvxShowCharSetAcc> SvxShowCharSet::m_xAccessible
protected

◆ maFavCharFontList

std::deque<OUString> SvxShowCharSet::maFavCharFontList
protected

Definition at line 130 of file charmap.hxx.

Referenced by getFavCharacterList(), isFavChar(), and updateFavCharacterList().

◆ maFavCharList

std::deque<OUString> SvxShowCharSet::maFavCharList
protected

◆ maFont

vcl::Font SvxShowCharSet::maFont
protected

Definition at line 59 of file charmap.hxx.

Referenced by InitSettings(), RecalculateFont(), and SetFont().

◆ maFontSize

Size SvxShowCharSet::maFontSize
protected

Definition at line 142 of file charmap.hxx.

Referenced by InitSettings(), RecalculateFont(), and SvxSearchCharSet::RecalculateFont().

◆ mbRecalculateFont

bool SvxShowCharSet::mbRecalculateFont
protected

Definition at line 144 of file charmap.hxx.

Referenced by RecalculateFont(), SvxSearchCharSet::RecalculateFont(), Resize(), and SetFont().

◆ mbUpdateBackground

bool SvxShowCharSet::mbUpdateBackground
protected

Definition at line 146 of file charmap.hxx.

Referenced by InitSettings().

◆ mbUpdateForeground

bool SvxShowCharSet::mbUpdateForeground
protected

Definition at line 145 of file charmap.hxx.

Referenced by InitSettings().

◆ mxFontCharMap

FontCharMapRef SvxShowCharSet::mxFontCharMap
protected

◆ mxScrollArea

std::unique_ptr<weld::ScrolledWindow> SvxShowCharSet::mxScrollArea
protected

◆ mxVirDev

VclPtr<VirtualDevice> SvxShowCharSet::mxVirDev
protected

◆ nSelectedIndex

sal_Int32 SvxShowCharSet::nSelectedIndex
protected

◆ nX

tools::Long SvxShowCharSet::nX
protected

◆ nY

tools::Long SvxShowCharSet::nY
protected

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