LibreOffice Module cui (master) 1
Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
SvxCharacterMap Class Referencefinal

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>

Inheritance diagram for SvxCharacterMap:
[legend]
Collaboration diagram for SvxCharacterMap:
[legend]

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 SfxItemSetGetOutputItemSet () const
 
void DisableFontSelection ()
 
const vcl::FontGetCharFont () 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)
 
- 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)
 

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)
 

Private Attributes

ScopedVclPtr< VirtualDevicem_xVirDev
 
vcl::Font aFont
 
std::unique_ptr< const SubsetMappSubsetMap
 
bool isSearchMode
 
css::uno::Reference< css::frame::XFrame > m_xFrame
 
std::deque< OUString > maRecentCharList
 
std::deque< OUString > maRecentCharFontList
 
std::deque< OUString > maFavCharList
 
std::deque< OUString > maFavCharFontList
 
SvxCharView m_aRecentCharView [16]
 
SvxCharView m_aFavCharView [16]
 
SvxShowText m_aShowChar
 
std::unique_ptr< weld::Buttonm_xOKBtn
 
std::unique_ptr< weld::Labelm_xFontText
 
std::unique_ptr< weld::ComboBoxm_xFontLB
 
std::unique_ptr< weld::Labelm_xSubsetText
 
std::unique_ptr< weld::ComboBoxm_xSubsetLB
 
std::unique_ptr< weld::Entrym_xSearchText
 
std::unique_ptr< weld::Entrym_xHexCodeText
 
std::unique_ptr< weld::Entrym_xDecimalCodeText
 
std::unique_ptr< weld::Buttonm_xFavouritesBtn
 
std::unique_ptr< weld::Labelm_xCharName
 
std::unique_ptr< weld::Widgetm_xRecentGrid
 
std::unique_ptr< weld::Widgetm_xFavGrid
 
std::unique_ptr< weld::CustomWeldm_xShowChar
 
std::unique_ptr< weld::CustomWeldm_xRecentCharView [16]
 
std::unique_ptr< weld::CustomWeldm_xFavCharView [16]
 
std::unique_ptr< SvxShowCharSetm_xShowSet
 
std::unique_ptr< weld::CustomWeldm_xShowSetArea
 
std::unique_ptr< SvxSearchCharSetm_xSearchSet
 
std::unique_ptr< weld::CustomWeldm_xSearchSetArea
 
std::unique_ptr< SfxAllItemSetm_xOutputSet
 

Detailed Description

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.

Member Enumeration Documentation

◆ Radix

enum class SvxCharacterMap::Radix : sal_Int16
strongprivate
Enumerator
decimal 
hexadecimal 

Definition at line 117 of file cuicharmap.hxx.

Constructor & Destructor Documentation

◆ SvxCharacterMap()

SvxCharacterMap::SvxCharacterMap ( weld::Widget pParent,
const SfxItemSet pSet,
css::uno::Reference< css::frame::XFrame >  xFrame 
)

Member Function Documentation

◆ DECL_DLLPRIVATE_LINK() [1/20]

