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

#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
 
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
 
virtual OUString GetFormula () 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...
 
- 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...
 
- 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
 SwTableFormula (const OUString &rFormula)
 
OUString MakeFormula (SwTableCalcPara &rCalcPara) const
 
- Static Protected Member Functions inherited from SwTableFormula
static sal_uInt16 GetLnPosInTable (const SwTable &rTable, const SwTableBox *pBox)
 
- 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 374 of file expfld.hxx.

Constructor & Destructor Documentation

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

Definition at line 58 of file tblcalc.cxx.

References m_sExpand.

Referenced by Copy().

Member Function Documentation

void SwTableField::CalcField ( SwTableCalcPara rCalcPara)
void SwTableField::ChgExpStr ( const OUString &  rStr)
inline

Definition at line 395 of file expfld.hxx.

Referenced by PutValue().

std::unique_ptr< SwField > SwTableField::Copy ( ) const
overrideprivatevirtual
OUString SwTableField::ExpandImpl ( SwRootFrame const *  pLayout) const
overrideprivatevirtual

Implements SwField.

Definition at line 111 of file tblcalc.cxx.

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

Referenced by QueryValue().

OUString SwTableField::GetCommand ( )
private
OUString SwTableField::GetFieldName ( ) const
overridevirtual

get name or content

Returns
name or content.

Reimplemented from SwField.

Definition at line 77 of file tblcalc.cxx.

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

const SwNode * SwTableField::GetNodeOfFormula ( ) const
overrideprivatevirtual

Search TextNode containing the field.

search TextNode containing this field

Implements SwTableFormula.

Definition at line 83 of file tblcalc.cxx.

References SwIterator< TElementType, TSource, eMode >::First(), SwField::GetTyp(), and SwIterator< TElementType, TSource, eMode >::Next().

Referenced by GetCommand().

OUString SwTableField::GetPar2 ( ) const
overridevirtual

The formula.

Reimplemented from SwField.

Definition at line 143 of file tblcalc.cxx.

References SwTableFormula::GetFormula().

sal_uInt16 SwTableField::GetSubType ( ) const
overridevirtual

Reimplemented from SwField.

Definition at line 127 of file tblcalc.cxx.

References m_nSubType.

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

bool SwTableField::PutValue ( const css::uno::Any &  rVal,
sal_uInt16  nWhich 
)
overridevirtual
bool SwTableField::QueryValue ( css::uno::Any &  rVal,
sal_uInt16  nWhich 
) const
overridevirtual
void SwTableField::SetPar2 ( const OUString &  rStr)
overridevirtual

Reimplemented from SwField.

Definition at line 148 of file tblcalc.cxx.

References SwTableFormula::SetFormula().

void SwTableField::SetSubType ( sal_uInt16  nType)
overridevirtual

Reimplemented from SwField.

Definition at line 132 of file tblcalc.cxx.

References m_nSubType.

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

Member Data Documentation

sal_uInt16 SwTableField::m_nSubType
private

Definition at line 377 of file expfld.hxx.

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

OUString SwTableField::m_sExpand
private

Definition at line 376 of file expfld.hxx.

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


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