19#ifndef INCLUDED_CUI_CUICHARMAP_HXX
20#define INCLUDED_CUI_CUICHARMAP_HXX
32#include <com/sun/star/frame/XFrame.hpp>
41#define CHARMAP_MAXLEN 32
45struct SvxShowCharSetItem;
59 virtual void Resize()
override;
67 void SetText(
const OUString& rText);
68 OUString
const&
GetText()
const {
return m_sText; }
85 css::uno::Reference<css::frame::XFrame>
m_xFrame;
108 std::unique_ptr<weld::CustomWeld> m_xRecentCharView[16];
109 std::unique_ptr<weld::CustomWeld> m_xFavCharView[16];
147 void selectCharByCode(
Radix radix);
151 css::uno::Reference<css::frame::XFrame> xFrame);
152 virtual short run()
override;
158 void DisableFontSelection();
161 void SetCharFont(
const vcl::Font& rFont);
166 void getRecentCharacterList();
167 void updateRecentCharacterList(
const OUString& rChar,
const OUString& rFont);
169 void getFavCharacterList();
170 void updateFavCharacterList(
const OUString& rChar,
const OUString& rFont);
171 void deleteFavCharacterFromList(std::u16string_view rChar, std::u16string_view rFont);
172 bool isFavChar(std::u16string_view sTitle, std::u16string_view rFont);
174 void updateRecentCharControl();
175 void insertCharToDoc(
const OUString& sChar);
177 void updateFavCharControl();
178 void setFavButtonState(std::u16string_view sTitle, std::u16string_view rFont);
180 void setCharName(
sal_UCS4 nDecimalValue);
182 void toggleSearchView(
bool state);
185 std::pair<std::deque<OUString>::const_iterator, std::deque<OUString>::const_iterator>
186 getRecentChar(std::u16string_view sTitle, std::u16string_view rFont)
const;
188 std::pair<std::deque<OUString>::const_iterator, std::deque<OUString>::const_iterator>
189 getFavChar(std::u16string_view sTitle, std::u16string_view rFont)
const;
Reference< XExecutableDialog > m_xDialog
FILE * init(int, char **)
The main purpose of this dialog is to enable the use of characters that are not easily accessible fro...
std::unique_ptr< SvxShowCharSet > m_xShowSet
DECL_DLLPRIVATE_LINK(InsertClickHdl, weld::Button &, void)
DECL_DLLPRIVATE_LINK(FavClickHdl, SvxShowCharSet *, void)
void set_title(const OUString &rTitle)
DECL_DLLPRIVATE_LINK(RecentClearClickHdl, SvxCharView *, void)
std::unique_ptr< weld::Label > m_xFontText
std::unique_ptr< weld::Entry > m_xDecimalCodeText
std::unique_ptr< weld::CustomWeld > m_xSearchSetArea
DECL_DLLPRIVATE_LINK(FavSelectHdl, weld::Button &, void)
DECL_DLLPRIVATE_LINK(SearchUpdateHdl, weld::Entry &, void)
std::deque< OUString > maRecentCharFontList
ScopedVclPtr< VirtualDevice > m_xVirDev
DECL_DLLPRIVATE_LINK(CharPreSelectHdl, SvxShowCharSet *, void)
DECL_DLLPRIVATE_LINK(FavClearAllClickHdl, SvxCharView *, void)
std::unique_ptr< weld::ComboBox > m_xFontLB
std::unique_ptr< weld::Entry > m_xHexCodeText
DECL_DLLPRIVATE_LINK(DecimalCodeChangeHdl, weld::Entry &, void)
DECL_DLLPRIVATE_LINK(SearchCharPreSelectHdl, SvxShowCharSet *, void)
DECL_DLLPRIVATE_LINK(CharSelectHdl, SvxShowCharSet *, void)
std::deque< OUString > maRecentCharList
std::unique_ptr< weld::Label > m_xCharName
DECL_DLLPRIVATE_LINK(SearchCharSelectHdl, SvxShowCharSet *, void)
const vcl::Font & GetCharFont() const
std::unique_ptr< weld::CustomWeld > m_xShowChar
std::unique_ptr< const SubsetMap > pSubsetMap
std::unique_ptr< SvxSearchCharSet > m_xSearchSet
DECL_DLLPRIVATE_LINK(SubsetSelectHdl, weld::ComboBox &, void)
DECL_DLLPRIVATE_LINK(RecentClearAllClickHdl, SvxCharView *, void)
DECL_DLLPRIVATE_LINK(HexCodeChangeHdl, weld::Entry &, void)
std::unique_ptr< weld::ComboBox > m_xSubsetLB
std::unique_ptr< weld::Button > m_xOKBtn
std::unique_ptr< weld::Widget > m_xRecentGrid
DECL_DLLPRIVATE_LINK(FavClearClickHdl, SvxCharView *, void)
std::unique_ptr< weld::CustomWeld > m_xShowSetArea
std::unique_ptr< weld::Widget > m_xFavGrid
const SfxItemSet * GetOutputItemSet() const
DECL_DLLPRIVATE_LINK(FontSelectHdl, weld::ComboBox &, void)
std::deque< OUString > maFavCharList
DECL_DLLPRIVATE_LINK(SearchCharDoubleClickHdl, SvxShowCharSet *, void)
css::uno::Reference< css::frame::XFrame > m_xFrame
std::unique_ptr< weld::Entry > m_xSearchText
DECL_DLLPRIVATE_LINK(SearchCharHighlightHdl, SvxShowCharSet *, void)
std::unique_ptr< weld::Button > m_xFavouritesBtn
std::unique_ptr< weld::Label > m_xSubsetText
DECL_DLLPRIVATE_LINK(CharClickHdl, SvxCharView *, void)
std::unique_ptr< SfxAllItemSet > m_xOutputSet
DECL_DLLPRIVATE_LINK(SearchFieldGetFocusHdl, weld::Widget &, void)
std::deque< OUString > maFavCharFontList
DECL_DLLPRIVATE_LINK(CharDoubleClickHdl, SvxShowCharSet *, void)
DECL_DLLPRIVATE_LINK(CharHighlightHdl, SvxShowCharSet *, void)
Provides the show characters or texts in a drawing area with special sizes and fonts.
Size get_preferred_size() const
ScopedVclPtr< VirtualDevice > m_xVirDev
vcl::Font const & GetFont() const
OUString const & GetText() const
void SetCentered(bool bCenter)
virtual void SetText(const OUString &rStr) override
def run(arg=None, arg2=-1)