SvxCharacterMap::DECL_DLLPRIVATE_LINK ( CharClickHdl  ,
SvxCharView ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [2/20]

SvxCharacterMap::DECL_DLLPRIVATE_LINK ( CharDoubleClickHdl  ,
SvxShowCharSet ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [3/20]

SvxCharacterMap::DECL_DLLPRIVATE_LINK ( CharHighlightHdl  ,
SvxShowCharSet ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [4/20]

SvxCharacterMap::DECL_DLLPRIVATE_LINK ( CharPreSelectHdl  ,
SvxShowCharSet ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [5/20]

SvxCharacterMap::DECL_DLLPRIVATE_LINK ( CharSelectHdl  ,
SvxShowCharSet ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [6/20]

SvxCharacterMap::DECL_DLLPRIVATE_LINK ( DecimalCodeChangeHdl  ,
weld::Entry ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [7/20]

SvxCharacterMap::DECL_DLLPRIVATE_LINK ( FavClearAllClickHdl  ,
SvxCharView ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [8/20]

SvxCharacterMap::DECL_DLLPRIVATE_LINK ( FavClearClickHdl  ,
SvxCharView ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [9/20]

SvxCharacterMap::DECL_DLLPRIVATE_LINK ( FavClickHdl  ,
SvxShowCharSet ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [10/20]

SvxCharacterMap::DECL_DLLPRIVATE_LINK ( FavSelectHdl  ,
weld::Button ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [11/20]

SvxCharacterMap::DECL_DLLPRIVATE_LINK ( FontSelectHdl  ,
weld::ComboBox ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [12/20]

SvxCharacterMap::DECL_DLLPRIVATE_LINK ( HexCodeChangeHdl  ,
weld::Entry ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [13/20]

SvxCharacterMap::DECL_DLLPRIVATE_LINK ( InsertClickHdl  ,
weld::Button ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [14/20]

SvxCharacterMap::DECL_DLLPRIVATE_LINK ( RecentClearAllClickHdl  ,
SvxCharView ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [15/20]

SvxCharacterMap::DECL_DLLPRIVATE_LINK ( RecentClearClickHdl  ,
SvxCharView ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [16/20]

SvxCharacterMap::DECL_DLLPRIVATE_LINK ( ReturnKeypressOnCharHdl  ,
SvxShowCharSet ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [17/20]

SvxCharacterMap::DECL_DLLPRIVATE_LINK ( SearchCharHighlightHdl  ,
SvxShowCharSet ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [18/20]

SvxCharacterMap::DECL_DLLPRIVATE_LINK ( SearchFieldGetFocusHdl  ,
weld::Widget ,
void   
)
private

References run().

◆ DECL_DLLPRIVATE_LINK() [19/20]

SvxCharacterMap::DECL_DLLPRIVATE_LINK ( SearchUpdateHdl  ,
weld::Entry ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [20/20]

SvxCharacterMap::DECL_DLLPRIVATE_LINK ( SubsetSelectHdl  ,
weld::ComboBox ,
void   
)
private

◆ deleteFavCharacterFromList()

void SvxCharacterMap::deleteFavCharacterFromList ( std::u16string_view  rChar,
std::u16string_view  rFont 
)

◆ DisableFontSelection()

void SvxCharacterMap::DisableFontSelection ( )

◆ fillAllSubsets()

void SvxCharacterMap::fillAllSubsets ( weld::ComboBox rListBox)
staticprivate

Definition at line 638 of file cuicharmap.cxx.

References aEntries, SubsetMap::GetSubsetMap(), and weld::ComboBox::insert_vector().

Referenced by SvxCharacterMap().

◆ GetChar()

sal_UCS4 SvxCharacterMap::GetChar ( ) const

◆ GetCharFont()

const vcl::Font & SvxCharacterMap::GetCharFont ( ) const
inline

Definition at line 161 of file cuicharmap.hxx.

Referenced by IMPL_LINK_NOARG(), and SvxCharacterMap().

◆ getFavChar()

std::pair< std::deque< OUString >::const_iterator, std::deque< OUString >::const_iterator > SvxCharacterMap::getFavChar ( std::u16string_view  sTitle,
std::u16string_view  rFont 
) const
private

◆ getFavCharacterList()

void SvxCharacterMap::getFavCharacterList ( )

Definition at line 249 of file cuicharmap.cxx.

References maFavCharFontList, and maFavCharList.

Referenced by init().

◆ GetOutputItemSet()

const SfxItemSet * SvxCharacterMap::GetOutputItemSet ( ) const
inline

Definition at line 157 of file cuicharmap.hxx.

◆ getRecentChar()

std::pair< std::deque< OUString >::const_iterator, std::deque< OUString >::const_iterator > SvxCharacterMap::getRecentChar ( std::u16string_view  sTitle,
std::u16string_view  rFont 
) const
private

Definition at line 290 of file cuicharmap.cxx.

References findInPair(), maRecentCharFontList, and maRecentCharList.

Referenced by updateRecentCharacterList().

◆ getRecentCharacterList()

void SvxCharacterMap::getRecentCharacterList ( )

Definition at line 226 of file cuicharmap.cxx.

References maRecentCharFontList, and maRecentCharList.

Referenced by init().

◆ init()

void SvxCharacterMap::init ( )
private

◆ insertCharToDoc()

void SvxCharacterMap::insertCharToDoc ( const OUString &  sChar)

◆ insertSelectedCharacter()

void SvxCharacterMap::insertSelectedCharacter ( const SvxShowCharSet pCharSet)
private

◆ isFavChar()

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().

◆ run()

short SvxCharacterMap::run ( )
overridevirtual

◆ selectCharByCode()

void SvxCharacterMap::selectCharByCode ( Radix  radix)
private

◆ set_title()

void SvxCharacterMap::set_title ( const OUString &  rTitle)
inline

Definition at line 155 of file cuicharmap.hxx.

References m_xDialog.

◆ SetChar()

void SvxCharacterMap::SetChar ( sal_UCS4  c)

◆ SetCharFont()

void SvxCharacterMap::SetCharFont ( const vcl::Font rFont)

◆ setCharName()

void SvxCharacterMap::setCharName ( sal_UCS4  nDecimalValue)

Definition at line 744 of file cuicharmap.cxx.

References m_xCharName.

Referenced by init().

◆ setFavButtonState()

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().

◆ toggleSearchView()

void SvxCharacterMap::toggleSearchView ( bool  state)

◆ updateFavCharacterList()

void SvxCharacterMap::updateFavCharacterList ( const OUString &  rChar,
const OUString &  rFont 
)

◆ updateFavCharControl()

void SvxCharacterMap::updateFavCharControl ( )

◆ updateRecentCharacterList()

void SvxCharacterMap::updateRecentCharacterList ( const OUString &  rChar,
const OUString &  rFont 
)

◆ updateRecentCharControl()

void SvxCharacterMap::updateRecentCharControl ( )

Member Data Documentation

◆ aFont

vcl::Font SvxCharacterMap::aFont
private

Definition at line 82 of file cuicharmap.hxx.

Referenced by init(), insertCharToDoc(), insertSelectedCharacter(), SetChar(), and SetCharFont().

◆ isSearchMode

bool SvxCharacterMap::isSearchMode
private

Definition at line 84 of file cuicharmap.hxx.

Referenced by toggleSearchView().

◆ m_aFavCharView

SvxCharView SvxCharacterMap::m_aFavCharView[16]
private

Definition at line 92 of file cuicharmap.hxx.

Referenced by init(), SvxCharacterMap(), and updateFavCharControl().

◆ m_aRecentCharView

SvxCharView SvxCharacterMap::m_aRecentCharView[16]
private

Definition at line 91 of file cuicharmap.hxx.

Referenced by init(), SvxCharacterMap(), and updateRecentCharControl().

◆ m_aShowChar

SvxShowText SvxCharacterMap::m_aShowChar
private

Definition at line 93 of file cuicharmap.hxx.

Referenced by GetChar(), init(), run(), selectCharByCode(), and SvxCharacterMap().

◆ m_xCharName

std::unique_ptr<weld::Label> SvxCharacterMap::m_xCharName
private

Definition at line 104 of file cuicharmap.hxx.

Referenced by selectCharByCode(), setCharName(), and SvxCharacterMap().

◆ m_xDecimalCodeText

std::unique_ptr<weld::Entry> SvxCharacterMap::m_xDecimalCodeText
private

Definition at line 102 of file cuicharmap.hxx.

Referenced by init(), selectCharByCode(), and toggleSearchView().

◆ m_xFavCharView

std::unique_ptr<weld::CustomWeld> SvxCharacterMap::m_xFavCharView[16]
private

Definition at line 109 of file cuicharmap.hxx.

◆ m_xFavGrid

std::unique_ptr<weld::Widget> SvxCharacterMap::m_xFavGrid
private

Definition at line 106 of file cuicharmap.hxx.

Referenced by SvxCharacterMap().

◆ m_xFavouritesBtn

std::unique_ptr<weld::Button> SvxCharacterMap::m_xFavouritesBtn
private

Definition at line 103 of file cuicharmap.hxx.

Referenced by init(), and setFavButtonState().

◆ m_xFontLB

std::unique_ptr<weld::ComboBox> SvxCharacterMap::m_xFontLB
private

Definition at line 97 of file cuicharmap.hxx.

Referenced by DisableFontSelection(), init(), SetCharFont(), and SvxCharacterMap().

◆ m_xFontText

std::unique_ptr<weld::Label> SvxCharacterMap::m_xFontText
private

Definition at line 96 of file cuicharmap.hxx.

Referenced by DisableFontSelection().

◆ m_xFrame

css::uno::Reference<css::frame::XFrame> SvxCharacterMap::m_xFrame
private

Definition at line 85 of file cuicharmap.hxx.

Referenced by init(), and insertCharToDoc().

◆ m_xHexCodeText

std::unique_ptr<weld::Entry> SvxCharacterMap::m_xHexCodeText
private

Definition at line 101 of file cuicharmap.hxx.

Referenced by init(), selectCharByCode(), SvxCharacterMap(), and toggleSearchView().

◆ m_xOKBtn

std::unique_ptr<weld::Button> SvxCharacterMap::m_xOKBtn
private

Definition at line 95 of file cuicharmap.hxx.

Referenced by init(), and run().

◆ m_xOutputSet

std::unique_ptr<SfxAllItemSet> SvxCharacterMap::m_xOutputSet
private

Definition at line 115 of file cuicharmap.hxx.

Referenced by insertCharToDoc(), and SvxCharacterMap().

◆ m_xRecentCharView

std::unique_ptr<weld::CustomWeld> SvxCharacterMap::m_xRecentCharView[16]
private

Definition at line 108 of file cuicharmap.hxx.

◆ m_xRecentGrid

std::unique_ptr<weld::Widget> SvxCharacterMap::m_xRecentGrid
private

Definition at line 105 of file cuicharmap.hxx.

Referenced by SvxCharacterMap().

◆ m_xSearchSet

std::unique_ptr<SvxSearchCharSet> SvxCharacterMap::m_xSearchSet
private

Definition at line 112 of file cuicharmap.hxx.

Referenced by init(), SvxCharacterMap(), toggleSearchView(), and updateFavCharControl().

◆ m_xSearchSetArea

std::unique_ptr<weld::CustomWeld> SvxCharacterMap::m_xSearchSetArea
private

Definition at line 113 of file cuicharmap.hxx.

◆ m_xSearchText

std::unique_ptr<weld::Entry> SvxCharacterMap::m_xSearchText
private

Definition at line 100 of file cuicharmap.hxx.

Referenced by init().

◆ m_xShowChar

std::unique_ptr<weld::CustomWeld> SvxCharacterMap::m_xShowChar
private

Definition at line 107 of file cuicharmap.hxx.

◆ m_xShowSet

std::unique_ptr<SvxShowCharSet> SvxCharacterMap::m_xShowSet
private

◆ m_xShowSetArea

std::unique_ptr<weld::CustomWeld> SvxCharacterMap::m_xShowSetArea
private

Definition at line 111 of file cuicharmap.hxx.

◆ m_xSubsetLB

std::unique_ptr<weld::ComboBox> SvxCharacterMap::m_xSubsetLB
private

Definition at line 99 of file cuicharmap.hxx.

Referenced by init(), SetCharFont(), SvxCharacterMap(), and toggleSearchView().

◆ m_xSubsetText

std::unique_ptr<weld::Label> SvxCharacterMap::m_xSubsetText
private

Definition at line 98 of file cuicharmap.hxx.

◆ m_xVirDev

ScopedVclPtr<VirtualDevice> SvxCharacterMap::m_xVirDev
private

Definition at line 81 of file cuicharmap.hxx.

Referenced by init(), and SetCharFont().

◆ maFavCharFontList

std::deque<OUString> SvxCharacterMap::maFavCharFontList
private

◆ maFavCharList

std::deque<OUString> SvxCharacterMap::maFavCharList
private

◆ maRecentCharFontList

std::deque<OUString> SvxCharacterMap::maRecentCharFontList
private

◆ maRecentCharList

std::deque<OUString> SvxCharacterMap::maRecentCharList
private

◆ pSubsetMap

std::unique_ptr<const SubsetMap> SvxCharacterMap::pSubsetMap
private

Definition at line 83 of file cuicharmap.hxx.


The documentation for this class was generated from the following files: