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

#include <fldbas.hxx>

Inheritance diagram for SwValueField:
[legend]
Collaboration diagram for SwValueField:
[legend]

Public Member Functions

virtual ~SwValueField () override
 
virtual SwFieldTypeChgTyp (SwFieldType *) override
 Set a new type. More...
 
virtual void SetLanguage (LanguageType nLng) override
 set language of the format More...
 
SwDocGetDoc () const
 
virtual double GetValue () const
 
virtual void SetValue (const double &rVal)
 
OUString ExpandValue (const double &rVal, sal_uInt32 nFormat, LanguageType nLng) const
 
void dumpAsXml (xmlTextWriterPtr pWriter) const override
 
- Public Member Functions inherited from SwField
virtual ~SwField ()
 
 SwField (SwField const &)=default
 
 SwField (SwField &&)=default
 
SwFieldoperator= (SwField const &)=default
 
SwFieldoperator= (SwField &&)=default
 
SwFieldTypeGetTyp () const
 
OUString ExpandField (bool bCached, SwRootFrame const *pLayout) const
 expand the field. More...
 
virtual OUString GetFieldName () const
 get name or content More...
 
std::unique_ptr< SwFieldCopyField () const
 
SwFieldIds Which () const
 ResId. More...
 
SwFieldTypesEnum GetTypeId () const
 
virtual sal_uInt16 GetSubType () const
 
virtual void SetSubType (sal_uInt16)
 
LanguageType GetLanguage () const
 Language at field position. More...
 
sal_uInt32 GetFormat () const
 Query parameters for dialog and for BASIC. More...
 
virtual OUString GetPar1 () const
 
virtual OUString GetPar2 () const
 
virtual OUString GetFormula () const
 
void ChangeFormat (sal_uInt32 n)
 
virtual void SetPar1 (const OUString &rStr)
 
virtual void SetPar2 (const OUString &rStr)
 
virtual bool QueryValue (css::uno::Any &rVal, sal_uInt16 nWhichId) const
 
virtual bool PutValue (const css::uno::Any &rVal, sal_uInt16 nWhichId)
 
bool HasClickHdl () const
 Does the field possess an action on its ClickHandler? (e.g. INetFields, ...). More...
 
bool IsFixed () const
 
bool IsAutomaticLanguage () const
 
void SetAutomaticLanguage (bool const bSet)
 
virtual OUString GetDescription () const
 
bool IsClickable () const
 Is this field clickable? More...
 

Static Public Member Functions

static sal_uInt32 GetSystemFormat (SvNumberFormatter *pFormatter, sal_uInt32 nFormat)
 get format in office language More...
 

Protected Member Functions

 SwValueField (SwValueFieldType *pFieldType, sal_uInt32 nFormat, LanguageType nLang=LANGUAGE_SYSTEM, const double fVal=0.0)
 
 SwValueField (const SwValueField &rField)
 
- Protected Member Functions inherited from SwField
void SetFormat (sal_uInt32 const nSet)
 
 SwField (SwFieldType *pTyp, sal_uInt32 nFormat=0, LanguageType nLang=LANGUAGE_SYSTEM, bool m_bUseFieldValueCache=true)
 

Private Attributes

double m_fValue
 

Detailed Description

Definition at line 429 of file fldbas.hxx.

Constructor & Destructor Documentation

SwValueField::SwValueField ( SwValueFieldType pFieldType,
sal_uInt32  nFormat,
LanguageType  nLang = LANGUAGE_SYSTEM,
const double  fVal = 0.0 
)
protected

Definition at line 552 of file fldbas.cxx.

SwValueField::SwValueField ( const SwValueField rField)
protected

Definition at line 559 of file fldbas.cxx.

References GetValue.

SwValueField::~SwValueField ( )
overridevirtual

Definition at line 565 of file fldbas.cxx.

Member Function Documentation

SwFieldType * SwValueField::ChgTyp ( SwFieldType pNewType)
overridevirtual

Set a new type.

This is needed/used for copying between documents. Needs to be always of the same type.

Parameters
pNewTypeThe new type.
Returns
The old type.

Reimplemented from SwField.

Reimplemented in SwDBField.

Definition at line 576 of file fldbas.cxx.

References SwField::ChgTyp(), GetDoc(), SwField::GetFormat(), SvNumberFormatter::GetMergeFormatIndex(), SwDoc::GetNumberFormatter(), SwField::GetTyp(), SvNumberFormatter::HasMergeFormatTable(), and SwField::SetFormat().

Referenced by SwDBField::ChgTyp().

void SwValueField::dumpAsXml ( xmlTextWriterPtr  pWriter) const
overridevirtual

Reimplemented from SwField.

Reimplemented in SwUserField.

Definition at line 624 of file fldbas.cxx.

References SwField::dumpAsXml(), and m_fValue.

Referenced by SwUserField::dumpAsXml().

OUString SwValueField::ExpandValue ( const double &  rVal,
sal_uInt32  nFormat,
LanguageType  nLng 
) const
inline
SwDoc* SwValueField::GetDoc ( ) const
inline
sal_uInt32 SwValueField::GetSystemFormat ( SvNumberFormatter pFormatter,
sal_uInt32  nFormat 
)
static
double SwValueField::GetValue ( ) const
virtual
void SwValueField::SetLanguage ( LanguageType  nLng)
overridevirtual
void SwValueField::SetValue ( const double &  rVal)
virtual

Member Data Documentation

double SwValueField::m_fValue
private

Definition at line 432 of file fldbas.hxx.

Referenced by dumpAsXml(), GetValue(), and SetValue().


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