LibreOffice Module cui (master) 1
|
#include <FontFeaturesDialog.hxx>
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 Dialog * | getDialog () override |
virtual | ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override |
Public Member Functions inherited from weld::DialogController | |
virtual Dialog * | getDialog ()=0 |
const Dialog * | getConstDialog () 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::ScrolledWindow > | m_xContentWindow |
std::unique_ptr< weld::Container > | m_xContentBox |
std::unique_ptr< weld::Container > | m_xContentGrid |
std::unique_ptr< weld::Container > | m_xStylisticSetsBox |
std::unique_ptr< weld::Container > | m_xStylisticSetsGrid |
std::unique_ptr< weld::Container > | m_xCharacterVariantsBox |
std::unique_ptr< weld::Container > | m_xCharacterVariantsGrid |
std::unique_ptr< weld::CustomWeld > | m_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::Builder > | m_xBuilder |
std::shared_ptr< weld::Dialog > | m_xDialog |
Definition at line 49 of file FontFeaturesDialog.hxx.
cui::FontFeaturesDialog::FontFeaturesDialog | ( | weld::Window * | pParent, |
OUString | aFontName | ||
) |
Definition at line 22 of file FontFeaturesDialog.cxx.
References initialize().
|
override |
Definition at line 37 of file FontFeaturesDialog.cxx.
|
private |
Definition at line 218 of file FontFeaturesDialog.cxx.
References vcl::font::featureCodeAsString(), vcl::font::FeaturePrefix, vcl::font::FeatureSeparator, cui::FontFeatureItem::m_aFeatureCode, m_aFeatureItems, cui::FontFeatureItem::m_nDefault, m_sFontName, cui::FontFeatureItem::m_xCheck, cui::FontFeatureItem::m_xCombo, cui::FontFeatureItem::m_xText, vcl::font::trimFontNameFeatures(), TRISTATE_FALSE, and TRISTATE_INDET.
Referenced by run(), and updateFontPreview().
|
private |
|
private |
|
private |
Definition at line 90 of file FontFeaturesDialog.cxx.
References weld::TriStateEnabled::bTriStateEnabled, vcl::font::ENUM, weld::TriStateEnabled::eState, vcl::font::FeatureDefinition::getDefault(), vcl::font::FeatureDefinition::getDescription(), vcl::font::FeatureParser::getFeaturesMap(), vcl::font::FeatureDefinition::getType(), LINK, cui::FontFeatureItem::m_aFeatureCode, m_aFeatureItems, cui::FontFeatureItem::m_aToggleHdl, cui::FontFeatureItem::m_aTriStateEnabled, cui::FontFeatureItem::m_nDefault, m_sFontName, m_xCharacterVariantsBox, m_xCharacterVariantsGrid, cui::FontFeatureItem::m_xCheck, cui::FontFeatureItem::m_xCombo, cui::FontFeatureItem::m_xContainer, m_xContentBox, m_xContentGrid, m_xStylisticSetsBox, m_xStylisticSetsGrid, cui::FontFeatureItem::m_xText, cui::makeEnumComboBox(), nValue, TRISTATE_FALSE, TRISTATE_INDET, and TRISTATE_TRUE.
Referenced by initialize().
|
inline |
Definition at line 80 of file FontFeaturesDialog.hxx.
References m_sResultFontName.
Referenced by IMPL_LINK().
|
private |
Definition at line 55 of file FontFeaturesDialog.cxx.
References fillGrid(), Application::GetDefaultDevice(), getFontFeatureList(), m_sFontName, m_xCharacterVariantsBox, m_xContentBox, m_xContentWindow, m_xStylisticSetsBox, and updateFontPreview().
Referenced by FontFeaturesDialog().
|
overridevirtual |
Reimplemented from weld::DialogController.
Definition at line 262 of file FontFeaturesDialog.cxx.
References createFontNameWithFeatures(), m_sResultFontName, and RET_OK.
Referenced by IMPL_LINK().
void cui::FontFeaturesDialog::updateFontPreview | ( | ) |
Definition at line 186 of file FontFeaturesDialog.cxx.
References createFontNameWithFeatures(), SvxFontPrevWindow::GetCJKFont(), SvxFontPrevWindow::GetCTLFont(), SvxFontPrevWindow::GetFont(), m_aPreviewWindow, vcl::Font::SetFamilyName(), and SvxFontPrevWindow::SetFont().
Referenced by initialize().
|
private |
Definition at line 52 of file FontFeaturesDialog.hxx.
Referenced by createFontNameWithFeatures(), and fillGrid().
|
private |
Definition at line 56 of file FontFeaturesDialog.hxx.
Referenced by updateFontPreview().
|
private |
Definition at line 53 of file FontFeaturesDialog.hxx.
Referenced by createFontNameWithFeatures(), fillGrid(), and initialize().
|
private |
Definition at line 54 of file FontFeaturesDialog.hxx.
Referenced by getResultFontName(), and run().
|
private |
Definition at line 62 of file FontFeaturesDialog.hxx.
Referenced by fillGrid(), and initialize().
|
private |
Definition at line 63 of file FontFeaturesDialog.hxx.
Referenced by fillGrid().
|
private |
Definition at line 58 of file FontFeaturesDialog.hxx.
Referenced by fillGrid(), and initialize().
|
private |
Definition at line 59 of file FontFeaturesDialog.hxx.
Referenced by fillGrid().
|
private |
Definition at line 57 of file FontFeaturesDialog.hxx.
Referenced by initialize().
|
private |
Definition at line 64 of file FontFeaturesDialog.hxx.
|
private |
Definition at line 60 of file FontFeaturesDialog.hxx.
Referenced by fillGrid(), and initialize().
|
private |
Definition at line 61 of file FontFeaturesDialog.hxx.
Referenced by fillGrid().