LibreOffice Module sw (master) 1
|
#include <expfld.hxx>
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 SwFieldType * | ChgTyp (SwFieldType *) override |
Set a new type. More... | |
virtual void | SetLanguage (LanguageType nLng) override |
set language of the format More... | |
SwDoc * | GetDoc () 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 | |
SwField & | operator= (SwField const &)=default |
SwField & | operator= (SwField &&)=default |
SwFieldType * | GetTyp () const |
virtual SwFieldType * | ChgTyp (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< SwField > | CopyField () 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 | |
SwTableFormula & | operator= (SwTableFormula const &)=default |
SwTableFormula & | operator= (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< SwField > | Copy () const override |
virtual const SwNode * | GetNodeOfFormula () 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 SwNode * | GetNodeOfFormula () 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... | |
Definition at line 381 of file expfld.hxx.
SwTableField::SwTableField | ( | SwTableFieldType * | pInitType, |
const OUString & | rFormel, | ||
sal_uInt16 | nSubType, | ||
sal_uLong | nFormat | ||
) |
void SwTableField::CalcField | ( | SwTableCalcPara & | rCalcPara | ) |
Definition at line 43 of file tblcalc.cxx.
References SwTableFormula::BoxNmToPtr(), SwCalc::Calculate(), SwTableFormula::ChgValid(), SwSbxValue::GetDouble(), SwCalc::IsCalcError(), SwTableCalcPara::IsStackOverflow(), SwTableCalcPara::m_pTable, SwTableCalcPara::m_rCalc, SwTableFormula::MakeFormula(), SetValue(), and sFormula.
Referenced by SwTableBox::GetValue(), and sw::DocumentFieldsManager::UpdateTableFields().
|
inline |
|
overrideprivatevirtual |
Implements SwField.
Definition at line 63 of file tblcalc.cxx.
References SwField::GetFormat(), SwTableFormula::GetFormula(), SwField::GetTyp(), SwValueField::GetValue(), SwField::IsAutomaticLanguage(), m_nSubType, m_sExpand, and SwTableField().
|
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().
|
private |
Definition at line 86 of file tblcalc.cxx.
References SwTableFormula::EXTRNL_NAME, SwNode::FindTableNode(), SwTableFormula::GetFormula(), SwTableFormula::GetNameType(), GetNodeOfFormula(), SwTableNode::GetTable(), and SwTableFormula::PtrToBoxNm().
Referenced by ExpandImpl(), and GetFieldName().
|
overridevirtual |
get name or content
Reimplemented from SwField.
Definition at line 74 of file tblcalc.cxx.
References GetCommand(), SwFieldType::GetName(), and SwField::GetTyp().
|
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().
|
overridevirtual |
The formula.
Reimplemented from SwField.
Definition at line 134 of file tblcalc.cxx.
References SwTableFormula::GetFormula().
|
overridevirtual |
Reimplemented from SwField.
Definition at line 118 of file tblcalc.cxx.
References m_nSubType.
Referenced by sw::DocumentFieldsManager::UpdateTableFields().
|
overridevirtual |
Reimplemented from SwField.
Definition at line 173 of file tblcalc.cxx.
References ChgExpStr(), FIELD_PROP_BOOL1, FIELD_PROP_FORMAT, FIELD_PROP_PAR1, FIELD_PROP_PAR2, nsSwGetSetExpType::GSE_FORMULA, m_nSubType, SwField::SetFormat(), SwTableFormula::SetFormula(), and nsSwExtendedSubType::SUB_CMD.
|
overridevirtual |
Reimplemented from SwField.
Definition at line 144 of file tblcalc.cxx.
References ExpandImpl(), FIELD_PROP_BOOL1, FIELD_PROP_FORMAT, FIELD_PROP_PAR1, FIELD_PROP_PAR2, SwField::GetFormat(), m_nSubType, m_sExpand, and nsSwExtendedSubType::SUB_CMD.
|
overridevirtual |
Reimplemented from SwField.
Definition at line 139 of file tblcalc.cxx.
References SwTableFormula::SetFormula().
|
overridevirtual |
Reimplemented from SwField.
Definition at line 123 of file tblcalc.cxx.
References m_nSubType, and nType.
|
overridevirtual |
Reimplemented from SwValueField.
Definition at line 128 of file tblcalc.cxx.
References SwValueField::ExpandValue(), SwField::GetFormat(), SwField::GetLanguage(), SwField::GetTyp(), m_sExpand, and SwValueField::SetValue().
Referenced by CalcField().
|
private |
Definition at line 384 of file expfld.hxx.
Referenced by Copy(), ExpandImpl(), GetSubType(), PutValue(), QueryValue(), and SetSubType().
|
private |
Definition at line 383 of file expfld.hxx.
Referenced by ChgExpStr(), Copy(), ExpandImpl(), QueryValue(), SetValue(), and SwTableField().