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, const css::uno::Reference< css::frame::XFrame > &rFrame) | |
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 (const OUString &rChar, const OUString &rFont) |
bool | isFavChar (const OUString &sTitle, const OUString &rFont) |
void | updateRecentCharControl () |
void | insertCharToDoc (const OUString &sChar) |
void | updateFavCharControl () |
void | setFavButtonState (const OUString &sTitle, const OUString &rFont) |
void | setCharName (sal_UCS4 nDecimalValue) |
void | toggleSearchView (bool state) |
![]() | |
SfxDialogController (weld::Widget *pParent, const OUString &rUIFile, const OString &rDialogId) | |
virtual void | Activate () |
virtual void | Deactivate () |
virtual void | ChildWinDispose () |
virtual void | Close () |
virtual void | EndDialog () |
Private Types | |
enum | Radix : sal_Int16 { Radix::decimal = 10, Radix::hexadecimal = 16 } |
Private Member Functions | |
void | init () |
DECL_LINK (FontSelectHdl, weld::ComboBox &, void) | |
DECL_LINK (SubsetSelectHdl, weld::ComboBox &, void) | |
DECL_LINK (CharDoubleClickHdl, SvxShowCharSet *, void) | |
DECL_LINK (CharSelectHdl, SvxShowCharSet *, void) | |
DECL_LINK (CharHighlightHdl, SvxShowCharSet *, void) | |
DECL_LINK (CharPreSelectHdl, SvxShowCharSet *, void) | |
DECL_LINK (FavClickHdl, SvxShowCharSet *, void) | |
DECL_LINK (SearchCharDoubleClickHdl, SvxShowCharSet *, void) | |
DECL_LINK (SearchCharSelectHdl, SvxShowCharSet *, void) | |
DECL_LINK (SearchCharHighlightHdl, SvxShowCharSet *, void) | |
DECL_LINK (SearchCharPreSelectHdl, SvxShowCharSet *, void) | |
DECL_LINK (DecimalCodeChangeHdl, weld::Entry &, void) | |
DECL_LINK (HexCodeChangeHdl, weld::Entry &, void) | |
DECL_LINK (CharClickHdl, SvxCharView *, void) | |
DECL_LINK (RecentClearClickHdl, SvxCharView *, void) | |
DECL_LINK (FavClearClickHdl, SvxCharView *, void) | |
DECL_LINK (RecentClearAllClickHdl, SvxCharView *, void) | |
DECL_LINK (FavClearAllClickHdl, SvxCharView *, void) | |
DECL_LINK (InsertClickHdl, weld::Button &, void) | |
DECL_LINK (FavSelectHdl, weld::Button &, void) | |
DECL_LINK (SearchUpdateHdl, weld::Entry &, void) | |
DECL_LINK (SearchFieldGetFocusHdl, weld::Widget &, void) | |
void | selectCharByCode (Radix radix) |
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 72 of file cuicharmap.hxx.
|
strongprivate |
Enumerator | |
---|---|
decimal | |
hexadecimal |
Definition at line 114 of file cuicharmap.hxx.
SvxCharacterMap::SvxCharacterMap | ( | weld::Widget * | pParent, |
const SfxItemSet * | pSet, | ||
const css::uno::Reference< css::frame::XFrame > & | rFrame | ||
) |
Definition at line 51 of file cuicharmap.cxx.
References Create(), getProcessComponentContext(), m_xFrame, m_xVirDev, and mxContext.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
void SvxCharacterMap::deleteFavCharacterFromList | ( | const OUString & | rChar, |
const OUString & | rFont | ||
) |
Definition at line 383 of file cuicharmap.cxx.
References comphelper::ConfigurationChanges::create(), i, maFavCharFontList, maFavCharList, and mxContext.
void SvxCharacterMap::DisableFontSelection | ( | ) |
Definition at line 216 of file cuicharmap.cxx.
References m_xFontLB, and m_xFontText.
Referenced by GetSpecialCharsForEdit(), IMPL_LINK(), and SvxCharTwoLinesPage::SelectCharacter().
|
staticprivate |
Definition at line 596 of file cuicharmap.cxx.
References aEntries, SubsetMap::GetSubsetMap(), and weld::ComboBox::insert_vector().
sal_UCS4 SvxCharacterMap::GetChar | ( | ) | const |
Definition at line 211 of file cuicharmap.cxx.
References SvxShowText::GetText(), m_aShowChar, and o3tl::temporary().
Referenced by GetSpecialCharsForEdit(), IMPL_LINK(), IMPL_LINK_NOARG(), and SvxCharTwoLinesPage::SelectCharacter().
|
inline |
Definition at line 157 of file cuicharmap.hxx.
Referenced by IMPL_LINK_NOARG().
void SvxCharacterMap::getFavCharacterList | ( | ) |
Definition at line 241 of file cuicharmap.cxx.
References maFavCharFontList, and maFavCharList.
Referenced by init().
|
inline |
Definition at line 153 of file cuicharmap.hxx.
void SvxCharacterMap::getRecentCharacterList | ( | ) |
Definition at line 223 of file cuicharmap.cxx.
References maRecentCharFontList, and maRecentCharList.
Referenced by init().
|
private |
Definition at line 411 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().
void SvxCharacterMap::insertCharToDoc | ( | const OUString & | sChar | ) |
Definition at line 605 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, o3tl::temporary(), and updateRecentCharacterList().
bool SvxCharacterMap::isFavChar | ( | const OUString & | sTitle, |
const OUString & | rFont | ||
) |
Definition at line 532 of file cuicharmap.cxx.
References a, maFavCharFontList, and maFavCharList.
Referenced by setFavButtonState().
|
overridevirtual |
Definition at line 184 of file cuicharmap.cxx.
References vcl::Font::GetFamilyName(), SvxShowText::GetFont(), SvxShowCharSet::getSelectedChar(), m_aShowChar, m_xOKBtn, m_xShowSet, setFavButtonState(), and SvxShowText::SetText().
Referenced by GetSpecialCharsForEdit(), IMPL_LINK(), IMPL_LINK_NOARG(), and SvxCharTwoLinesPage::SelectCharacter().
Definition at line 1031 of file cuicharmap.cxx.
References CuiResId(), decimal, FontCharMap::HasChar(), hexadecimal, m_aShowChar, m_xCharName, m_xDecimalCodeText, m_xHexCodeText, m_xShowSet, SetChar(), and SvxShowText::SetText().
|
inline |
Definition at line 205 of file cuicharmap.cxx.
References aFont, vcl::Font::GetFamilyName(), m_xShowSet, and setFavButtonState().
Referenced by IMPL_LINK(), IMPL_LINK_NOARG(), and selectCharByCode().
Definition at line 573 of file cuicharmap.cxx.
References aFont, m_xFontLB, m_xSubsetLB, m_xVirDev, and vcl::Font::SetFamilyName().
Referenced by GetSpecialCharsForEdit(), IMPL_LINK(), and IMPL_LINK_NOARG().
void SvxCharacterMap::setFavButtonState | ( | const OUString & | sTitle, |
const OUString & | rFont | ||
) |
Definition at line 547 of file cuicharmap.cxx.
References CuiResId(), isFavChar(), m_xFavouritesBtn, and maFavCharList.
void SvxCharacterMap::toggleSearchView | ( | bool | state | ) |
Definition at line 685 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 322 of file cuicharmap.cxx.
References comphelper::ConfigurationChanges::create(), i, maFavCharFontList, maFavCharList, and mxContext.
void SvxCharacterMap::updateFavCharControl | ( | ) |
Definition at line 360 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 282 of file cuicharmap.cxx.
References comphelper::ConfigurationChanges::create(), i, maRecentCharFontList, maRecentCharList, mxContext, and updateRecentCharControl().
Referenced by insertCharToDoc().
void SvxCharacterMap::updateRecentCharControl | ( | ) |
Definition at line 261 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 78 of file cuicharmap.hxx.
Referenced by init(), insertCharToDoc(), SetChar(), and SetCharFont().
|
private |
Definition at line 80 of file cuicharmap.hxx.
Referenced by toggleSearchView().
|
private |
Definition at line 89 of file cuicharmap.hxx.
Referenced by init(), and updateFavCharControl().
|
private |
Definition at line 88 of file cuicharmap.hxx.
Referenced by init(), and updateRecentCharControl().
|
private |
Definition at line 90 of file cuicharmap.hxx.
Referenced by GetChar(), init(), run(), and selectCharByCode().
|
private |
Definition at line 101 of file cuicharmap.hxx.
Referenced by selectCharByCode(), and setCharName().
|
private |
Definition at line 99 of file cuicharmap.hxx.
Referenced by init(), selectCharByCode(), and toggleSearchView().
|
private |
Definition at line 106 of file cuicharmap.hxx.
|
private |
Definition at line 103 of file cuicharmap.hxx.
|
private |
Definition at line 100 of file cuicharmap.hxx.
Referenced by init(), and setFavButtonState().
|
private |
Definition at line 94 of file cuicharmap.hxx.
Referenced by DisableFontSelection(), init(), and SetCharFont().
|
private |
Definition at line 93 of file cuicharmap.hxx.
Referenced by DisableFontSelection().
|
private |
Definition at line 81 of file cuicharmap.hxx.
Referenced by init(), and insertCharToDoc().
|
private |
Definition at line 98 of file cuicharmap.hxx.
Referenced by init(), selectCharByCode(), and toggleSearchView().
|
private |
Definition at line 92 of file cuicharmap.hxx.
|
private |
Definition at line 112 of file cuicharmap.hxx.
Referenced by insertCharToDoc().
|
private |
Definition at line 105 of file cuicharmap.hxx.
|
private |
Definition at line 102 of file cuicharmap.hxx.
|
private |
Definition at line 109 of file cuicharmap.hxx.
Referenced by init(), toggleSearchView(), and updateFavCharControl().
|
private |
Definition at line 110 of file cuicharmap.hxx.
|
private |
Definition at line 97 of file cuicharmap.hxx.
Referenced by init().
|
private |
Definition at line 104 of file cuicharmap.hxx.
|
private |
Definition at line 107 of file cuicharmap.hxx.
Referenced by init(), run(), selectCharByCode(), SetChar(), toggleSearchView(), and updateFavCharControl().
|
private |
Definition at line 108 of file cuicharmap.hxx.
|
private |
Definition at line 96 of file cuicharmap.hxx.
Referenced by init(), SetCharFont(), and toggleSearchView().
|
private |
Definition at line 95 of file cuicharmap.hxx.
|
private |
Definition at line 77 of file cuicharmap.hxx.
Referenced by init(), SetCharFont(), and SvxCharacterMap().
|
private |
Definition at line 85 of file cuicharmap.hxx.
Referenced by deleteFavCharacterFromList(), getFavCharacterList(), isFavChar(), updateFavCharacterList(), and updateFavCharControl().
|
private |
Definition at line 84 of file cuicharmap.hxx.
Referenced by deleteFavCharacterFromList(), getFavCharacterList(), isFavChar(), setFavButtonState(), updateFavCharacterList(), and updateFavCharControl().
|
private |
Definition at line 83 of file cuicharmap.hxx.
Referenced by getRecentCharacterList(), updateRecentCharacterList(), and updateRecentCharControl().
|
private |
Definition at line 82 of file cuicharmap.hxx.
Referenced by getRecentCharacterList(), updateRecentCharacterList(), and updateRecentCharControl().
|
private |
Definition at line 86 of file cuicharmap.hxx.
Referenced by deleteFavCharacterFromList(), updateFavCharacterList(), and updateRecentCharacterList().
|
private |
Definition at line 79 of file cuicharmap.hxx.