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 const &rFontName)
 
 ~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 OString &rDialogId)
 
virtual DialoggetDialog () override
 
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
 
- Public Member Functions inherited from weld::DialogController
const DialoggetConstDialog () const
 
void set_title (const OUString &rTitle)
 
OUString get_title () const
 
void set_help_id (const OString &rHelpId)
 
OString get_help_id () const
 
void response (int nResponse)
 
virtual ~DialogController () COVERITY_NOEXCEPT_FALSE
 

Private Member Functions

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

Private Attributes

std::vector< FontFeatureItemm_aFeatureItems
 
OUString m_sFontName
 
OUString m_sResultFontName
 
SvxFontPrevWindow m_aPreviewWindow
 
std::unique_ptr< weld::ScrolledWindowm_xContentWindow
 
std::unique_ptr< weld::Containerm_xContentGrid
 
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 44 of file FontFeaturesDialog.hxx.

Constructor & Destructor Documentation

cui::FontFeaturesDialog::FontFeaturesDialog ( weld::Window pParent,
OUString const &  rFontName 
)
cui::FontFeaturesDialog::~FontFeaturesDialog ( )
override

Definition at line 34 of file FontFeaturesDialog.cxx.

Member Function Documentation

OUString cui::FontFeaturesDialog::createFontNameWithFeatures ( )
private
cui::FontFeaturesDialog::DECL_LINK ( ComboBoxSelectedHdl  ,
weld::ComboBox ,
void   
)
private
cui::FontFeaturesDialog::DECL_LINK ( CheckBoxToggledHdl  ,
weld::ToggleButton ,
void   
)
private
void cui::FontFeaturesDialog::fillGrid ( std::vector< vcl::font::Feature > const &  rFontFeatures)
private
OUString const& cui::FontFeaturesDialog::getResultFontName ( ) const
inline

Definition at line 69 of file FontFeaturesDialog.hxx.

References m_sResultFontName.

Referenced by IMPL_LINK().

void cui::FontFeaturesDialog::initialize ( )
private
short cui::FontFeaturesDialog::run ( )
overridevirtual

Reimplemented from weld::DialogController.

Definition at line 214 of file FontFeaturesDialog.cxx.

References createFontNameWithFeatures(), m_sResultFontName, and RET_OK.

Referenced by IMPL_LINK().

void cui::FontFeaturesDialog::updateFontPreview ( )

Member Data Documentation

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

Definition at line 47 of file FontFeaturesDialog.hxx.

Referenced by createFontNameWithFeatures(), and fillGrid().

SvxFontPrevWindow cui::FontFeaturesDialog::m_aPreviewWindow
private

Definition at line 51 of file FontFeaturesDialog.hxx.

Referenced by FontFeaturesDialog(), and updateFontPreview().

OUString cui::FontFeaturesDialog::m_sFontName
private

Definition at line 48 of file FontFeaturesDialog.hxx.

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

OUString cui::FontFeaturesDialog::m_sResultFontName
private

Definition at line 49 of file FontFeaturesDialog.hxx.

Referenced by getResultFontName(), and run().

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

Definition at line 53 of file FontFeaturesDialog.hxx.

Referenced by fillGrid().

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

Definition at line 52 of file FontFeaturesDialog.hxx.

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

Definition at line 54 of file FontFeaturesDialog.hxx.


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