19 #ifndef INCLUDED_SVX_CHARMAP_HXX
20 #define INCLUDED_SVX_CHARMAP_HXX
29 #include <rtl/ref.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();
76 static sal_uInt32& getSelectedChar();
80 bool isFavChar(
const OUString& sTitle,
const OUString& rFont);
81 void getFavCharacterList();
82 void updateFavCharacterList(
const OUString& rChar,
const OUString& rFont);
85 int FirstInView()
const;
86 virtual int LastInView()
const;
87 int PixelToMapIndex(
const Point&)
const;
88 virtual void SelectIndex(
int index,
bool bFocus =
false );
89 void OutputIndex(
int index );
91 static void CopyToClipboard(
const OUString& str);
92 bool IsSelected(sal_uInt16 _nPos)
const {
return _nPos == nSelectedIndex; }
93 sal_uInt16
GetSelectIndexId()
const {
return sal::static_int_cast<sal_uInt16>(nSelectedIndex); }
94 static sal_uInt16 GetRowPos(sal_uInt16 _nPos);
95 static sal_uInt16 GetColumnPos(sal_uInt16 _nPos);
97 virtual sal_Int32 getMaxCharCount()
const;
99 virtual void Show()
override { mxScrollArea->show(); }
100 virtual void Hide()
override { mxScrollArea->hide(); }
107 virtual void Resize()
override;
115 virtual css::uno::Reference<css::accessibility::XAccessible>
CreateAccessible()
override;
119 typedef std::map<sal_Int32, std::shared_ptr<svx::SvxShowCharSetItem> >
ItemsMap;
143 bool mbRecalculateFont : 1;
144 bool mbUpdateForeground : 1;
145 bool mbUpdateBackground : 1;
152 Point MapIndexToPixel(
int)
const;
154 void ContextMenuSelect(std::string_view rIdent);
Link< SvxShowCharSet *, void > aHighHdl
virtual void Show() override
std::map< sal_Int32, std::shared_ptr< svx::SvxShowCharSetItem > > ItemsMap
VclPtr< VirtualDevice > mxVirDev
virtual a11yref get_accessible_parent()=0
std::unique_ptr< weld::ScrolledWindow > mxScrollArea
void SetSelectHdl(const Link< SvxShowCharSet *, void > &rHdl)
std::function< std::unique_ptr< UIObject >vcl::Window *)> FactoryFunction
sal_uInt16 GetSelectIndexId() const
vcl::Font const & GetFont() const
Link< SvxShowCharSet *, void > aDoubleClkHdl
FontCharMapRef mxFontCharMap
std::deque< OUString > maFavCharFontList
void SetPreSelectHdl(const Link< SvxShowCharSet *, void > &rHdl)
bool IsSelected(sal_uInt16 _nPos) const
uno::Reference< css::accessibility::XAccessible > getAccessibleParent() const
void SetFavClickHdl(const Link< SvxShowCharSet *, void > &rHdl)
virtual void Hide() override
std::deque< OUString > maFavCharList
Link< SvxShowCharSet *, void > aSelectHdl
void SetHighlightHdl(const Link< SvxShowCharSet *, void > &rHdl)
rtl::Reference< svx::SvxShowCharSetAcc > m_xAccessible
FILE * init(int, char **)
Simple struct to hold some information about the single items of the table.
Link< SvxShowCharSet *, void > aFavClickHdl
void SetDoubleClickHdl(const Link< SvxShowCharSet *, void > &rLink)
#define DECL_DLLPRIVATE_LINK(Member, ArgType, RetType)
Link< SvxShowCharSet *, void > aPreSelectHdl