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:
[legend]
Collaboration diagram for SwValueFieldType:
[legend]

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
 
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

SwDocm_pDoc
 
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 414 of file fldbas.hxx.

Constructor & Destructor Documentation

◆ SwValueFieldType() [1/2]

SwValueFieldType::SwValueFieldType ( SwDoc pDocPtr,
SwFieldIds  nWhichId 
)
protected

Definition at line 532 of file fldbas.cxx.

◆ SwValueFieldType() [2/2]

SwValueFieldType::SwValueFieldType ( const SwValueFieldType rTyp)
protected

Definition at line 539 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)
inline

◆ ExpandValue()

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

◆ GetDoc()

SwDoc * SwValueFieldType::GetDoc ( ) const
inline

◆ SetDoc()

void SwValueFieldType::SetDoc ( SwDoc pNewDoc)
inline

Definition at line 428 of file fldbas.hxx.

References m_pDoc.

◆ UseFormat()

bool SwValueFieldType::UseFormat ( ) const
inline

Definition at line 432 of file fldbas.hxx.

References m_bUseFormat.

Member Data Documentation

◆ m_bUseFormat

bool SwValueFieldType::m_bUseFormat
private

Use number formatter.

Definition at line 418 of file fldbas.hxx.

Referenced by EnableFormat(), and UseFormat().

◆ m_pDoc

SwDoc* SwValueFieldType::m_pDoc
private

Definition at line 417 of file fldbas.hxx.

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


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