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:
Collaboration diagram for cui::FontFeaturesDialog:

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 OString &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 OString &rHelpId)
OString 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< 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 43 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 ( )

Definition at line 32 of file FontFeaturesDialog.cxx.

Member Function Documentation

◆ createFontNameWithFeatures()

OUString cui::FontFeaturesDialog::createFontNameWithFeatures ( )

◆ DECL_LINK() [1/2]

cui::FontFeaturesDialog::DECL_LINK ( CheckBoxToggledHdl  ,
weld::Toggleable ,

◆ DECL_LINK() [2/2]

cui::FontFeaturesDialog::DECL_LINK ( ComboBoxSelectedHdl  ,
weld::ComboBox ,

◆ fillGrid()

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

◆ getResultFontName()

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

Definition at line 69 of file FontFeaturesDialog.hxx.

References m_sResultFontName.

Referenced by IMPL_LINK().

◆ initialize()

void cui::FontFeaturesDialog::initialize ( )

◆ run()

short cui::FontFeaturesDialog::run ( )

Reimplemented from weld::DialogController.

Definition at line 221 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<FontFeatureItem> cui::FontFeaturesDialog::m_aFeatureItems

Definition at line 46 of file FontFeaturesDialog.hxx.

Referenced by createFontNameWithFeatures(), and fillGrid().

◆ m_aPreviewWindow

SvxFontPrevWindow cui::FontFeaturesDialog::m_aPreviewWindow

Definition at line 50 of file FontFeaturesDialog.hxx.

Referenced by updateFontPreview().

◆ m_sFontName

OUString cui::FontFeaturesDialog::m_sFontName

Definition at line 47 of file FontFeaturesDialog.hxx.

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

◆ m_sResultFontName

OUString cui::FontFeaturesDialog::m_sResultFontName

Definition at line 48 of file FontFeaturesDialog.hxx.

Referenced by getResultFontName(), and run().

◆ m_xContentGrid

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

Definition at line 52 of file FontFeaturesDialog.hxx.

Referenced by fillGrid(), and initialize().

◆ m_xContentWindow

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

Definition at line 51 of file FontFeaturesDialog.hxx.

Referenced by initialize().

◆ m_xPreviewWindow

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

Definition at line 53 of file FontFeaturesDialog.hxx.

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