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 |
![]() | |
SAL_DLLPRIVATE css::uno::WeakReference< css::beans::XPropertySet > const & | GetXObject () const |
SAL_DLLPRIVATE void | SetXObject (css::uno::Reference< css::beans::XPropertySet > 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 | UpdateFields () 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< sal_uLong > &rvNodeIndex) |
void | GatherRefFields (std::vector< SwGetRefField * > &rvRFields, const sal_uInt16 nTyp) |
void | GatherFields (std::vector< SwFormatField * > &rvFormatFields, bool bCollectOnlyInDocNodes=true) const |
![]() | |
virtual void | CallSwClientNotify (const SfxHint &rHint) const override |
![]() | |
SwModify () | |
virtual | ~SwModify () override |
void | Add (SwClient *pDepend) |
SwClient * | Remove (SwClient *pDepend) |
bool | HasWriterListeners () const |
bool | HasOnlyOneListener () const |
virtual bool | GetInfo (SfxPoolItem &) const override |
void | LockModify () |
void | UnlockModify () |
bool | IsModifyLocked () const |
![]() | |
SwClient () | |
SwClient (SwClient &&) noexcept | |
virtual | ~SwClient () override |
std::unique_ptr< sw::ModifyChangedHint > | CheckRegistration (const SfxPoolItem *pOldValue) |
void | CheckRegistrationFormat (SwFormat &rOld) |
const SwModify * | GetRegisteredIn () const |
SwModify * | GetRegisteredIn () |
void | EndListeningAll () |
void | StartListeningToSameModifyAs (const SwClient &) |
![]() | |
bool | IsLast () const |
![]() | |
BroadcasterMixin ()=default | |
BroadcasterMixin (BroadcasterMixin const &)=default | |
BroadcasterMixin & | operator= (const BroadcasterMixin &) |
SvtBroadcaster & | GetNotifier () |
Protected Member Functions | |
SwValueFieldType (SwDoc *pDocPtr, SwFieldIds nWhichId) | |
SwValueFieldType (const SwValueFieldType &rTyp) | |
![]() | |
SwFieldType (SwFieldIds nWhichId) | |
Single argument ctors shall be explicit. More... | |
![]() | |
virtual void | SwClientNotify (const SwModify &, const SfxHint &rHint) override |
![]() | |
SwClient (SwModify *pToRegisterIn) | |
SwModify * | GetRegisteredInNonConst () const |
![]() | |
WriterListener () | |
virtual | ~WriterListener () COVERITY_NOEXCEPT_FALSE |
Private Attributes | |
SwDoc * | m_pDoc |
bool | m_bUseFormat |
Use number formatter. More... | |
Additional Inherited Members | |
![]() | |
static const OUString & | GetTypeStr (SwFieldTypesEnum nTypeId) |
Fields containing values that have to be formatted via number formatter.
Definition at line 408 of file fldbas.hxx.
|
protected |
Definition at line 503 of file fldbas.cxx.
|
protected |
Definition at line 510 of file fldbas.cxx.
OUString SwValueFieldType::DoubleToString | ( | const double & | rVal, |
LanguageType | eLng | ||
) | const |
Definition at line 579 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 567 of file fldbas.cxx.
References DoubleToString(), SvNumberFormatter::GetEntry(), SvNumberformat::GetLanguage(), SwDoc::GetNumberFormatter(), and m_pDoc.
|
inline |
Definition at line 429 of file fldbas.hxx.
Referenced by SwUserFieldType::Expand(), SwUserFieldType::SetType(), SwSetExpFieldType::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 518 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 SwUserFieldType::Expand(), and SwDocInfoFieldType::Expand().
|
inline |
Definition at line 419 of file fldbas.hxx.
References m_pDoc.
Referenced by SwDBFieldType::Copy(), SwDateTimeFieldType::Copy(), SwUserFieldType::Copy(), SwGetExpFieldType::Copy(), SwSetExpFieldType::Copy(), SwTableFieldType::Copy(), SwDocInfoFieldType::Copy(), SwDocInfoFieldType::Expand(), SwUserFieldType::GetContent(), SwSetExpFieldType::GetSeqFieldList(), SwDBFieldType::ReleaseRef(), SwUserFieldType::SetContent(), and SwUserFieldType::SwClientNotify().
Definition at line 422 of file fldbas.hxx.
|
inline |
Definition at line 426 of file fldbas.hxx.
References m_bUseFormat.
|
private |
|
private |
Definition at line 411 of file fldbas.hxx.
Referenced by DoubleToString(), ExpandValue(), and GetDoc().