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

#include <expfld.hxx>

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

Public Member Functions

 SwTableField (SwTableFieldType *, const OUString &rFormel, sal_uInt16 nSubType, sal_uLong nFormat)
 
virtual void SetValue (const double &rVal) override
 
virtual sal_uInt16 GetSubType () const override
 
virtual void SetSubType (sal_uInt16 nType) override
 
void ChgExpStr (const OUString &rStr)
 
void CalcField (SwTableCalcPara &rCalcPara)
 
virtual OUString GetFieldName () const override
 get name or content More...
 
virtual OUString GetPar2 () const override
 The formula. More...
 
virtual void SetPar2 (const OUString &rStr) 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
 
- Public Member Functions inherited from SwValueField
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
 
virtual SwFieldTypeChgTyp (SwFieldType *)
 Set new type (used for copying among documents). More...
 
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...
 
virtual void SetLanguage (LanguageType nLng)
 
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...
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 
const OUString & GetTitle () const
 
void SetTitle (const OUString &rTitle)
 
- Public Member Functions inherited from SwTableFormula
virtual ~SwTableFormula ()
 
 SwTableFormula (SwTableFormula const &)=default
 
 SwTableFormula (SwTableFormula &&)=default
 
SwTableFormulaoperator= (SwTableFormula const &)=default
 
SwTableFormulaoperator= (SwTableFormula &&)=default
 
void PtrToBoxNm (const SwTable *pTable)
 create from the internal formula (for CORE) the external formula (for UI) More...
 
void BoxNmToPtr (const SwTable *pTable)
 create from the external formula the internal More...
 
void ToRelBoxNm (const SwTable *pTable)
 create from the external/internal formula the relative formula More...
 
void ToSplitMergeBoxNm (SwTableFormulaUpdate &rTableUpd)
 gets called before/after merging/splitting of tables More...
 
bool IsIntrnlName () const
 
NameType GetNameType () const
 
bool IsValid () const
 
void ChgValid (bool bNew)
 
const OUString & GetFormula () const
 
void SetFormula (const OUString &rNew)
 
void GetBoxesOfFormula (const SwTable &rTable, SwSelBoxes &rBoxes)
 
bool HasValidBoxes () const
 

Private Member Functions

virtual OUString ExpandImpl (SwRootFrame const *pLayout) const override
 
virtual std::unique_ptr< SwFieldCopy () const override
 
virtual const SwNodeGetNodeOfFormula () const override
 Search TextNode containing the field. More...
 
OUString GetCommand ()
 

Private Attributes

OUString m_sExpand
 
sal_uInt16 m_nSubType
 

Additional Inherited Members

- Static Public Member Functions inherited from SwValueField
static sal_uInt32 GetSystemFormat (SvNumberFormatter *pFormatter, sal_uInt32 nFormat)
 get format in office language More...
 
- Static Public Member Functions inherited from SwTableFormula
static sal_uInt16 GetLnPosInTable (const SwTable &rTable, const SwTableBox *pBox)
 
- Protected Types inherited from SwTableFormula
enum  NameType {
  EXTRNL_NAME ,
  INTRNL_NAME ,
  REL_NAME
}
 
- 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)
 
- Protected Member Functions inherited from SwTableFormula
virtual const SwNodeGetNodeOfFormula () const =0
 
 SwTableFormula (OUString aFormula)
 
OUString MakeFormula (SwTableCalcPara &rCalcPara) const
 
- Protected Attributes inherited from SwTableFormula
OUString m_sFormula
 current formula More...
 
NameType m_eNmType
 current display method More...
 
bool m_bValidValue
 true: recalculate formula More...
 

Detailed Description

Definition at line 381 of file expfld.hxx.

Constructor & Destructor Documentation

◆ SwTableField()

SwTableField::SwTableField ( SwTableFieldType pInitType,
const OUString &  rFormel,
sal_uInt16  nSubType,
sal_uLong  nFormat 
)

Definition at line 55 of file tblcalc.cxx.

References m_sExpand, and nType.

Referenced by Copy().

Member Function Documentation

◆ CalcField()

void SwTableField::CalcField ( SwTableCalcPara rCalcPara)

◆ ChgExpStr()

void SwTableField::ChgExpStr ( const OUString &  rStr)
inline

Definition at line 402 of file expfld.hxx.

References m_sExpand.

Referenced by PutValue().

◆ Copy()

std::unique_ptr< SwField > SwTableField::Copy ( ) const
overrideprivatevirtual

◆ ExpandImpl()

OUString SwTableField::ExpandImpl ( SwRootFrame const *  pLayout) const
overrideprivatevirtual

Implements SwField.

Definition at line 102 of file tblcalc.cxx.

References GetCommand(), nsSwGetSetExpType::GSE_STRING, m_nSubType, m_sExpand, and nsSwExtendedSubType::SUB_CMD.

Referenced by QueryValue().

◆ GetCommand()

OUString SwTableField::GetCommand ( )
private

◆ GetFieldName()

OUString SwTableField::GetFieldName ( ) const
overridevirtual

get name or content

Returns
name or content.

Reimplemented from SwField.

Definition at line 74 of file tblcalc.cxx.

References GetCommand(), SwFieldType::GetName(), and SwField::GetTyp().

◆ GetNodeOfFormula()

const SwNode * SwTableField::GetNodeOfFormula ( ) const
overrideprivatevirtual

Search TextNode containing the field.

search TextNode containing this field

Implements SwTableFormula.

Definition at line 80 of file tblcalc.cxx.

References SwFieldType::FindFormatForField(), SwFormatField::GetTextField(), SwTextField::GetTextNode(), and SwField::GetTyp().

Referenced by GetCommand().

◆ GetPar2()

OUString SwTableField::GetPar2 ( ) const
overridevirtual

The formula.

Reimplemented from SwField.

Definition at line 134 of file tblcalc.cxx.

References SwTableFormula::GetFormula().

◆ GetSubType()

sal_uInt16 SwTableField::GetSubType ( ) const
overridevirtual

Reimplemented from SwField.

Definition at line 118 of file tblcalc.cxx.

References m_nSubType.

Referenced by sw::DocumentFieldsManager::UpdateTableFields().

◆ PutValue()

bool SwTableField::PutValue ( const css::uno::Any &  rVal,
sal_uInt16  nWhich 
)
overridevirtual

◆ QueryValue()

bool SwTableField::QueryValue ( css::uno::Any &  rVal,
sal_uInt16  nWhich 
) const
overridevirtual

◆ SetPar2()

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

Reimplemented from SwField.

Definition at line 139 of file tblcalc.cxx.

References SwTableFormula::SetFormula().

◆ SetSubType()

void SwTableField::SetSubType ( sal_uInt16  nType)
overridevirtual

Reimplemented from SwField.

Definition at line 123 of file tblcalc.cxx.

References m_nSubType, and nType.

◆ SetValue()

void SwTableField::SetValue ( const double &  rVal)
overridevirtual

Member Data Documentation

◆ m_nSubType

sal_uInt16 SwTableField::m_nSubType
private

Definition at line 384 of file expfld.hxx.

Referenced by Copy(), ExpandImpl(), GetSubType(), PutValue(), QueryValue(), and SetSubType().

◆ m_sExpand

OUString SwTableField::m_sExpand
private

Definition at line 383 of file expfld.hxx.

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


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