LibreOffice Module sw (master) 1
|
Fields containing values that have to be formatted via number formatter. More...
#include <fldbas.hxx>
Public Member Functions | |
SwDoc * | GetDoc () const |
void | SetDoc (SwDoc *pNewDoc) |
bool | UseFormat () const |
void | EnableFormat (bool bFormat=true) |
OUString | ExpandValue (const double &rVal, sal_uInt32 nFormat, LanguageType nLng) const |
return value formatted as string More... | |
OUString | DoubleToString (const double &rVal, LanguageType eLng) const |
OUString | DoubleToString (const double &rVal, sal_uInt32 nFormat) const |
OUString | GetInputOrDateTime (const OUString &rInput, const double &rVal, sal_uInt32 nFormat) const |
Query input or formatted value for dialog. More... | |
Public Member Functions inherited from SwFieldType | |
unotools::WeakReference< SwXFieldMaster > const & | GetXObject () const |
void | SetXObject (rtl::Reference< SwXFieldMaster > const &xFieldMaster) |
virtual OUString | GetName () const |
Only in derived classes. More... | |
virtual std::unique_ptr< SwFieldType > | Copy () const =0 |
virtual void | QueryValue (css::uno::Any &rVal, sal_uInt16 nWhich) const |
virtual void | PutValue (const css::uno::Any &rVal, sal_uInt16 nWhich) |
SwFieldIds | Which () const |
void | PrintHiddenPara () |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const |
SwFormatField * | FindFormatForField (const SwField *) const |
SwFormatField * | FindFormatForPostItId (sal_uInt32 nPostItId) const |
void | CollectPostIts (std::vector< SwFormatField * > &rvFormatFields, IDocumentRedlineAccess const &rIDRA, bool HideRedlines) |
bool | HasHiddenInformationNotes () const |
void | GatherNodeIndex (std::vector< SwNodeOffset > &rvNodeIndex) |
void | GatherRefFields (std::vector< SwGetRefField * > &rvRFields, const sal_uInt16 nTyp) |
void | GatherFields (std::vector< SwFormatField * > &rvFormatFields, bool bCollectOnlyInDocNodes=true) const |
void | GatherDdeTables (std::vector< SwDDETable * > &rvTables) const |
void | UpdateDocPos (const SwTwips nDocPos) |
virtual void | UpdateFields () |
Protected Member Functions | |
SwValueFieldType (SwDoc *pDocPtr, SwFieldIds nWhichId) | |
SwValueFieldType (const SwValueFieldType &rTyp) | |
Protected Member Functions inherited from SwFieldType | |
SwFieldType (SwFieldIds nWhichId) | |
Single argument ctors shall be explicit. More... | |
Private Attributes | |
SwDoc * | m_pDoc |
bool | m_bUseFormat |
Use number formatter. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from SwFieldType | |
static const OUString & | GetTypeStr (SwFieldTypesEnum nTypeId) |
Fields containing values that have to be formatted via number formatter.
Definition at line 418 of file fldbas.hxx.
|
protected |
Definition at line 570 of file fldbas.cxx.
|
protected |
Definition at line 577 of file fldbas.cxx.
OUString SwValueFieldType::DoubleToString | ( | const double & | rVal, |
LanguageType | eLng | ||
) | const |
Definition at line 646 of file fldbas.cxx.
References SvNumberFormatter::ChangeIntl(), SwDoc::GetNumberFormatter(), SvNumberFormatter::GetNumDecimalSep(), LANGUAGE_NONE, LANGUAGE_SYSTEM, and m_pDoc.
Referenced by DoubleToString(), ExpandValue(), SwUserFieldType::PutValue(), and SwUserFieldType::SetContent().
OUString SwValueFieldType::DoubleToString | ( | const double & | rVal, |
sal_uInt32 | nFormat | ||
) | const |
Definition at line 634 of file fldbas.cxx.
References DoubleToString(), SvNumberFormatter::GetEntry(), SvNumberformat::GetLanguage(), SwDoc::GetNumberFormatter(), and m_pDoc.
|
inline |
Definition at line 439 of file fldbas.hxx.
References m_bUseFormat.
Referenced by SwUserFieldType::Expand(), SwSetExpFieldType::SetType(), SwUserFieldType::SetType(), SwSetExpFieldType::SwSetExpFieldType(), and SwUserFieldType::SwUserFieldType().
OUString SwValueFieldType::ExpandValue | ( | const double & | rVal, |
sal_uInt32 | nFormat, | ||
LanguageType | nLng | ||
) | const |
return value formatted as string
Definition at line 585 of file fldbas.cxx.
References ShellResource::aCalc_Error, DoubleToString(), SvNumberFormatter::GetEntry(), SvNumberFormatter::GetFormatForLanguageIfBuiltIn(), SvNumberformat::GetFormatstring(), SvNumberformat::GetLanguage(), SwDoc::GetNumberFormatter(), SvNumberFormatter::GetOutputString(), SwViewShell::GetShellRes(), SvNumberFormatter::IsTextFormat(), LANGUAGE_SYSTEM, lcl_GetLanguageOfFormat(), m_pDoc, nType, SvNumberFormatter::PutandConvertEntry(), and SV_COUNTRY_LANGUAGE_OFFSET.
Referenced by SwDocInfoFieldType::Expand(), and SwUserFieldType::Expand().
|
inline |
Definition at line 429 of file fldbas.hxx.
References m_pDoc.
Referenced by SwDBFieldType::Copy(), SwDocInfoFieldType::Copy(), SwGetExpFieldType::Copy(), SwSetExpFieldType::Copy(), SwTableFieldType::Copy(), SwDateTimeFieldType::Copy(), SwUserFieldType::Copy(), SwUserFieldType::EnsureValid(), SwDocInfoFieldType::Expand(), SwUserFieldType::GetContent(), SwSetExpFieldType::GetSeqFieldList(), SwDBFieldType::ReleaseRef(), SwUserFieldType::SetContent(), and SwUserFieldType::SwClientNotify().
OUString SwValueFieldType::GetInputOrDateTime | ( | const OUString & | rInput, |
const double & | rVal, | ||
sal_uInt32 | nFormat | ||
) | const |
Query input or formatted value for dialog.
Definition at line 660 of file fldbas.cxx.
References SvNumberFormatter::GetEntry(), SvNumberFormatter::GetInputLineString(), SwDoc::GetNumberFormatter(), SvNumberformat::GetType(), m_pDoc, SAL_MAX_UINT32, and UseFormat().
|
inline |
Definition at line 432 of file fldbas.hxx.
References m_pDoc.
|
inline |
Definition at line 436 of file fldbas.hxx.
References m_bUseFormat.
Referenced by GetInputOrDateTime().
|
private |
Use number formatter.
Definition at line 422 of file fldbas.hxx.
Referenced by EnableFormat(), and UseFormat().
|
private |
Definition at line 421 of file fldbas.hxx.
Referenced by DoubleToString(), ExpandValue(), GetDoc(), GetInputOrDateTime(), and SetDoc().