LibreOffice Module starmath (master) 1
|
#include <dialog.hxx>
Public Member Functions | |
SmFontSizeDialog (weld::Window *pParent) | |
virtual | ~SmFontSizeDialog () override |
void | ReadFrom (const SmFormat &rFormat) |
void | WriteTo (SmFormat &rFormat) const |
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 | |
DECL_LINK (DefaultButtonClickHdl, weld::Button &, void) | |
Private Attributes | |
std::unique_ptr< weld::MetricSpinButton > | m_xBaseSize |
std::unique_ptr< weld::MetricSpinButton > | m_xTextSize |
std::unique_ptr< weld::MetricSpinButton > | m_xIndexSize |
std::unique_ptr< weld::MetricSpinButton > | m_xFunctionSize |
std::unique_ptr< weld::MetricSpinButton > | m_xOperatorSize |
std::unique_ptr< weld::MetricSpinButton > | m_xBorderSize |
std::unique_ptr< weld::Button > | m_xDefaultButton |
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 108 of file dialog.hxx.
SmFontSizeDialog::SmFontSizeDialog | ( | weld::Window * | pParent | ) |
Definition at line 380 of file dialog.cxx.
References LINK, m_xDefaultButton, PERCENT(), and POINT.
|
overridevirtual |
Definition at line 393 of file dialog.cxx.
|
private |
void SmFontSizeDialog::ReadFrom | ( | const SmFormat & | rFormat | ) |
watch out: round properly!
Definition at line 397 of file dialog.cxx.
References o3tl::convert(), SmFormat::GetBaseSize(), SmFormat::GetRelSize(), Size::Height(), m_xBaseSize, m_xBorderSize, m_xFunctionSize, m_xIndexSize, m_xOperatorSize, m_xTextSize, o3tl::pt, SIZ_FUNCTION, SIZ_INDEX, SIZ_LIMITS, SIZ_OPERATOR, SIZ_TEXT, and SmO3tlLengthUnit().
Referenced by SmDocShell::Execute().
void SmFontSizeDialog::WriteTo | ( | SmFormat & | rFormat | ) | const |
Definition at line 411 of file dialog.cxx.
References o3tl::convert(), FNT_BEGIN, FNT_END, SmFormat::GetBaseSize(), i, m_xBaseSize, m_xBorderSize, m_xFunctionSize, m_xIndexSize, m_xOperatorSize, m_xTextSize, o3tl::pt, SmFormat::RequestApplyChanges(), SmFormat::SetBaseSize(), SmFormat::SetFontSize(), SmFormat::SetRelSize(), SIZ_FUNCTION, SIZ_INDEX, SIZ_LIMITS, SIZ_OPERATOR, SIZ_TEXT, and SmO3tlLengthUnit().
Referenced by SmDocShell::Execute().
|
private |
Definition at line 110 of file dialog.hxx.
Referenced by ReadFrom(), and WriteTo().
|
private |
Definition at line 115 of file dialog.hxx.
Referenced by ReadFrom(), and WriteTo().
|
private |
Definition at line 116 of file dialog.hxx.
Referenced by SmFontSizeDialog().
|
private |
Definition at line 113 of file dialog.hxx.
Referenced by ReadFrom(), and WriteTo().
|
private |
Definition at line 112 of file dialog.hxx.
Referenced by ReadFrom(), and WriteTo().
|
private |
Definition at line 114 of file dialog.hxx.
Referenced by ReadFrom(), and WriteTo().
|
private |
Definition at line 111 of file dialog.hxx.
Referenced by ReadFrom(), and WriteTo().