19#ifndef INCLUDED_SVX_CHARMAP_HXX
20#define INCLUDED_SVX_CHARMAP_HXX
46#define COLUMN_COUNT 16
51 struct SvxShowCharSetItem;
52 class SvxShowCharSetAcc;
67 void SelectCharacter(
sal_UCS4 cNew );
68 virtual sal_UCS4 GetSelectCharacter()
const;
69 void createContextMenu(
const Point& rPosition);
77 static sal_uInt32& getSelectedChar();
81 bool isFavChar(std::u16string_view sTitle, std::u16string_view rFont);
82 void getFavCharacterList();
83 void updateFavCharacterList(
const OUString& rChar,
const OUString& rFont);
86 int FirstInView()
const;
87 virtual int LastInView()
const;
88 int PixelToMapIndex(
const Point&)
const;
89 virtual void SelectIndex(
int index,
bool bFocus =
false );
90 void OutputIndex(
int index );
92 static void CopyToClipboard(
const OUString& str);
94 sal_uInt16
GetSelectIndexId()
const {
return sal::static_int_cast<sal_uInt16>(nSelectedIndex); }
95 static sal_uInt16 GetRowPos(sal_uInt16 _nPos);
96 static sal_uInt16 GetColumnPos(sal_uInt16 _nPos);
98 virtual sal_Int32 getMaxCharCount()
const;
100 virtual void Show()
override { mxScrollArea->show(); }
101 virtual void Hide()
override { mxScrollArea->hide(); }
108 virtual void Resize()
override;
116 virtual css::uno::Reference<css::accessibility::XAccessible>
CreateAccessible()
override;
120 typedef std::map<sal_Int32, std::shared_ptr<svx::SvxShowCharSetItem> >
ItemsMap;
154 Point MapIndexToPixel(
int)
const;
156 void ContextMenuSelect(std::u16string_view rIdent);
FILE * init(int, char **)
void SetDoubleClickHdl(const Link< SvxShowCharSet *, void > &rLink)
void SetReturnKeyPressHdl(const Link< SvxShowCharSet *, void > &rLink)
std::deque< OUString > maFavCharFontList
FontCharMapRef mxFontCharMap
void SetHighlightHdl(const Link< SvxShowCharSet *, void > &rHdl)
VclPtr< VirtualDevice > mxVirDev
void SetSelectHdl(const Link< SvxShowCharSet *, void > &rHdl)
Link< SvxShowCharSet *, void > aFavClickHdl
Link< SvxShowCharSet *, void > aHighHdl
std::unique_ptr< weld::ScrolledWindow > mxScrollArea
Link< SvxShowCharSet *, void > aSelectHdl
sal_uInt16 GetSelectIndexId() const
DECL_DLLPRIVATE_LINK(VscrollHdl, weld::ScrolledWindow &, void)
vcl::Font const & GetFont() const
Link< SvxShowCharSet *, void > m_aReturnKeypressHdl
void SetFavClickHdl(const Link< SvxShowCharSet *, void > &rHdl)
Link< SvxShowCharSet *, void > aDoubleClkHdl
uno::Reference< css::accessibility::XAccessible > getAccessibleParent() const
std::deque< OUString > maFavCharList
Link< SvxShowCharSet *, void > aPreSelectHdl
bool IsSelected(sal_uInt16 _nPos) const
std::map< sal_Int32, std::shared_ptr< svx::SvxShowCharSetItem > > ItemsMap
virtual void Hide() override
rtl::Reference< svx::SvxShowCharSetAcc > m_xAccessible
virtual void Show() override
void SetPreSelectHdl(const Link< SvxShowCharSet *, void > &rHdl)
virtual a11yref get_accessible_parent()=0
std::function< std::unique_ptr< UIObject >(vcl::Window *)> FactoryFunction
Simple struct to hold some information about the single items of the table.
static bool SetFont(const SfxItemSet &rSet, sal_uInt16 nSlot, SvxFont &rFont)