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

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

Constructor & Destructor Documentation

◆ SwValueFieldType() [1/2]

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

Definition at line 570 of file fldbas.cxx.

◆ SwValueFieldType() [2/2]

SwValueFieldType::SwValueFieldType ( const SwValueFieldType rTyp)
protected

Definition at line 577 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

◆ GetInputOrDateTime()

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

◆ SetDoc()

void SwValueFieldType::SetDoc ( SwDoc pNewDoc)
inline

Definition at line 432 of file fldbas.hxx.

References m_pDoc.

◆ UseFormat()

bool SwValueFieldType::UseFormat ( ) const
inline

Definition at line 436 of file fldbas.hxx.

References m_bUseFormat.

Referenced by GetInputOrDateTime().

Member Data Documentation

◆ m_bUseFormat

bool SwValueFieldType::m_bUseFormat
private

Use number formatter.

Definition at line 422 of file fldbas.hxx.

Referenced by EnableFormat(), and UseFormat().

◆ m_pDoc

SwDoc* SwValueFieldType::m_pDoc
private

Definition at line 421 of file fldbas.hxx.

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


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