LibreOffice Module sw (master)  1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
SwGetExpField Class Referencefinal

#include <expfld.hxx>

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

Public Member Functions

 SwGetExpField (SwGetExpFieldType *, const OUString &rFormel, sal_uInt16 nSubType, sal_uLong nFormat)
 
double GetValue (SwRootFrame const *pLayout) const
 
void SetValue (const double &rVal, SwRootFrame const *pLayout)
 
virtual void SetLanguage (LanguageType nLng) override
 set language of the format More...
 
void ChgExpStr (const OUString &rExpand, SwRootFrame const *pLayout)
 
bool IsInBodyText () const
 Called by formatting. More...
 
void ChgBodyTextFlag (bool bIsInBody)
 Set by UpdateExpFields where node position is known. More...
 
void ChangeExpansion (const SwFrame &, const SwTextField &)
 For fields in header/footer/footnotes/flys: Only called by formatting!! More...
 
virtual OUString GetFieldName () const override
 get name or content More...
 
virtual OUString GetPar2 () const override
 Change formula. More...
 
virtual void SetPar2 (const OUString &rStr) override
 
virtual sal_uInt16 GetSubType () const override
 
virtual void SetSubType (sal_uInt16 nType) override
 
virtual bool QueryValue (css::uno::Any &rVal, sal_uInt16 nWhich) const override
 
virtual bool PutValue (const css::uno::Any &rVal, sal_uInt16 nWhich) override
 
void SetLateInitialization ()
 
- Public Member Functions inherited from SwFormulaField
virtual OUString GetFormula () const override
 
void SetFormula (const OUString &rStr)
 
void SetExpandedFormula (const OUString &rStr)
 
OUString GetExpandedFormula () const
 
- Public Member Functions inherited from SwValueField
virtual ~SwValueField () override
 
virtual SwFieldTypeChgTyp (SwFieldType *) override
 Set a new type. More...
 
SwDocGetDoc () const
 
virtual double GetValue () const
 
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...
 
std::unique_ptr< SwFieldCopyField () const
 
SwFieldIds Which () const
 ResId. More...
 
SwFieldTypesEnum GetTypeId () const
 
LanguageType GetLanguage () const
 Language at field position. More...
 
sal_uInt32 GetFormat () const
 Query parameters for dialog and for BASIC. More...
 
virtual OUString GetPar1 () const
 
void ChangeFormat (sal_uInt32 n)
 
virtual void SetPar1 (const OUString &rStr)
 
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_Int32 GetReferenceTextPos (const SwFormatField &rFormat, SwDoc &rDoc, sal_Int32 nHint=0)
 Find the index of the reference text following the current field. More...
 
- Static Public Member Functions inherited from SwValueField
static sal_uInt32 GetSystemFormat (SvNumberFormatter *pFormatter, sal_uInt32 nFormat)
 get format in office language More...
 

Private Member Functions

virtual OUString ExpandImpl (SwRootFrame const *pLayout) const override
 
virtual std::unique_ptr< SwFieldCopy () const override
 
virtual void SetValue (const double &rVal) override
 

Private Attributes

double m_fValueRLHidden
 SwValueField; hidden redlines. More...
 
OUString m_sExpand
 
OUString m_sExpandRLHidden
 hidden redlines More...
 
bool m_bIsInBodyText
 
sal_uInt16 m_nSubType
 
bool m_bLateInitialization
 

Additional Inherited Members

- Protected Member Functions inherited from SwFormulaField
 SwFormulaField (SwValueFieldType *pFieldType, sal_uInt32 nFormat, const double fVal)
 
 SwFormulaField (const SwFormulaField &rField)
 
- Protected Member Functions inherited from SwValueField
 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)
 

Detailed Description

Definition at line 82 of file expfld.hxx.

Constructor & Destructor Documentation

SwGetExpField::SwGetExpField ( SwGetExpFieldType pTyp,
const OUString &  rFormel,
sal_uInt16  nSubType,
sal_uLong  nFormat 
)

Definition at line 281 of file expfld.cxx.

References SwFormulaField::SetFormula().

Referenced by Copy().

Member Function Documentation

void SwGetExpField::ChangeExpansion ( const SwFrame rFrame,
const SwTextField rField 
)
void SwGetExpField::ChgBodyTextFlag ( bool  bIsInBody)
inline

Set by UpdateExpFields where node position is known.

Definition at line 139 of file expfld.hxx.

