LibreOffice Module cui (master) 1
|
The main purpose of this dialog is to enable the use of characters that are not easily accessible from the keyboard. More...
#include <cuicharmap.hxx>
Public Member Functions | |
SvxCharacterMap (weld::Widget *pParent, const SfxItemSet *pSet, css::uno::Reference< css::frame::XFrame > xFrame) | |
virtual short | run () override |
void | set_title (const OUString &rTitle) |
const SfxItemSet * | GetOutputItemSet () const |
void | DisableFontSelection () |
const vcl::Font & | GetCharFont () const |
void | SetCharFont (const vcl::Font &rFont) |
void | SetChar (sal_UCS4) |
sal_UCS4 | GetChar () const |
void | getRecentCharacterList () |
void | updateRecentCharacterList (const OUString &rChar, const OUString &rFont) |
void | getFavCharacterList () |
void | updateFavCharacterList (const OUString &rChar, const OUString &rFont) |
void | deleteFavCharacterFromList (std::u16string_view rChar, std::u16string_view rFont) |
bool | isFavChar (std::u16string_view sTitle, std::u16string_view rFont) |
void | updateRecentCharControl () |
void | insertCharToDoc (const OUString &sChar) |
void | updateFavCharControl () |
void | setFavButtonState (std::u16string_view sTitle, std::u16string_view rFont) |
void | setCharName (sal_UCS4 nDecimalValue) |
void | toggleSearchView (bool state) |
![]() | |
SfxDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId) | |
virtual void | Activate () |
virtual void | Deactivate () |
virtual void | ChildWinDispose () |
virtual void | Close () |
virtual void | EndDialog (int nResponse) |
Private Types | |
enum class | Radix : sal_Int16 { decimal = 10 , hexadecimal = 16 } |
Private Member Functions | |
void | init () |
void | insertSelectedCharacter (const SvxShowCharSet *pCharSet) |
DECL_DLLPRIVATE_LINK (FontSelectHdl, weld::ComboBox &, void) | |
DECL_DLLPRIVATE_LINK (SubsetSelectHdl, weld::ComboBox &, void) | |
DECL_DLLPRIVATE_LINK (CharDoubleClickHdl, SvxShowCharSet *, void) | |
DECL_DLLPRIVATE_LINK (CharSelectHdl, SvxShowCharSet *, void) | |
DECL_DLLPRIVATE_LINK (CharHighlightHdl, SvxShowCharSet *, void) | |
DECL_DLLPRIVATE_LINK (CharPreSelectHdl, SvxShowCharSet *, void) | |
DECL_DLLPRIVATE_LINK (ReturnKeypressOnCharHdl, SvxShowCharSet *, void) | |
DECL_DLLPRIVATE_LINK (FavClickHdl, SvxShowCharSet *, void) | |
DECL_DLLPRIVATE_LINK (SearchCharHighlightHdl, SvxShowCharSet *, void) | |
DECL_DLLPRIVATE_LINK (DecimalCodeChangeHdl, weld::Entry &, void) | |
DECL_DLLPRIVATE_LINK (HexCodeChangeHdl, weld::Entry &, void) | |
DECL_DLLPRIVATE_LINK (CharClickHdl, SvxCharView *, void) | |
DECL_DLLPRIVATE_LINK (RecentClearClickHdl, SvxCharView *, void) | |
DECL_DLLPRIVATE_LINK (FavClearClickHdl, SvxCharView *, void) | |
DECL_DLLPRIVATE_LINK (RecentClearAllClickHdl, SvxCharView *, void) | |
DECL_DLLPRIVATE_LINK (FavClearAllClickHdl, SvxCharView *, void) | |
DECL_DLLPRIVATE_LINK (InsertClickHdl, weld::Button &, void) | |
DECL_DLLPRIVATE_LINK (FavSelectHdl, weld::Button &, void) | |
DECL_DLLPRIVATE_LINK (SearchUpdateHdl, weld::Entry &, void) | |
DECL_DLLPRIVATE_LINK (SearchFieldGetFocusHdl, weld::Widget &, void) | |
void | selectCharByCode (Radix radix) |
std::pair< std::deque< OUString >::const_iterator, std::deque< OUString >::const_iterator > | getRecentChar (std::u16string_view sTitle, std::u16string_view rFont) const |
std::pair< std::deque< OUString >::const_iterator, std::deque< OUString >::const_iterator > | getFavChar (std::u16string_view sTitle, std::u16string_view rFont) const |
Static Private Member Functions | |
static void | fillAllSubsets (weld::ComboBox &rListBox) |
The main purpose of this dialog is to enable the use of characters that are not easily accessible from the keyboard.
Definition at line 76 of file cuicharmap.hxx.
|
strongprivate |
Enumerator | |
---|---|
decimal | |
hexadecimal |
Definition at line 117 of file cuicharmap.hxx.
SvxCharacterMap::SvxCharacterMap | ( | weld::Widget * | pParent, |
const SfxItemSet * | pSet, | ||
css::uno::Reference< css::frame::XFrame > | xFrame | ||
) |
Definition at line 55 of file cuicharmap.cxx.
References Create(), DisableFontSelection(), fillAllSubsets(), SvxShowText::get_preferred_size(), GetCharFont(), SvxFontItem::GetCharSet(), SvxFontItem::GetFamilyName(), GetFontSize(), SvxFontItem::GetPitch(), SfxItemSet::GetPool(), SvxFontItem::GetStyleName(), CntInt32Item::GetValue(), CntUnencodedStringItem::GetValue(), SfxBoolItem::GetValue(), Height, init(), m_aFavCharView, m_aRecentCharView, m_aShowChar, m_xCharName, m_xFavGrid, m_xFontLB, m_xFrame, m_xHexCodeText, m_xOutputSet, m_xRecentGrid, m_xSearchSet, m_xShowSet, m_xSubsetLB, SvxShowText::SetCentered(), SetChar(), SetCharFont(), vcl::Font::SetCharSet(), vcl::Font::SetFamilyName(), vcl::Font::SetPitch(), SfxGetpApp(), Size::Width(), and xFrame.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
References run().
|
private |
|
private |
void SvxCharacterMap::deleteFavCharacterFromList | ( | std::u16string_view | rChar, |
std::u16string_view | rFont | ||
) |
Definition at line 428 of file cuicharmap.cxx.
References comphelper::ConfigurationChanges::create(), getFavChar(), i, maFavCharFontList, and maFavCharList.
void SvxCharacterMap::DisableFontSelection | ( | ) |
Definition at line 219 of file cuicharmap.cxx.
References m_xFontLB, and m_xFontText.
Referenced by GetSpecialCharsForEdit(), SvxCharTwoLinesPage::SelectCharacter(), and SvxCharacterMap().
|
staticprivate |
Definition at line 638 of file cuicharmap.cxx.
References aEntries, SubsetMap::GetSubsetMap(), and weld::ComboBox::insert_vector().
Referenced by SvxCharacterMap().
sal_UCS4 SvxCharacterMap::GetChar | ( | ) | const |
Definition at line 214 of file cuicharmap.cxx.
References SvxShowText::GetText(), m_aShowChar, and o3tl::temporary().
Referenced by GetSpecialCharsForEdit(), IMPL_LINK_NOARG(), and SvxCharTwoLinesPage::SelectCharacter().
|
inline |
Definition at line 161 of file cuicharmap.hxx.
Referenced by IMPL_LINK_NOARG(), and SvxCharacterMap().
|
private |
Definition at line 296 of file cuicharmap.cxx.
References findInPair(), maFavCharFontList, and maFavCharList.
Referenced by deleteFavCharacterFromList(), isFavChar(), and updateFavCharacterList().
void SvxCharacterMap::getFavCharacterList | ( | ) |
Definition at line 249 of file cuicharmap.cxx.
References maFavCharFontList, and maFavCharList.
Referenced by init().
|
inline |
Definition at line 157 of file cuicharmap.hxx.
|
private |
Definition at line 290 of file cuicharmap.cxx.
References findInPair(), maRecentCharFontList, and maRecentCharList.
Referenced by updateRecentCharacterList().
void SvxCharacterMap::getRecentCharacterList | ( | ) |
Definition at line 226 of file cuicharmap.cxx.
References maRecentCharFontList, and maRecentCharList.
Referenced by init().
|
private |
Definition at line 455 of file cuicharmap.cxx.
References aEntries, aFont, CuiResId(), FAMILY_DONTKNOW, vcl::Font::GetFamilyName(), getFavCharacterList(), getRecentCharacterList(), SvxShowCharSet::getSelectedChar(), i, LINK, m_aFavCharView, m_aRecentCharView, m_aShowChar, m_xDecimalCodeText, m_xFavouritesBtn, m_xFontLB, m_xFrame, m_xHexCodeText, m_xOKBtn, m_xSearchSet, m_xSearchText, m_xShowSet, m_xSubsetLB, m_xVirDev, nCount, nIndex, PITCH_DONTKNOW, setCharName(), vcl::Font::SetCharSet(), SvxCharView::setClearAllClickHdl(), SvxCharView::setClearClickHdl(), vcl::Font::SetFamily(), setFavButtonState(), SvxCharView::SetHasInsert(), SvxCharView::setMouseClickHdl(), vcl::Font::SetPitch(), SvxShowText::SetText(), vcl::Font::SetTransparent(), updateFavCharControl(), and updateRecentCharControl().
Referenced by SvxCharacterMap().
void SvxCharacterMap::insertCharToDoc | ( | const OUString & | sChar | ) |
Definition at line 647 of file cuicharmap.cxx.
References aFont, comphelper::dispatchCommand(), vcl::Font::GetCharSet(), vcl::Font::GetFamilyName(), vcl::Font::GetFamilyType(), vcl::Font::GetPitch(), vcl::Font::GetStyleName(), SfxItemPool::GetWhich(), m_xFrame, m_xOutputSet, comphelper::makePropertyValue(), o3tl::temporary(), and updateRecentCharacterList().
Referenced by insertSelectedCharacter().
|
private |
Definition at line 926 of file cuicharmap.cxx.
References aFont, vcl::Font::GetFamilyName(), SvxShowCharSet::GetSelectCharacter(), insertCharToDoc(), and setFavButtonState().
bool SvxCharacterMap::isFavChar | ( | std::u16string_view | sTitle, |
std::u16string_view | rFont | ||
) |
Definition at line 578 of file cuicharmap.cxx.
References getFavChar(), maFavCharFontList, and maFavCharList.
Referenced by setFavButtonState().
|
overridevirtual |
Definition at line 187 of file cuicharmap.cxx.
References vcl::Font::GetFamilyName(), SvxShowText::GetFont(), SvxShowCharSet::getSelectedChar(), m_aShowChar, m_xOKBtn, m_xShowSet, setFavButtonState(), SvxShowText::SetText(), and u.
Referenced by GetSpecialCharsForEdit(), IMPL_LINK_NOARG(), and SvxCharTwoLinesPage::SelectCharacter().
|
private |
Definition at line 1065 of file cuicharmap.cxx.
References CuiResId(), decimal, hexadecimal, m_aShowChar, m_xCharName, m_xDecimalCodeText, m_xHexCodeText, m_xShowSet, SetChar(), and SvxShowText::SetText().
|
inline |
Definition at line 155 of file cuicharmap.hxx.
References m_xDialog.
void SvxCharacterMap::SetChar | ( | sal_UCS4 | c | ) |
Definition at line 208 of file cuicharmap.cxx.
References aFont, vcl::Font::GetFamilyName(), m_xShowSet, and setFavButtonState().
Referenced by IMPL_LINK_NOARG(), selectCharByCode(), and SvxCharacterMap().
void SvxCharacterMap::SetCharFont | ( | const vcl::Font & | rFont | ) |
Definition at line 611 of file cuicharmap.cxx.
References aFont, vcl::Font::GetFamilyName(), m_xFontLB, m_xSubsetLB, m_xVirDev, nIndex, and vcl::Font::SetFamilyName().
Referenced by GetSpecialCharsForEdit(), IMPL_LINK_NOARG(), and SvxCharacterMap().
void SvxCharacterMap::setCharName | ( | sal_UCS4 | nDecimalValue | ) |
void SvxCharacterMap::setFavButtonState | ( | std::u16string_view | sTitle, |
std::u16string_view | rFont | ||
) |
Definition at line 585 of file cuicharmap.cxx.
References CuiResId(), isFavChar(), m_xFavouritesBtn, and maFavCharList.
Referenced by init(), insertSelectedCharacter(), run(), and SetChar().
void SvxCharacterMap::toggleSearchView | ( | bool | state | ) |
Definition at line 725 of file cuicharmap.cxx.
References isSearchMode, m_xDecimalCodeText, m_xHexCodeText, m_xSearchSet, m_xShowSet, and m_xSubsetLB.
void SvxCharacterMap::updateFavCharacterList | ( | const OUString & | rChar, |
const OUString & | rFont | ||
) |
Definition at line 364 of file cuicharmap.cxx.
References comphelper::ConfigurationChanges::create(), getFavChar(), i, maFavCharFontList, and maFavCharList.
void SvxCharacterMap::updateFavCharControl | ( | ) |
Definition at line 401 of file cuicharmap.cxx.
References SvxCharView::GetFont(), i, m_aFavCharView, m_xSearchSet, m_xShowSet, maFavCharFontList, maFavCharList, vcl::Font::SetFamilyName(), SvxCharView::SetFont(), and SvxCharView::SetText().
Referenced by init().
void SvxCharacterMap::updateRecentCharacterList | ( | const OUString & | rChar, |
const OUString & | rFont | ||
) |
Definition at line 325 of file cuicharmap.cxx.
References comphelper::ConfigurationChanges::create(), getRecentChar(), i, maRecentCharFontList, maRecentCharList, and updateRecentCharControl().
Referenced by insertCharToDoc().
void SvxCharacterMap::updateRecentCharControl | ( | ) |
Definition at line 302 of file cuicharmap.cxx.
References SvxCharView::GetFont(), i, m_aRecentCharView, maRecentCharFontList, maRecentCharList, vcl::Font::SetFamilyName(), SvxCharView::SetFont(), and SvxCharView::SetText().
Referenced by init(), and updateRecentCharacterList().
|
private |
Definition at line 82 of file cuicharmap.hxx.
Referenced by init(), insertCharToDoc(), insertSelectedCharacter(), SetChar(), and SetCharFont().
|
private |
Definition at line 84 of file cuicharmap.hxx.
Referenced by toggleSearchView().
|
private |
Definition at line 92 of file cuicharmap.hxx.
Referenced by init(), SvxCharacterMap(), and updateFavCharControl().
|
private |
Definition at line 91 of file cuicharmap.hxx.
Referenced by init(), SvxCharacterMap(), and updateRecentCharControl().
|
private |
Definition at line 93 of file cuicharmap.hxx.
Referenced by GetChar(), init(), run(), selectCharByCode(), and SvxCharacterMap().
|
private |
Definition at line 104 of file cuicharmap.hxx.
Referenced by selectCharByCode(), setCharName(), and SvxCharacterMap().
|
private |
Definition at line 102 of file cuicharmap.hxx.
Referenced by init(), selectCharByCode(), and toggleSearchView().
|
private |
Definition at line 109 of file cuicharmap.hxx.
|
private |
Definition at line 106 of file cuicharmap.hxx.
Referenced by SvxCharacterMap().
|
private |
Definition at line 103 of file cuicharmap.hxx.
Referenced by init(), and setFavButtonState().
|
private |
Definition at line 97 of file cuicharmap.hxx.
Referenced by DisableFontSelection(), init(), SetCharFont(), and SvxCharacterMap().
|
private |
Definition at line 96 of file cuicharmap.hxx.
Referenced by DisableFontSelection().
|
private |
Definition at line 85 of file cuicharmap.hxx.
Referenced by init(), and insertCharToDoc().
|
private |
Definition at line 101 of file cuicharmap.hxx.
Referenced by init(), selectCharByCode(), SvxCharacterMap(), and toggleSearchView().
|
private |
Definition at line 95 of file cuicharmap.hxx.
|
private |
Definition at line 115 of file cuicharmap.hxx.
Referenced by insertCharToDoc(), and SvxCharacterMap().
|
private |
Definition at line 108 of file cuicharmap.hxx.
|
private |
Definition at line 105 of file cuicharmap.hxx.
Referenced by SvxCharacterMap().
|
private |
Definition at line 112 of file cuicharmap.hxx.
Referenced by init(), SvxCharacterMap(), toggleSearchView(), and updateFavCharControl().
|
private |
Definition at line 113 of file cuicharmap.hxx.
|
private |
Definition at line 100 of file cuicharmap.hxx.
Referenced by init().
|
private |
Definition at line 107 of file cuicharmap.hxx.
|
private |
Definition at line 110 of file cuicharmap.hxx.
Referenced by init(), run(), selectCharByCode(), SetChar(), SvxCharacterMap(), toggleSearchView(), and updateFavCharControl().
|
private |
Definition at line 111 of file cuicharmap.hxx.
|
private |
Definition at line 99 of file cuicharmap.hxx.
Referenced by init(), SetCharFont(), SvxCharacterMap(), and toggleSearchView().
|
private |
Definition at line 98 of file cuicharmap.hxx.
|
private |
Definition at line 81 of file cuicharmap.hxx.
Referenced by init(), and SetCharFont().
|
private |
Definition at line 89 of file cuicharmap.hxx.
Referenced by deleteFavCharacterFromList(), getFavChar(), getFavCharacterList(), isFavChar(), updateFavCharacterList(), and updateFavCharControl().
|
private |
Definition at line 88 of file cuicharmap.hxx.
Referenced by deleteFavCharacterFromList(), getFavChar(), getFavCharacterList(), isFavChar(), setFavButtonState(), updateFavCharacterList(), and updateFavCharControl().
|
private |
Definition at line 87 of file cuicharmap.hxx.
Referenced by getRecentChar(), getRecentCharacterList(), updateRecentCharacterList(), and updateRecentCharControl().
|
private |
Definition at line 86 of file cuicharmap.hxx.
Referenced by getRecentChar(), getRecentCharacterList(), updateRecentCharacterList(), and updateRecentCharControl().
|
private |
Definition at line 83 of file cuicharmap.hxx.