LibreOffice Module cui (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
cui::FontFeaturesDialog Class Reference

#include <FontFeaturesDialog.hxx>

Inheritance diagram for cui::FontFeaturesDialog:
[legend]
Collaboration diagram for cui::FontFeaturesDialog:
[legend]

Public Member Functions

 FontFeaturesDialog (weld::Window *pParent, OUString aFontName)
 
 ~FontFeaturesDialog () override
 
virtual short run () override
 
OUString const & getResultFontName () const
 
void updateFontPreview ()
 
- Public Member Functions inherited from weld::GenericDialogController
 GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId, bool bMobile=false)
 
virtual DialoggetDialog () override
 
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
 
- Public Member Functions inherited from weld::DialogController
virtual DialoggetDialog ()=0
 
const DialoggetConstDialog () const
 
virtual short run ()
 
void set_title (const OUString &rTitle)
 
OUString get_title () const
 
void set_help_id (const OUString &rHelpId)
 
OUString get_help_id () const
 
void response (int nResponse)
 
virtual ~DialogController () COVERITY_NOEXCEPT_FALSE
 

Private Member Functions

void initialize ()
 
OUString createFontNameWithFeatures ()
 
int fillGrid (std::vector< vcl::font::Feature > const &rFontFeatures)
 
 DECL_LINK (ComboBoxSelectedHdl, weld::ComboBox &, void)
 
 DECL_LINK (CheckBoxToggledHdl, weld::Toggleable &, void)
 

Private Attributes

std::vector< std::unique_ptr< FontFeatureItem > > m_aFeatureItems
 
OUString m_sFontName
 
OUString m_sResultFontName
 
SvxFontPrevWindow m_aPreviewWindow
 
std::unique_ptr< weld::ScrolledWindowm_xContentWindow
 
std::unique_ptr< weld::Containerm_xContentBox
 
std::unique_ptr< weld::Containerm_xContentGrid
 
std::unique_ptr< weld::Containerm_xStylisticSetsBox
 
std::unique_ptr< weld::Containerm_xStylisticSetsGrid
 
std::unique_ptr< weld::Containerm_xCharacterVariantsBox
 
std::unique_ptr< weld::Containerm_xCharacterVariantsGrid
 
std::unique_ptr< weld::CustomWeldm_xPreviewWindow
 

Additional Inherited Members

- Static Public Member Functions inherited from weld::DialogController
static bool runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &)
 
- Protected Attributes inherited from weld::GenericDialogController
std::unique_ptr< weld::Builderm_xBuilder
 
std::shared_ptr< weld::Dialogm_xDialog
 

Detailed Description

Definition at line 49 of file FontFeaturesDialog.hxx.

Constructor & Destructor Documentation

◆ FontFeaturesDialog()

cui::FontFeaturesDialog::FontFeaturesDialog ( weld::Window pParent,
OUString  aFontName 
)

Definition at line 22 of file FontFeaturesDialog.cxx.

References initialize().

◆ ~FontFeaturesDialog()

cui::FontFeaturesDialog::~FontFeaturesDialog ( )
override

Definition at line 37 of file FontFeaturesDialog.cxx.

Member Function Documentation

◆ createFontNameWithFeatures()

OUString cui::FontFeaturesDialog::createFontNameWithFeatures ( )
private

◆ DECL_LINK() [1/2]

cui::FontFeaturesDialog::DECL_LINK ( CheckBoxToggledHdl  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [2/2]

cui::FontFeaturesDialog::DECL_LINK ( ComboBoxSelectedHdl  ,
weld::ComboBox ,
void   
)
private

◆ fillGrid()

int cui::FontFeaturesDialog::fillGrid ( std::vector< vcl::font::Feature > const &  rFontFeatures)
private

◆ getResultFontName()

OUString const & cui::FontFeaturesDialog::getResultFontName ( ) const
inline

Definition at line 80 of file FontFeaturesDialog.hxx.

References m_sResultFontName.

Referenced by IMPL_LINK().

◆ initialize()

void cui::FontFeaturesDialog::initialize ( )
private

◆ run()

short cui::FontFeaturesDialog::run ( )
overridevirtual

Reimplemented from weld::DialogController.

Definition at line 262 of file FontFeaturesDialog.cxx.

References createFontNameWithFeatures(), m_sResultFontName, and RET_OK.

Referenced by IMPL_LINK().

◆ updateFontPreview()

void cui::FontFeaturesDialog::updateFontPreview ( )

Member Data Documentation

◆ m_aFeatureItems

std::vector<std::unique_ptr<FontFeatureItem> > cui::FontFeaturesDialog::m_aFeatureItems
private

Definition at line 52 of file FontFeaturesDialog.hxx.

Referenced by createFontNameWithFeatures(), and fillGrid().

◆ m_aPreviewWindow

SvxFontPrevWindow cui::FontFeaturesDialog::m_aPreviewWindow
private

Definition at line 56 of file FontFeaturesDialog.hxx.

Referenced by updateFontPreview().

◆ m_sFontName

OUString cui::FontFeaturesDialog::m_sFontName
private

Definition at line 53 of file FontFeaturesDialog.hxx.

Referenced by createFontNameWithFeatures(), fillGrid(), and initialize().

◆ m_sResultFontName

OUString cui::FontFeaturesDialog::m_sResultFontName
private

Definition at line 54 of file FontFeaturesDialog.hxx.

Referenced by getResultFontName(), and run().

◆ m_xCharacterVariantsBox

std::unique_ptr<weld::Container> cui::FontFeaturesDialog::m_xCharacterVariantsBox
private

Definition at line 62 of file FontFeaturesDialog.hxx.

Referenced by fillGrid(), and initialize().

◆ m_xCharacterVariantsGrid

std::unique_ptr<weld::Container> cui::FontFeaturesDialog::m_xCharacterVariantsGrid
private

Definition at line 63 of file FontFeaturesDialog.hxx.

Referenced by fillGrid().

◆ m_xContentBox

std::unique_ptr<weld::Container> cui::FontFeaturesDialog::m_xContentBox
private

Definition at line 58 of file FontFeaturesDialog.hxx.

Referenced by fillGrid(), and initialize().

◆ m_xContentGrid

std::unique_ptr<weld::Container> cui::FontFeaturesDialog::m_xContentGrid
private

Definition at line 59 of file FontFeaturesDialog.hxx.

Referenced by fillGrid().

◆ m_xContentWindow

std::unique_ptr<weld::ScrolledWindow> cui::FontFeaturesDialog::m_xContentWindow
private

Definition at line 57 of file FontFeaturesDialog.hxx.

Referenced by initialize().

◆ m_xPreviewWindow

std::unique_ptr<weld::CustomWeld> cui::FontFeaturesDialog::m_xPreviewWindow
private

Definition at line 64 of file FontFeaturesDialog.hxx.

◆ m_xStylisticSetsBox

std::unique_ptr<weld::Container> cui::FontFeaturesDialog::m_xStylisticSetsBox
private

Definition at line 60 of file FontFeaturesDialog.hxx.

Referenced by fillGrid(), and initialize().

◆ m_xStylisticSetsGrid

std::unique_ptr<weld::Container> cui::FontFeaturesDialog::m_xStylisticSetsGrid
private

Definition at line 61 of file FontFeaturesDialog.hxx.

Referenced by fillGrid().


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