References m_bIsInBodyText.

Referenced by SwDocUpdateField::GetBodyNode(), and SwTextFormatter::NewFieldPortion().

void SwGetExpField::ChgExpStr ( const OUString &  rExpand,
SwRootFrame const *  pLayout 
)
std::unique_ptr< SwField > SwGetExpField::Copy ( ) const
overrideprivatevirtual
OUString SwGetExpField::ExpandImpl ( SwRootFrame const *  pLayout) const
overrideprivatevirtual
OUString SwGetExpField::GetFieldName ( ) const
overridevirtual

get name or content

Returns
name or content.

Reimplemented from SwField.

Definition at line 313 of file expfld.cxx.

References Formel, Get, SwFormulaField::GetFormula(), SwFieldType::GetTypeStr(), nsSwGetSetExpType::GSE_FORMULA, m_nSubType, and nType.

OUString SwGetExpField::GetPar2 ( ) const
overridevirtual

Change formula.

Reimplemented from SwField.

Definition at line 396 of file expfld.cxx.

References SwFormulaField::GetFormula().

sal_Int32 SwGetExpField::GetReferenceTextPos ( const SwFormatField rFormat,
SwDoc rDoc,
sal_Int32  nHint = 0 
)
static
sal_uInt16 SwGetExpField::GetSubType ( ) const
overridevirtual

Reimplemented from SwField.

Definition at line 406 of file expfld.cxx.

References m_nSubType.

Referenced by ChangeExpansion(), PutValue(), and QueryValue().

double SwGetExpField::GetValue ( SwRootFrame const *  pLayout) const
bool SwGetExpField::IsInBodyText ( ) const
inline

Called by formatting.

Definition at line 135 of file expfld.hxx.

References m_bIsInBodyText.

Referenced by SwTextFormatter::NewFieldPortion(), and sw::DocumentFieldsManager::UpdateExpFieldsImpl().

bool SwGetExpField::PutValue ( const css::uno::Any &  rVal,
sal_uInt16  nWhich 
)
overridevirtual
bool SwGetExpField::QueryValue ( css::uno::Any &  rVal,
sal_uInt16  nWhich 
) const
overridevirtual
void SwGetExpField::SetLanguage ( LanguageType  nLng)
overridevirtual

set language of the format

Reimplemented from SwValueField.

Definition at line 416 of file expfld.cxx.

References m_nSubType, SwField::SetLanguage(), SwValueField::SetLanguage(), and nsSwExtendedSubType::SUB_CMD.

void SwGetExpField::SetLateInitialization ( )
inline

Definition at line 131 of file expfld.hxx.

Referenced by SwXTextField::attach().

void SwGetExpField::SetPar2 ( const OUString &  rStr)
overridevirtual

Reimplemented from SwField.

Definition at line 401 of file expfld.cxx.

References SwFormulaField::SetFormula().

void SwGetExpField::SetSubType ( sal_uInt16  nType)
overridevirtual

Reimplemented from SwField.

Definition at line 411 of file expfld.cxx.

References m_nSubType.

Referenced by ChangeExpansion(), and PutValue().

void SwGetExpField::SetValue ( const double &  rVal)
overrideprivatevirtual
void SwGetExpField::SetValue ( const double &  rVal,
SwRootFrame const *  pLayout 
)

Member Data Documentation

bool SwGetExpField::m_bIsInBodyText
private

Definition at line 87 of file expfld.hxx.

Referenced by ChangeExpansion(), ChgBodyTextFlag(), Copy(), and IsInBodyText().

bool SwGetExpField::m_bLateInitialization
private

Definition at line 90 of file expfld.hxx.

Referenced by ChangeExpansion(), and Copy().

double SwGetExpField::m_fValueRLHidden
private

SwValueField; hidden redlines.

Definition at line 84 of file expfld.hxx.

Referenced by Copy(), GetValue(), PutValue(), and SetValue().

sal_uInt16 SwGetExpField::m_nSubType
private
OUString SwGetExpField::m_sExpand
private

Definition at line 85 of file expfld.hxx.

Referenced by ChangeExpansion(), ChgExpStr(), Copy(), ExpandImpl(), QueryValue(), and SetValue().

OUString SwGetExpField::m_sExpandRLHidden
private

hidden redlines

Definition at line 86 of file expfld.hxx.

Referenced by ChangeExpansion(), ChgExpStr(), Copy(), ExpandImpl(), and SetValue().


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