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) |
Protected Attributes | |
sal_Int32 | nStdEntry |
sal_uInt32 | nDefFormat |
SvNumFormatType | nCurrFormatType |
LanguageType | eCurLanguage |
bool | bOneArea |
bool | mbCurrFormatTypeNeedsInit |
bool | bShowLanguageControl |
bool | bUseAutomaticLanguage |
Definition at line 28 of file numfmtlb.hxx.
SwNumFormatBase::SwNumFormatBase | ( | ) |
Definition at line 116 of file numfmtlb.cxx.
References ALL.
|
inlinevirtual |
Definition at line 70 of file numfmtlb.hxx.
|
pure virtual |
Implemented in SwNumFormatTreeView, and NumFormatListBox.
Referenced by SetFormatType().
|
pure virtual |
Implemented in SwNumFormatTreeView, and NumFormatListBox.
Referenced by SetFormatType().
void SwNumFormatBase::CallSelectHdl | ( | ) |
Definition at line 369 of file numfmtlb.cxx.
References bOneArea, bShowLanguageControl, bUseAutomaticLanguage, SwAbstractDialogFactory::Create(), SwAbstractDialogFactory::CreateNumFormatDialog(), SvNumberFormatter::DeleteEntry(), get_active(), get_count(), get_text(), get_widget(), GetActiveView(), SwViewShell::GetAttrPool(), GetDefValue(), SwView::GetDocShell(), SvNumberFormatter::GetEntry(), CharFormat::GetItem(), SfxItemSet::GetItemState(), SvNumberformat::GetLanguage(), SwEditShell::GetNumberFormatter(), SvNumberFormatter::GetStandardFormat(), GetValue, SwView::GetWrtShell(), nCurrFormatType, nPos, RET_OK, set_active(), SetDefFormat(), and SwResId().
|
virtual |
Reimplemented in SwNumFormatTreeView, and NumFormatListBox.
Definition at line 455 of file numfmtlb.cxx.
References mbCurrFormatTypeNeedsInit, and nCurrFormatType.
Referenced by NumFormatListBox::clear(), SwNumFormatTreeView::clear(), and SetFormatType().
|
pure virtual |
Implemented in SwNumFormatTreeView, and NumFormatListBox.
Referenced by CallSelectHdl().
|
pure virtual |
Implemented in SwNumFormatTreeView, and NumFormatListBox.
Referenced by CallSelectHdl(), and SetDefFormat().
|
pure virtual |
Implemented in SwNumFormatTreeView, and NumFormatListBox.
Referenced by SetDefFormat().
|
pure virtual |
Implemented in SwNumFormatTreeView, and NumFormatListBox.
Referenced by CallSelectHdl().
|
pure virtual |
Implemented in SwNumFormatTreeView, and NumFormatListBox.
Referenced by CallSelectHdl().
|
inline |
Definition at line 46 of file numfmtlb.hxx.
|
static |
Definition at line 76 of file numfmtlb.cxx.
References fSvxNumValConst.
Referenced by CallSelectHdl(), SetDefFormat(), and SetFormatType().
|
pure virtual |
Implemented in SwNumFormatTreeView, and NumFormatListBox.
Referenced by SetDefFormat().
|
inline |
Definition at line 45 of file numfmtlb.hxx.
Reimplemented in SwNumFormatTreeView, and NumFormatListBox.
Definition at line 139 of file numfmtlb.cxx.
References GetActiveView(), SwEditShell::GetCurLang(), SvtSysLocale::GetLanguageTag(), LanguageTag::getLanguageType(), SwView::GetWrtShell(), nDefFormat, SetDefFormat(), and SetFormatType().
Referenced by NumFormatListBox::Init(), and SwNumFormatTreeView::Init().
Implemented in SwNumFormatTreeView, and NumFormatListBox.
Referenced by SetDefFormat().
|
inline |
Definition at line 44 of file numfmtlb.hxx.
Implemented in SwNumFormatTreeView, and NumFormatListBox.
Referenced by CallSelectHdl(), SetDefFormat(), and SetFormatType().
Implemented in SwNumFormatTreeView, and NumFormatListBox.
Referenced by SetDefFormat().
|
inline |
Definition at line 43 of file numfmtlb.hxx.
void SwNumFormatBase::SetDefFormat | ( | const sal_uInt32 | nDefFormat | ) |
Definition at line 299 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(), nCount, nDefFormat, nPos, nStdEntry, nType, NUMBERFORMAT_ENTRY_NOT_FOUND, set_active(), set_id(), SetFormatType(), and SwResId().
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, mbCurrFormatTypeNeedsInit, nCurrFormatType, 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, nStdEntry, set_active(), and SwResId().
Referenced by Init(), and SetDefFormat().
|
inline |
Definition at line 47 of file numfmtlb.hxx.
|
inline |
Definition at line 50 of file numfmtlb.hxx.
|
inline |
Definition at line 48 of file numfmtlb.hxx.
|
protected |
Definition at line 35 of file numfmtlb.hxx.
Referenced by CallSelectHdl().
|
protected |
Definition at line 37 of file numfmtlb.hxx.
Referenced by CallSelectHdl().
|
protected |
Definition at line 39 of file numfmtlb.hxx.
Referenced by CallSelectHdl().
|
protected |
Definition at line 34 of file numfmtlb.hxx.
|
protected |
Definition at line 36 of file numfmtlb.hxx.
Referenced by clear(), and SetFormatType().
|
protected |
Definition at line 33 of file numfmtlb.hxx.
Referenced by CallSelectHdl(), clear(), and SetFormatType().
|
protected |
Definition at line 32 of file numfmtlb.hxx.
Referenced by Init(), and SetDefFormat().
|
protected |
Definition at line 31 of file numfmtlb.hxx.
Referenced by SetDefFormat(), and SetFormatType().