LibreOffice Module sw (master) 1
|
#include <prcntfld.hxx>
Public Member Functions | |
SwPercentField (std::unique_ptr< weld::MetricSpinButton > pControl) | |
const weld::MetricSpinButton * | get () const |
weld::MetricSpinButton * | get () |
void | connect_value_changed (const Link< weld::MetricSpinButton &, void > &rLink) |
void | SetMetric (FieldUnit eUnit) |
void | set_sensitive (bool bEnable) |
void | show () |
bool | has_focus () const |
void | save_value () |
bool | get_value_changed_from_saved () const |
void | set_text (const OUString &rStr) |
void | set_accessible_name (const OUString &rStr) |
void | SetMetricFieldMin (sal_Int64 nNewMin) |
void | SetMetricFieldMax (sal_Int64 nNewMax) |
void | SetMetricFieldRange (sal_Int64 nNewMin, sal_Int64 nNewMax) |
void | GetMetricFieldRange (sal_Int64 &rOldMin, sal_Int64 &rOldMax) const |
void | set_value (sal_Int64 nNewValue, FieldUnit eInUnit=FieldUnit::NONE) |
sal_Int64 | get_value (FieldUnit eOutUnit=FieldUnit::NONE) |
void | set_min (sal_Int64 nNewMin, FieldUnit eInUnit) |
void | set_max (sal_Int64 nNewMax, FieldUnit eInUnit) |
sal_Int64 | get_min (FieldUnit eOutUnit=FieldUnit::NONE) const |
sal_Int64 | NormalizePercent (sal_Int64 nValue) |
sal_Int64 | DenormalizePercent (sal_Int64 nValue) |
void | SetRefValue (sal_Int64 nValue) |
sal_Int64 | GetRealValue (FieldUnit eOutUnit) |
sal_Int64 | Convert (sal_Int64 nValue, FieldUnit eInUnit, FieldUnit eOutUnit) |
void | ShowPercent (bool bPercent) |
void | LockAutoCalculation (bool bLock) |
Static Private Member Functions | |
static SAL_DLLPRIVATE int | ImpPower10 (sal_uInt16 n) |
Private Attributes | |
std::unique_ptr< weld::MetricSpinButton > | m_pField |
sal_Int64 | m_nRefValue |
sal_Int64 | m_nOldMax |
sal_Int64 | m_nOldMin |
int | m_nOldSpinSize |
int | m_nOldPageSize |
sal_Int64 | m_nLastPercent |
sal_Int64 | m_nLastValue |
sal_uInt16 | m_nOldDigits |
FieldUnit | m_eOldUnit |
bool | m_bLockAutoCalculation |
Definition at line 26 of file prcntfld.hxx.
SwPercentField::SwPercentField | ( | std::unique_ptr< weld::MetricSpinButton > | pControl | ) |
Definition at line 23 of file prcntfld.cxx.
References DenormalizePercent(), m_nOldPageSize, m_nOldSpinSize, m_nRefValue, and m_pField.
|
inline |
Definition at line 49 of file prcntfld.hxx.
Referenced by SwTableColumnPage::Init().
Definition at line 197 of file prcntfld.cxx.
References vcl::ConvertValue(), DenormalizePercent(), m_nOldDigits, m_nRefValue, m_pField, NormalizePercent(), and nValue.
Referenced by get_value(), GetRealValue(), set_min(), set_value(), and ShowPercent().
sal_Int64 SwPercentField::DenormalizePercent | ( | sal_Int64 | nValue | ) |
Definition at line 167 of file prcntfld.cxx.
References ImpPower10(), m_nOldDigits, m_pField, and nValue.
Referenced by Convert(), IMPL_LINK(), SwTableColumnPage::ModifyHdl(), SwPercentField(), and SwColumnPage::Timeout().
|
inline |
Definition at line 48 of file prcntfld.hxx.
|
inline |
Definition at line 47 of file prcntfld.hxx.
Referenced by SwColumnPage::connectPercentField(), IMPL_LINK(), and SwColumnPage::Timeout().
|
inline |
Definition at line 69 of file prcntfld.hxx.
sal_Int64 SwPercentField::get_value | ( | FieldUnit | eOutUnit = FieldUnit::NONE | ) |
Definition at line 132 of file prcntfld.cxx.
References Convert(), and m_pField.
Referenced by GetRealValue(), IMPL_LINK(), SwTableColumnPage::ModifyHdl(), ShowPercent(), and SwColumnPage::Timeout().
|
inline |
Definition at line 55 of file prcntfld.hxx.
|
inline |
Definition at line 61 of file prcntfld.hxx.
sal_Int64 SwPercentField::GetRealValue | ( | FieldUnit | eOutUnit | ) |
Definition at line 189 of file prcntfld.cxx.
References Convert(), get_value(), and m_pField.
Referenced by SetRefValue().
|
inline |
Definition at line 53 of file prcntfld.hxx.
|
staticprivate |
Definition at line 179 of file prcntfld.cxx.
Referenced by DenormalizePercent(), and NormalizePercent().
|
inline |
Definition at line 81 of file prcntfld.hxx.
sal_Int64 SwPercentField::NormalizePercent | ( | sal_Int64 | nValue | ) |
Definition at line 158 of file prcntfld.cxx.
References ImpPower10(), m_nOldDigits, m_pField, and nValue.
Referenced by Convert(), and SwTableColumnPage::Reset().
|
inline |
Definition at line 54 of file prcntfld.hxx.
|
inline |
Definition at line 57 of file prcntfld.hxx.
void SwPercentField::set_max | ( | sal_Int64 | nNewMax, |
FieldUnit | eInUnit | ||
) |
Definition at line 152 of file prcntfld.cxx.
References m_pField.
Referenced by SwTableColumnPage::Reset().
void SwPercentField::set_min | ( | sal_Int64 | nNewMin, |
FieldUnit | eInUnit | ||
) |
Definition at line 137 of file prcntfld.cxx.
References Convert(), m_eOldUnit, m_nOldMin, and m_pField.
Referenced by SwTableColumnPage::Reset().
|
inline |
Definition at line 51 of file prcntfld.hxx.
Referenced by SwTableColumnPage::Reset().
|
inline |
Definition at line 56 of file prcntfld.hxx.
Referenced by SwTableColumnPage::Reset().
void SwPercentField::set_value | ( | sal_Int64 | nNewValue, |
FieldUnit | eInUnit = FieldUnit::NONE |
||
) |
Definition at line 109 of file prcntfld.cxx.
References Convert(), vcl::ConvertValue(), m_eOldUnit, m_nOldDigits, m_nRefValue, m_pField, and nValue.
Referenced by SwTableColumnPage::Reset(), SetRefValue(), ShowPercent(), and SwTableColumnPage::UpdateCols().
|
inline |
Definition at line 50 of file prcntfld.hxx.
Referenced by SwTableColumnPage::Init().
|
inline |
Definition at line 59 of file prcntfld.hxx.
|
inline |
Definition at line 58 of file prcntfld.hxx.
|
inline |
Definition at line 60 of file prcntfld.hxx.
void SwPercentField::SetRefValue | ( | sal_Int64 | nValue | ) |
Definition at line 39 of file prcntfld.cxx.
References GetRealValue(), m_bLockAutoCalculation, m_eOldUnit, m_nRefValue, m_pField, nValue, and set_value().
Referenced by SwTableColumnPage::ActivatePage().
|
inline |
Definition at line 52 of file prcntfld.hxx.
void SwPercentField::ShowPercent | ( | bool | bPercent | ) |
Definition at line 49 of file prcntfld.cxx.
References Convert(), vcl::ConvertValue(), get_value(), m_eOldUnit, m_nLastPercent, m_nLastValue, m_nOldDigits, m_nOldMax, m_nOldMin, m_nOldPageSize, m_nOldSpinSize, m_nRefValue, m_pField, and set_value().
Referenced by SwTableColumnPage::ActivatePage().
|
private |
Definition at line 39 of file prcntfld.hxx.
Referenced by SetRefValue().
|
private |
Definition at line 38 of file prcntfld.hxx.
Referenced by set_min(), set_value(), SetRefValue(), and ShowPercent().
|
private |
Definition at line 35 of file prcntfld.hxx.
Referenced by ShowPercent().
|
private |
Definition at line 36 of file prcntfld.hxx.
Referenced by ShowPercent().
|
private |
Definition at line 37 of file prcntfld.hxx.
Referenced by Convert(), DenormalizePercent(), NormalizePercent(), set_value(), and ShowPercent().
|
private |
Definition at line 31 of file prcntfld.hxx.
Referenced by ShowPercent().
|
private |
Definition at line 32 of file prcntfld.hxx.
Referenced by set_min(), and ShowPercent().
|
private |
Definition at line 34 of file prcntfld.hxx.
Referenced by ShowPercent(), and SwPercentField().
|
private |
Definition at line 33 of file prcntfld.hxx.
Referenced by ShowPercent(), and SwPercentField().
|
private |
Definition at line 30 of file prcntfld.hxx.
Referenced by Convert(), set_value(), SetRefValue(), ShowPercent(), and SwPercentField().
|
private |
Definition at line 28 of file prcntfld.hxx.
Referenced by Convert(), DenormalizePercent(), get_value(), GetRealValue(), NormalizePercent(), set_max(), set_min(), set_value(), SetRefValue(), ShowPercent(), and SwPercentField().