LibreOffice Module sw (master) 1
|
#include <numfmtlb.hxx>
Public Member Functions | |
SwNumFormatBase () | |
void | SetAutomaticLanguage (bool bSet) |
bool | IsAutomaticLanguage () const |
SvNumFormatType | GetFormatType () const |
LanguageType | GetCurLanguage () const |
void | SetLanguage (LanguageType eSet) |
void | SetShowLanguageControl (bool bSet) |
void | SetOneArea (bool bOnlyOne) |
void | SetFormatType (const SvNumFormatType nFormatType) |
void | SetDefFormat (const sal_uInt32 nDefFormat) |
virtual sal_uInt32 | GetFormat () const =0 |
virtual void | Init () |
void | CallSelectHdl () |
virtual void | clear () |
virtual int | get_count () const =0 |
virtual int | get_active () const =0 |
virtual OUString | get_id (int nPos) const =0 |
virtual OUString | get_text (int nPos) const =0 |
virtual weld::Widget & | get_widget () const =0 |
virtual void | append (const OUString &rId, const OUString &rText)=0 |
virtual void | append_text (const OUString &rText)=0 |
virtual void | insert_text (int nPos, const OUString &rText)=0 |
virtual void | set_active (int nPos)=0 |
virtual void | set_id (int nPos, const OUString &rId)=0 |
virtual | ~SwNumFormatBase () |
Static Public Member Functions | |
static SAL_DLLPRIVATE double | GetDefValue (const SvNumFormatType nFormatType) |
Private Attributes | |
sal_Int32 | m_nStdEntry |
sal_uInt32 | m_nDefFormat |
SvNumFormatType | m_nCurrFormatType |
LanguageType | m_eCurLanguage |
bool | m_bOneArea |
bool | mbCurrFormatTypeNeedsInit |
bool | m_bShowLanguageControl |
bool | m_bUseAutomaticLanguage |
Definition at line 28 of file numfmtlb.hxx.
SwNumFormatBase::SwNumFormatBase | ( | ) |
Definition at line 118 of file numfmtlb.cxx.
References ALL.
|
inlinevirtual |
Definition at line 69 of file numfmtlb.hxx.
|
pure virtual |
Implemented in NumFormatListBox, and SwNumFormatTreeView.
Referenced by SetFormatType().
|
pure virtual |
Implemented in NumFormatListBox, and SwNumFormatTreeView.
Referenced by SetFormatType().
void SwNumFormatBase::CallSelectHdl | ( | ) |
Definition at line 367 of file numfmtlb.cxx.
References SwAbstractDialogFactory::Create(), SwAbstractDialogFactory::CreateNumFormatDialog(), SvNumberFormatter::DeleteEntry(), get_active(), get_count(), get_text(), get_widget(), GetActiveView(), SwViewShell::GetAttrPool(), GetDefValue(), SvxNumberInfoItem::GetDelFormats(), SwView::GetDocShell(), SvNumberFormatter::GetEntry(), CharFormat::GetItem(), SfxItemSet::GetItemIfSet(), SvNumberformat::GetLanguage(), SwEditShell::GetNumberFormatter(), SvNumberFormatter::GetStandardFormat(), SfxBoolItem::GetValue(), SwView::GetWrtShell(), m_bOneArea, m_bShowLanguageControl, m_bUseAutomaticLanguage, m_eCurLanguage, m_nCurrFormatType, nPos, RET_OK, set_active(), SetDefFormat(), and SwResId().
|
virtual |
Reimplemented in NumFormatListBox, and SwNumFormatTreeView.
Definition at line 452 of file numfmtlb.cxx.
References m_nCurrFormatType, and mbCurrFormatTypeNeedsInit.
Referenced by NumFormatListBox::clear(), SwNumFormatTreeView::clear(), and SetFormatType().
|
pure virtual |
Implemented in NumFormatListBox, and SwNumFormatTreeView.
Referenced by CallSelectHdl().
|
pure virtual |
Implemented in NumFormatListBox, and SwNumFormatTreeView.
Referenced by CallSelectHdl(), and SetDefFormat().
|
pure virtual |
Implemented in NumFormatListBox, and SwNumFormatTreeView.
Referenced by SetDefFormat().
|
pure virtual |
Implemented in NumFormatListBox, and SwNumFormatTreeView.
Referenced by CallSelectHdl().
|
pure virtual |
Implemented in NumFormatListBox, and SwNumFormatTreeView.
Referenced by CallSelectHdl().
|
inline |
Definition at line 45 of file numfmtlb.hxx.
|
static |
Definition at line 78 of file numfmtlb.cxx.
References fSvxNumValConst.
Referenced by CallSelectHdl(), SetDefFormat(), and SetFormatType().
|
pure virtual |
Implemented in NumFormatListBox, and SwNumFormatTreeView.
References Init().
Referenced by SetDefFormat().
|
inline |
Definition at line 44 of file numfmtlb.hxx.
|
virtual |
Reimplemented in NumFormatListBox, and SwNumFormatTreeView.
Definition at line 141 of file numfmtlb.cxx.
References GetActiveView(), SvtSysLocale::GetLanguageTag(), LanguageTag::getLanguageType(), m_eCurLanguage, m_nDefFormat, SetDefFormat(), and SetFormatType().
Referenced by NumFormatListBox::Init(), and SwNumFormatTreeView::Init().
|
pure virtual |
Implemented in NumFormatListBox, and SwNumFormatTreeView.
Referenced by SetDefFormat().
|
inline |
Definition at line 43 of file numfmtlb.hxx.
|
pure virtual |
Implemented in NumFormatListBox, and SwNumFormatTreeView.
Referenced by CallSelectHdl(), SetDefFormat(), and SetFormatType().
|
pure virtual |
Implemented in NumFormatListBox, and SwNumFormatTreeView.
Referenced by SetDefFormat().
|
inline |
Definition at line 42 of file numfmtlb.hxx.
void SwNumFormatBase::SetDefFormat | ( | const sal_uInt32 | nDefFormat | ) |
Definition at line 298 of file numfmtlb.cxx.
References get_count(), get_id(), GetActiveView(), GetDefValue(), GetFormat(), SvNumberFormatter::GetFormatForLanguageIfBuiltIn(), SwEditShell::GetNumberFormatter(), SvNumberFormatter::GetOutputString(), SvNumberFormatter::GetType(), SwView::GetWrtShell(), i, insert_text(), m_eCurLanguage, m_nDefFormat, m_nStdEntry, nCount, nPos, nType, NUMBERFORMAT_ENTRY_NOT_FOUND, set_active(), set_id(), SetFormatType(), SwResId(), and toUInt32().
Referenced by CallSelectHdl(), and Init().
void SwNumFormatBase::SetFormatType | ( | const SvNumFormatType | nFormatType | ) |
Definition at line 166 of file numfmtlb.cxx.
References append(), append_text(), clear(), GetActiveView(), GetDefValue(), SvNumberFormatter::GetEntry(), SvNumberFormatter::GetFormatIndex(), SvNumberformat::GetFormatstring(), SwEditShell::GetNumberFormatter(), SvNumberFormatter::GetOutputString(), SvNumberFormatter::GetStandardFormat(), SwView::GetWrtShell(), i, m_eCurLanguage, m_nCurrFormatType, m_nStdEntry, mbCurrFormatTypeNeedsInit, NF_BOOLEAN, NF_CURRENCY_END, NF_CURRENCY_START, NF_DATE_END, NF_DATE_START, NF_DATE_SYSTEM_LONG, NF_DATE_SYSTEM_SHORT, NF_FRACTION_END, NF_FRACTION_START, NF_INDEX_TABLE_ENTRIES, NF_NUMBER_END, NF_NUMBER_STANDARD, NF_NUMBER_START, NF_NUMBER_SYSTEM, NF_NUMERIC_START, NF_PERCENT_END, NF_PERCENT_START, NF_SCIENTIFIC_END, NF_SCIENTIFIC_START, NF_TEXT, NF_TIME_END, NF_TIME_START, nIndex, set_active(), and SwResId().
Referenced by Init(), and SetDefFormat().
|
inline |
Definition at line 46 of file numfmtlb.hxx.
|
inline |
Definition at line 49 of file numfmtlb.hxx.
|
inline |
Definition at line 47 of file numfmtlb.hxx.
|
private |
Definition at line 34 of file numfmtlb.hxx.
Referenced by CallSelectHdl().
|
private |
Definition at line 36 of file numfmtlb.hxx.
Referenced by CallSelectHdl().
|
private |
Definition at line 38 of file numfmtlb.hxx.
Referenced by CallSelectHdl().
|
private |
Definition at line 33 of file numfmtlb.hxx.
Referenced by CallSelectHdl(), Init(), SetDefFormat(), and SetFormatType().
|
private |
Definition at line 32 of file numfmtlb.hxx.
Referenced by CallSelectHdl(), clear(), and SetFormatType().
|
private |
Definition at line 31 of file numfmtlb.hxx.
Referenced by Init(), and SetDefFormat().
|
private |
Definition at line 30 of file numfmtlb.hxx.
Referenced by SetDefFormat(), and SetFormatType().
|
private |
Definition at line 35 of file numfmtlb.hxx.
Referenced by clear(), and SetFormatType().