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 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
}
 

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 (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)
 
 DECL_DLLPRIVATE_LINK (UpdateFavHdl, void *, void)
 
void selectCharByCode (Radix radix)
 

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
 
SfxCharmapContainer m_aCharmapContents
 
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::CustomWeldm_xShowChar
 
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 109 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/17]

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

◆ DECL_DLLPRIVATE_LINK() [2/17]

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

◆ DECL_DLLPRIVATE_LINK() [3/17]

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

◆ DECL_DLLPRIVATE_LINK() [4/17]

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

◆ DECL_DLLPRIVATE_LINK() [5/17]

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

◆ DECL_DLLPRIVATE_LINK() [6/17]

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

◆ DECL_DLLPRIVATE_LINK() [7/17]

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

◆ DECL_DLLPRIVATE_LINK() [8/17]

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

◆ DECL_DLLPRIVATE_LINK() [9/17]

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

◆ DECL_DLLPRIVATE_LINK() [10/17]

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

◆ DECL_DLLPRIVATE_LINK() [11/17]

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

◆ DECL_DLLPRIVATE_LINK() [12/17]

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

◆ DECL_DLLPRIVATE_LINK() [13/17]

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

◆ DECL_DLLPRIVATE_LINK() [14/17]

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

◆ DECL_DLLPRIVATE_LINK() [15/17]

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

◆ DECL_DLLPRIVATE_LINK() [16/17]

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

◆ DECL_DLLPRIVATE_LINK() [17/17]

SvxCharacterMap::DECL_DLLPRIVATE_LINK ( UpdateFavHdl  ,
void *  ,
void   
)
private

References run().

◆ DisableFontSelection()

void SvxCharacterMap::DisableFontSelection ( )

◆ fillAllSubsets()

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

Definition at line 324 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 150 of file cuicharmap.hxx.

Referenced by IMPL_LINK_NOARG(), and SvxCharacterMap().

◆ GetOutputItemSet()

const SfxItemSet * SvxCharacterMap::GetOutputItemSet ( ) const
inline

Definition at line 146 of file cuicharmap.hxx.

◆ init()

void SvxCharacterMap::init ( )
private

◆ insertCharToDoc()

void SvxCharacterMap::insertCharToDoc ( const OUString &  sChar)

◆ insertSelectedCharacter()

void SvxCharacterMap::insertSelectedCharacter ( const SvxShowCharSet pCharSet)
private

◆ 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 144 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 430 of file cuicharmap.cxx.

References m_xCharName.

Referenced by init().

◆ setFavButtonState()

void SvxCharacterMap::setFavButtonState ( std::u16string_view  sTitle,
std::u16string_view  rFont 
)

◆ toggleSearchView()

void SvxCharacterMap::toggleSearchView ( bool  state)

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_aCharmapContents

SfxCharmapContainer SvxCharacterMap::m_aCharmapContents
private

Definition at line 87 of file cuicharmap.hxx.

Referenced by init(), insertCharToDoc(), and setFavButtonState().

◆ m_aShowChar

SvxShowText SvxCharacterMap::m_aShowChar
private

Definition at line 89 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 100 of file cuicharmap.hxx.

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

◆ m_xDecimalCodeText

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

Definition at line 98 of file cuicharmap.hxx.

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

◆ m_xFavouritesBtn

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

Definition at line 99 of file cuicharmap.hxx.

Referenced by init(), and setFavButtonState().

◆ m_xFontLB

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

Definition at line 93 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 92 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 97 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 91 of file cuicharmap.hxx.

Referenced by init(), and run().

◆ m_xOutputSet

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

Definition at line 107 of file cuicharmap.hxx.

Referenced by insertCharToDoc(), and SvxCharacterMap().

◆ m_xSearchSet

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

Definition at line 104 of file cuicharmap.hxx.

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

◆ m_xSearchSetArea

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

Definition at line 105 of file cuicharmap.hxx.

◆ m_xSearchText

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

Definition at line 96 of file cuicharmap.hxx.

Referenced by init().

◆ m_xShowChar

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

Definition at line 101 of file cuicharmap.hxx.

◆ m_xShowSet

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

Definition at line 102 of file cuicharmap.hxx.

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

◆ m_xShowSetArea

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

Definition at line 103 of file cuicharmap.hxx.

◆ m_xSubsetLB

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

Definition at line 95 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 94 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().

◆ 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: