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 | insertCharToDoc (const OUString &sChar) |
void | setFavButtonState (std::u16string_view sTitle, std::u16string_view rFont) |
void | setCharName (sal_UCS4 nDecimalValue) |
void | toggleSearchView (bool state) |
Public Member Functions inherited from SfxDialogController | |
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) |
virtual bool | CloseOnHide () const |
Private Types | |
enum class | Radix : sal_Int16 { decimal = 10 , hexadecimal = 16 } |
Static Private Member Functions | |
static void | fillAllSubsets (weld::ComboBox &rListBox) |
Private Attributes | |
ScopedVclPtr< VirtualDevice > | m_xVirDev |
vcl::Font | aFont |
std::unique_ptr< const SubsetMap > | pSubsetMap |
bool | isSearchMode |
css::uno::Reference< css::frame::XFrame > | m_xFrame |
SfxCharmapContainer | m_aCharmapContents |
SvxShowText | m_aShowChar |
std::unique_ptr< weld::Button > | m_xOKBtn |
std::unique_ptr< weld::Label > | m_xFontText |
std::unique_ptr< weld::ComboBox > | m_xFontLB |
std::unique_ptr< weld::Label > | m_xSubsetText |
std::unique_ptr< weld::ComboBox > | m_xSubsetLB |
std::unique_ptr< weld::Entry > | m_xSearchText |
std::unique_ptr< weld::Entry > | m_xHexCodeText |
std::unique_ptr< weld::Entry > | m_xDecimalCodeText |
std::unique_ptr< weld::Button > | m_xFavouritesBtn |
std::unique_ptr< weld::Label > | m_xCharName |
std::unique_ptr< weld::CustomWeld > | m_xShowChar |
std::unique_ptr< SvxShowCharSet > | m_xShowSet |
std::unique_ptr< weld::CustomWeld > | m_xShowSetArea |
std::unique_ptr< SvxSearchCharSet > | m_xSearchSet |
std::unique_ptr< weld::CustomWeld > | m_xSearchSetArea |
std::unique_ptr< SfxAllItemSet > | m_xOutputSet |
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 109 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(), init(), m_aShowChar, m_xCharName, m_xFontLB, m_xFrame, m_xHexCodeText, m_xOutputSet, 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 |
References run().
void SvxCharacterMap::DisableFontSelection | ( | ) |
Definition at line 151 of file cuicharmap.cxx.
References m_xFontLB, and m_xFontText.
Referenced by GetSpecialCharsForEdit(), SvxCharTwoLinesPage::SelectCharacter(), and SvxCharacterMap().
|
staticprivate |
Definition at line 324 of file cuicharmap.cxx.
References aEntries, SubsetMap::GetSubsetMap(), and weld::ComboBox::insert_vector().
Referenced by SvxCharacterMap().
sal_UCS4 SvxCharacterMap::GetChar | ( | ) | const |
Definition at line 146 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 150 of file cuicharmap.hxx.
Referenced by IMPL_LINK_NOARG(), and SvxCharacterMap().
|
inline |
Definition at line 146 of file cuicharmap.hxx.
|
private |
Definition at line 165 of file cuicharmap.cxx.
References aEntries, aFont, CuiResId(), FAMILY_DONTKNOW, vcl::Font::GetFamilyName(), SvxShowCharSet::getSelectedChar(), i, SfxCharmapContainer::init(), LINK, m_aCharmapContents, 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(), vcl::Font::SetFamily(), setFavButtonState(), vcl::Font::SetPitch(), SvxShowText::SetText(), and vcl::Font::SetTransparent().
Referenced by SvxCharacterMap().
void SvxCharacterMap::insertCharToDoc | ( | const OUString & | sChar | ) |
Definition at line 333 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_aCharmapContents, m_xFrame, m_xOutputSet, comphelper::makePropertyValue(), o3tl::temporary(), and SfxCharmapContainer::updateRecentCharacterList().
Referenced by insertSelectedCharacter().
|
private |
Definition at line 548 of file cuicharmap.cxx.
References aFont, vcl::Font::GetFamilyName(), SvxShowCharSet::GetSelectCharacter(), insertCharToDoc(), and setFavButtonState().
|
overridevirtual |
Definition at line 119 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 687 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 144 of file cuicharmap.hxx.
References m_xDialog.
void SvxCharacterMap::SetChar | ( | sal_UCS4 | c | ) |
Definition at line 140 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 297 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 273 of file cuicharmap.cxx.
References CuiResId(), SfxCharmapContainer::FavCharListIsFull(), SfxCharmapContainer::isFavChar(), m_aCharmapContents, and m_xFavouritesBtn.
Referenced by init(), insertSelectedCharacter(), run(), and SetChar().
void SvxCharacterMap::toggleSearchView | ( | bool | state | ) |
Definition at line 411 of file cuicharmap.cxx.
References isSearchMode, m_xDecimalCodeText, m_xHexCodeText, m_xSearchSet, m_xShowSet, and m_xSubsetLB.
|
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 87 of file cuicharmap.hxx.
Referenced by init(), insertCharToDoc(), and setFavButtonState().
|
private |
Definition at line 89 of file cuicharmap.hxx.
Referenced by GetChar(), init(), run(), selectCharByCode(), and SvxCharacterMap().
|
private |
Definition at line 100 of file cuicharmap.hxx.
Referenced by selectCharByCode(), setCharName(), and SvxCharacterMap().
|
private |
Definition at line 98 of file cuicharmap.hxx.
Referenced by init(), selectCharByCode(), and toggleSearchView().
|
private |
Definition at line 99 of file cuicharmap.hxx.
Referenced by init(), and setFavButtonState().
|
private |
Definition at line 93 of file cuicharmap.hxx.
Referenced by DisableFontSelection(), init(), SetCharFont(), and SvxCharacterMap().
|
private |
Definition at line 92 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 97 of file cuicharmap.hxx.
Referenced by init(), selectCharByCode(), SvxCharacterMap(), and toggleSearchView().
|
private |
Definition at line 91 of file cuicharmap.hxx.
|
private |
Definition at line 107 of file cuicharmap.hxx.
Referenced by insertCharToDoc(), and SvxCharacterMap().
|
private |
Definition at line 104 of file cuicharmap.hxx.
Referenced by init(), SvxCharacterMap(), and toggleSearchView().
|
private |
Definition at line 105 of file cuicharmap.hxx.
|
private |
Definition at line 96 of file cuicharmap.hxx.
Referenced by init().
|
private |
Definition at line 101 of file cuicharmap.hxx.
|
private |
Definition at line 102 of file cuicharmap.hxx.
Referenced by init(), run(), selectCharByCode(), SetChar(), SvxCharacterMap(), and toggleSearchView().
|
private |
Definition at line 103 of file cuicharmap.hxx.
|
private |
Definition at line 95 of file cuicharmap.hxx.
Referenced by init(), SetCharFont(), SvxCharacterMap(), and toggleSearchView().
|
private |
Definition at line 94 of file cuicharmap.hxx.
|
private |
Definition at line 81 of file cuicharmap.hxx.
Referenced by init(), and SetCharFont().
|
private |
Definition at line 83 of file cuicharmap.hxx.