LibreOffice Module svtools (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
FontNameBox Class Reference

#include <ctrlbox.hxx>

Collaboration diagram for FontNameBox:
[legend]

Public Member Functions

 FontNameBox (std::unique_ptr< weld::ComboBox > p)
 
 ~FontNameBox ()
 
void Fill (const FontList *pList)
 
void EnableWYSIWYG (bool bEnable)
 
bool IsWYSIWYGEnabled () const
 
void connect_changed (const Link< weld::ComboBox &, void > &rLink)
 
void connect_focus_in (const Link< weld::Widget &, void > &rLink)
 
void connect_focus_out (const Link< weld::Widget &, void > &rLink)
 
void connect_key_press (const Link< const KeyEvent &, bool > &rLink)
 
int get_active () const
 
OUString get_active_text () const
 
void set_active_or_entry_text (const OUString &rText)
 
void set_active (int nPos)
 
int get_count () const
 
OUString get_text (int nIndex) const
 
void set_sensitive (bool bSensitive)
 
void save_value ()
 
OUString const & get_saved_value () const
 
void select_entry_region (int nStartPos, int nEndPos)
 
bool get_entry_selection_bounds (int &rStartPos, int &rEndPos)
 
void clear ()
 
void grab_focus ()
 
bool has_focus () const
 
void connect_entry_activate (const Link< weld::ComboBox &, bool > &rLink)
 
void connect_get_property_tree (const Link< tools::JsonWriter &, void > &rLink)
 
void set_entry_width_chars (int nWidth)
 
void set_size_request (int nWidth, int nHeight)
 
int get_max_mru_count () const
 
void set_max_mru_count (int nCount)
 
void set_entry_font (const vcl::Font &rFont)
 
vcl::Font get_entry_font ()
 
void set_tooltip_text (const OUString &rTip)
 

Private Member Functions

SVT_DLLPRIVATE void ImplDestroyFontList ()
 
 DECL_DLLPRIVATE_LINK (CustomRenderHdl, weld::ComboBox::render_args, void)
 
 DECL_DLLPRIVATE_LINK (CustomGetSizeHdl, OutputDevice &, Size)
 
 DECL_DLLPRIVATE_LINK (SettingsChangedHdl, VclSimpleEvent &, void)
 
 DECL_DLLPRIVATE_LINK (UpdateHdl, Timer *, void)
 
void LoadMRUEntries (const OUString &aFontMRUEntriesFile)
 
void SaveMRUEntries (const OUString &aFontMRUEntriesFile) const
 
OutputDeviceCachePreview (size_t nIndex, Point *pTopLeft)
 
void InitFontMRUEntriesFile ()
 
 FontNameBox (const FontNameBox &)=delete
 
FontNameBoxoperator= (const FontNameBox &)=delete
 

Private Attributes

std::unique_ptr< weld::ComboBoxm_xComboBox
 
std::unique_ptr< ImplFontListmpFontList
 
size_t mnPreviewProgress
 
bool mbWYSIWYG
 
OUString maFontMRUEntriesFile
 
Idle maUpdateIdle
 

Detailed Description

Definition at line 323 of file ctrlbox.hxx.

Constructor & Destructor Documentation

◆ FontNameBox() [1/2]

FontNameBox::FontNameBox ( std::unique_ptr< weld::ComboBox p)

◆ ~FontNameBox()

FontNameBox::~FontNameBox ( )

◆ FontNameBox() [2/2]

FontNameBox::FontNameBox ( const FontNameBox )
privatedelete

Member Function Documentation

◆ CachePreview()

OutputDevice & FontNameBox::CachePreview ( size_t  nIndex,
Point pTopLeft 
)
private

◆ clear()

void FontNameBox::clear ( )
inline

Definition at line 369 of file ctrlbox.hxx.

◆ connect_changed()

void FontNameBox::connect_changed ( const Link< weld::ComboBox &, void > &  rLink)
inline

Definition at line 354 of file ctrlbox.hxx.

◆ connect_entry_activate()

void FontNameBox::connect_entry_activate ( const Link< weld::ComboBox &, bool > &  rLink)
inline

Definition at line 372 of file ctrlbox.hxx.

◆ connect_focus_in()

void FontNameBox::connect_focus_in ( const Link< weld::Widget &, void > &  rLink)
inline

Definition at line 355 of file ctrlbox.hxx.

◆ connect_focus_out()

void FontNameBox::connect_focus_out ( const Link< weld::Widget &, void > &  rLink)
inline

Definition at line 356 of file ctrlbox.hxx.

◆ connect_get_property_tree()

void FontNameBox::connect_get_property_tree ( const Link< tools::JsonWriter &, void > &  rLink)
inline

Definition at line 373 of file ctrlbox.hxx.

◆ connect_key_press()

void FontNameBox::connect_key_press ( const Link< const KeyEvent &, bool > &  rLink)
inline

Definition at line 357 of file ctrlbox.hxx.

◆ DECL_DLLPRIVATE_LINK() [1/4]

FontNameBox::DECL_DLLPRIVATE_LINK ( CustomGetSizeHdl  ,
OutputDevice ,
Size   
)
private

◆ DECL_DLLPRIVATE_LINK() [2/4]

FontNameBox::DECL_DLLPRIVATE_LINK ( CustomRenderHdl  ,
weld::ComboBox::render_args  ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [3/4]

FontNameBox::DECL_DLLPRIVATE_LINK ( SettingsChangedHdl  ,
VclSimpleEvent ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [4/4]

FontNameBox::DECL_DLLPRIVATE_LINK ( UpdateHdl  ,
Timer ,
void   
)
private

References Fill.

◆ EnableWYSIWYG()

void FontNameBox::EnableWYSIWYG ( bool  bEnable)

◆ Fill()

void FontNameBox::Fill ( const FontList pList)

◆ get_active()

int FontNameBox::get_active ( ) const
inline

Definition at line 358 of file ctrlbox.hxx.

◆ get_active_text()

OUString FontNameBox::get_active_text ( ) const
inline

Definition at line 359 of file ctrlbox.hxx.

◆ get_count()

int FontNameBox::get_count ( ) const
inline

Definition at line 362 of file ctrlbox.hxx.

◆ get_entry_font()

vcl::Font FontNameBox::get_entry_font ( )
inline

Definition at line 381 of file ctrlbox.hxx.

◆ get_entry_selection_bounds()

bool FontNameBox::get_entry_selection_bounds ( int rStartPos,
int rEndPos 
)
inline

Definition at line 368 of file ctrlbox.hxx.

◆ get_max_mru_count()

int FontNameBox::get_max_mru_count ( ) const
inline

Definition at line 376 of file ctrlbox.hxx.

◆ get_saved_value()

OUString const & FontNameBox::get_saved_value ( ) const
inline

Definition at line 366 of file ctrlbox.hxx.

◆ get_text()

OUString FontNameBox::get_text ( int  nIndex) const
inline

Definition at line 363 of file ctrlbox.hxx.

References nIndex.

◆ grab_focus()

void FontNameBox::grab_focus ( )
inline

Definition at line 370 of file ctrlbox.hxx.

◆ has_focus()

bool FontNameBox::has_focus ( ) const
inline

Definition at line 371 of file ctrlbox.hxx.

◆ ImplDestroyFontList()

void FontNameBox::ImplDestroyFontList ( )
private

Definition at line 461 of file ctrlbox.cxx.

References maUpdateIdle, mnPreviewProgress, mpFontList, and Task::Stop().

Referenced by Fill(), and ~FontNameBox().

◆ InitFontMRUEntriesFile()

void FontNameBox::InitFontMRUEntriesFile ( )
private

Definition at line 449 of file ctrlbox.cxx.

References FONTNAMEBOXMRUENTRIESFILE, maFontMRUEntriesFile, and SAL_CONFIGFILE.

Referenced by FontNameBox().

◆ IsWYSIWYGEnabled()

bool FontNameBox::IsWYSIWYGEnabled ( ) const
inline

Definition at line 352 of file ctrlbox.hxx.

◆ LoadMRUEntries()

void FontNameBox::LoadMRUEntries ( const OUString &  aFontMRUEntriesFile)
private

Definition at line 427 of file ctrlbox.cxx.

References aEntries, SvFileStream::IsOpen(), m_xComboBox, SvStream::ReadLine(), and SAL_INFO.

Referenced by Fill().

◆ operator=()

FontNameBox & FontNameBox::operator= ( const FontNameBox )
privatedelete

◆ save_value()

void FontNameBox::save_value ( )
inline

Definition at line 365 of file ctrlbox.hxx.

◆ SaveMRUEntries()

void FontNameBox::SaveMRUEntries ( const OUString &  aFontMRUEntriesFile) const
private

◆ select_entry_region()

void FontNameBox::select_entry_region ( int  nStartPos,
int  nEndPos 
)
inline

Definition at line 367 of file ctrlbox.hxx.

◆ set_active()

void FontNameBox::set_active ( int  nPos)
inline

Definition at line 361 of file ctrlbox.hxx.

References nPos.

◆ set_active_or_entry_text()

void FontNameBox::set_active_or_entry_text ( const OUString &  rText)

Definition at line 826 of file ctrlbox.cxx.

References m_xComboBox.

Referenced by Fill().

◆ set_entry_font()

void FontNameBox::set_entry_font ( const vcl::Font rFont)
inline

Definition at line 380 of file ctrlbox.hxx.

◆ set_entry_width_chars()

void FontNameBox::set_entry_width_chars ( int  nWidth)
inline

Definition at line 374 of file ctrlbox.hxx.

◆ set_max_mru_count()

void FontNameBox::set_max_mru_count ( int  nCount)
inline

Definition at line 377 of file ctrlbox.hxx.

References nCount.

◆ set_sensitive()

void FontNameBox::set_sensitive ( bool  bSensitive)
inline

Definition at line 364 of file ctrlbox.hxx.

◆ set_size_request()

void FontNameBox::set_size_request ( int  nWidth,
int  nHeight 
)
inline

Definition at line 375 of file ctrlbox.hxx.

◆ set_tooltip_text()

void FontNameBox::set_tooltip_text ( const OUString &  rTip)
inline

Definition at line 383 of file ctrlbox.hxx.

Member Data Documentation

◆ m_xComboBox

std::unique_ptr<weld::ComboBox> FontNameBox::m_xComboBox
private

◆ maFontMRUEntriesFile

OUString FontNameBox::maFontMRUEntriesFile
private

Definition at line 330 of file ctrlbox.hxx.

Referenced by Fill(), InitFontMRUEntriesFile(), and ~FontNameBox().

◆ maUpdateIdle

Idle FontNameBox::maUpdateIdle
private

Definition at line 331 of file ctrlbox.hxx.

Referenced by Fill(), FontNameBox(), and ImplDestroyFontList().

◆ mbWYSIWYG

bool FontNameBox::mbWYSIWYG
private

Definition at line 329 of file ctrlbox.hxx.

Referenced by EnableWYSIWYG(), and Fill().

◆ mnPreviewProgress

size_t FontNameBox::mnPreviewProgress
private

Definition at line 328 of file ctrlbox.hxx.

Referenced by Fill(), and ImplDestroyFontList().

◆ mpFontList

std::unique_ptr<ImplFontList> FontNameBox::mpFontList
private

Definition at line 327 of file ctrlbox.hxx.

Referenced by Fill(), ImplDestroyFontList(), and ~FontNameBox().


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