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

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 void DrawChars_Impl (vcl::RenderContext &rRenderContext, int n1, int n2)
 
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

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
 

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 KeyInput (const KeyEvent &) 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

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

Definition at line 119 of file charmap.hxx.

Constructor & Destructor Documentation

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

Definition at line 67 of file charmap.cxx.

References getProcessComponentContext(), init(), and mxScrollArea.

SvxShowCharSet::~SvxShowCharSet ( )
overridevirtual

Definition at line 807 of file charmap.cxx.

References m_aItems, and m_xAccessible.

Member Function Documentation

void SvxShowCharSet::ContextMenuSelect ( const OString &  rIdent)
protected
void SvxShowCharSet::CopyToClipboard ( const OUString &  str)
static

Definition at line 262 of file charmap.cxx.

References comphelper::getProcessComponentContext().

Referenced by ContextMenuSelect().

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

Reimplemented from weld::CustomWidgetController.

Definition at line 817 of file charmap.cxx.

References m_xAccessible.

void SvxShowCharSet::createContextMenu ( )
SvxShowCharSet::DECL_LINK ( VscrollHdl  ,
weld::ScrolledWindow ,
void   
)
protected
void SvxShowCharSet::DeSelect ( )
void SvxShowCharSet::DrawChars_Impl ( vcl::RenderContext rRenderContext,
int  n1,
int  n2 
)
protectedvirtual
int SvxShowCharSet::FirstInView ( ) const
uno::Reference<css::accessibility::XAccessible> SvxShowCharSet::getAccessibleParent ( ) const
inline
sal_uInt16 SvxShowCharSet::GetColumnPos ( sal_uInt16  _nPos)
static
void SvxShowCharSet::getFavCharacterList ( )
void SvxShowCharSet::GetFocus ( )
overrideprivatevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 117 of file charmap.cxx.

References nSelectedIndex, and SelectIndex().

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

Definition at line 78 of file charmap.hxx.

FontCharMapRef const & SvxShowCharSet::GetFontCharMap ( )

Definition at line 848 of file charmap.cxx.

References mxFontCharMap, mxVirDev, and RecalculateFont().

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

Reimplemented in SvxSearchCharSet.

Definition at line 843 of file charmap.cxx.

References FontCharMap::GetCharCount(), and mxFontCharMap.

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

sal_uInt16 SvxShowCharSet::GetRowPos ( sal_uInt16  _nPos)
static
sal_UCS4 SvxShowCharSet::GetSelectCharacter ( ) const
virtual
sal_uInt32 & SvxShowCharSet::getSelectedChar ( )
static

Definition at line 56 of file charmap.cxx.

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

sal_uInt16 SvxShowCharSet::GetSelectIndexId ( ) const
inline
FactoryFunction SvxShowCharSet::GetUITestFactory ( ) const
overrideprivatevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 62 of file charmap.cxx.

References SvxShowCharSetUIObject::create().

virtual void SvxShowCharSet::Hide ( )
inlineoverridevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 100 of file charmap.hxx.

svx::SvxShowCharSetItem * SvxShowCharSet::ImplGetItem ( int  _nPos)
virtual
void SvxShowCharSet::init ( )
protected

Definition at line 99 of file charmap.cxx.

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

Referenced by SvxShowCharSet().

void SvxShowCharSet::InitSettings ( vcl::RenderContext rRenderContext)
protected
bool SvxShowCharSet::isFavChar ( const OUString &  sTitle,
const OUString &  rFont 
)

Definition at line 215 of file charmap.cxx.

References maFavCharFontList, and maFavCharList.

Referenced by createContextMenu(), and updateFavCharacterList().

bool SvxShowCharSet::IsSelected ( sal_uInt16  _nPos) const
inline

Definition at line 92 of file charmap.hxx.

bool SvxShowCharSet::KeyInput ( const KeyEvent rKEvt)
overrideprivatevirtual
int SvxShowCharSet::LastInView ( ) const
virtual
void SvxShowCharSet::LoseFocus ( )
overrideprivatevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 122 of file charmap.cxx.

References nSelectedIndex, and SelectIndex().

Point SvxShowCharSet::MapIndexToPixel ( int  nIndex) const
protected
bool SvxShowCharSet::MouseButtonDown ( const MouseEvent rMEvt)
overrideprivatevirtual
bool SvxShowCharSet::MouseButtonUp ( const MouseEvent rMEvt)
overrideprivatevirtual
bool SvxShowCharSet::MouseMove ( const MouseEvent rMEvt)
overrideprivatevirtual
void SvxShowCharSet::OutputIndex ( int  index)
void SvxShowCharSet::Paint ( vcl::RenderContext rRenderContext,
const tools::Rectangle rRect 
)
overrideprivatevirtual

Implements weld::CustomWidgetController.

Reimplemented in SvxSearchCharSet.

Definition at line 453 of file charmap.cxx.

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

int SvxShowCharSet::PixelToMapIndex ( const Point point) const
void SvxShowCharSet::RecalculateFont ( vcl::RenderContext rRenderContext)
virtual
void SvxShowCharSet::Resize ( )
overrideprivatevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 112 of file charmap.cxx.

References mbRecalculateFont.

void SvxShowCharSet::SelectCharacter ( sal_UCS4  cNew)
void SvxShowCharSet::SelectIndex ( int  index,
bool  bFocus = false 
)
virtual
void SvxShowCharSet::SetDoubleClickHdl ( const Link< SvxShowCharSet *, void > &  rLink)
inline

Definition at line 71 of file charmap.hxx.

void SvxShowCharSet::SetDrawingArea ( weld::DrawingArea pDrawingArea)
overrideprivatevirtual
void SvxShowCharSet::SetFavClickHdl ( const Link< SvxShowCharSet *, void > &  rHdl)
inline

Definition at line 75 of file charmap.hxx.

void SvxShowCharSet::SetFont ( const vcl::Font rFont)
void SvxShowCharSet::SetHighlightHdl ( const Link< SvxShowCharSet *, void > &  rHdl)
inline

Definition at line 73 of file charmap.hxx.

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

Definition at line 74 of file charmap.hxx.

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

Definition at line 72 of file charmap.hxx.

virtual void SvxShowCharSet::Show ( )
inlineoverridevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 99 of file charmap.hxx.

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

Member Data Documentation

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

Definition at line 121 of file charmap.hxx.

Referenced by ContextMenuSelect(), and MouseButtonDown().

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

Definition at line 123 of file charmap.hxx.

Referenced by ContextMenuSelect().

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

Definition at line 125 of file charmap.hxx.

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

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

Definition at line 122 of file charmap.hxx.

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

bool SvxShowCharSet::bDrag
protected

Definition at line 136 of file charmap.hxx.

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

ItemsMap SvxShowCharSet::m_aItems
protected

Definition at line 120 of file charmap.hxx.

Referenced by SvxSearchCharSet::ImplGetItem(), ImplGetItem(), and ~SvxShowCharSet().

long SvxShowCharSet::m_nXGap
protected
long SvxShowCharSet::m_nYGap
protected
rtl::Reference<svx::SvxShowCharSetAcc> SvxShowCharSet::m_xAccessible
protected
std::deque<OUString> SvxShowCharSet::maFavCharFontList
protected

Definition at line 128 of file charmap.hxx.

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

std::deque<OUString> SvxShowCharSet::maFavCharList
protected
vcl::Font SvxShowCharSet::maFont
protected

Definition at line 59 of file charmap.hxx.

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

Size SvxShowCharSet::maFontSize
protected

Definition at line 141 of file charmap.hxx.

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

Point SvxShowCharSet::maPosition
protected

Definition at line 142 of file charmap.hxx.

Referenced by createContextMenu(), and MouseButtonDown().

bool SvxShowCharSet::mbRecalculateFont
protected

Definition at line 144 of file charmap.hxx.

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

bool SvxShowCharSet::mbUpdateBackground
protected

Definition at line 146 of file charmap.hxx.

Referenced by InitSettings().

bool SvxShowCharSet::mbUpdateForeground
protected

Definition at line 145 of file charmap.hxx.

Referenced by InitSettings().

uno::Reference< uno::XComponentContext > SvxShowCharSet::mxContext
protected

Definition at line 131 of file charmap.hxx.

Referenced by updateFavCharacterList().

FontCharMapRef SvxShowCharSet::mxFontCharMap
protected
std::unique_ptr<weld::ScrolledWindow> SvxShowCharSet::mxScrollArea
protected
VclPtr<VirtualDevice> SvxShowCharSet::mxVirDev
protected
sal_Int32 SvxShowCharSet::nSelectedIndex
protected
long SvxShowCharSet::nX
protected
long SvxShowCharSet::nY
protected

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