LibreOffice Module sw (master) 1
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
SwValueFieldType Class Reference

Fields containing values that have to be formatted via number formatter. More...

#include <fldbas.hxx>

Inheritance diagram for SwValueFieldType:
Collaboration diagram for SwValueFieldType:

Public Member Functions

SwDocGetDoc () 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
- Public Member Functions inherited from SwFieldType
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< SwFieldTypeCopy () 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
SwFormatFieldFindFormatForField (const SwField *) const
SwFormatFieldFindFormatForPostItId (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

bool m_bUseFormat
 Use number formatter. More...

Additional Inherited Members

- Static Public Member Functions inherited from SwFieldType
static const OUString & GetTypeStr (SwFieldTypesEnum nTypeId)

Detailed Description

Fields containing values that have to be formatted via number formatter.

Definition at line 417 of file fldbas.hxx.

Constructor & Destructor Documentation

◆ SwValueFieldType() [1/2]

SwValueFieldType::SwValueFieldType ( SwDoc pDocPtr,
SwFieldIds  nWhichId 

Definition at line 561 of file fldbas.cxx.

◆ SwValueFieldType() [2/2]

SwValueFieldType::SwValueFieldType ( const SwValueFieldType rTyp)

Definition at line 568 of file fldbas.cxx.

Member Function Documentation

◆ DoubleToString() [1/2]

OUString SwValueFieldType::DoubleToString ( const double &  rVal,
LanguageType  eLng 
) const

◆ DoubleToString() [2/2]

OUString SwValueFieldType::DoubleToString ( const double &  rVal,
sal_uInt32  nFormat 
) const

◆ EnableFormat()

void SwValueFieldType::EnableFormat ( bool  bFormat = true)

◆ ExpandValue()

OUString SwValueFieldType::ExpandValue ( const double &  rVal,
sal_uInt32  nFormat,
LanguageType  nLng 
) const

◆ GetDoc()

SwDoc * SwValueFieldType::GetDoc ( ) const

◆ SetDoc()

void SwValueFieldType::SetDoc ( SwDoc pNewDoc)

Definition at line 431 of file fldbas.hxx.

References m_pDoc.

◆ UseFormat()

bool SwValueFieldType::UseFormat ( ) const

Definition at line 435 of file fldbas.hxx.

References m_bUseFormat.

Member Data Documentation

◆ m_bUseFormat

bool SwValueFieldType::m_bUseFormat

Use number formatter.

Definition at line 421 of file fldbas.hxx.

Referenced by EnableFormat(), and UseFormat().

◆ m_pDoc

SwDoc* SwValueFieldType::m_pDoc

Definition at line 420 of file fldbas.hxx.

Referenced by DoubleToString(), ExpandValue(), GetDoc(), and SetDoc().

The documentation for this class was generated from the following files: