LibreOffice Module sw (master) 1
|
#include <expfld.hxx>
Public Member Functions | |
SwSetExpField (SwSetExpFieldType *, const OUString &rFormel, sal_uLong nFormat=0) | |
void | SetFormatField (SwFormatField &rFormatField) |
SwFormatField * | GetFormatField () |
double | GetValue (SwRootFrame const *pLayout) const |
void | SetValue (const double &rVal, SwRootFrame const *pLayout) |
const OUString & | GetExpStr (SwRootFrame const *pLayout) const |
void | ChgExpStr (const OUString &rExpand, SwRootFrame const *pLayout) |
void | SetPromptText (const OUString &rStr) |
const OUString & | GetPromptText () const |
void | SetInputFlag (bool bInp) |
bool | GetInputFlag () const |
virtual OUString | GetFieldName () const override |
virtual sal_uInt16 | GetSubType () const override |
virtual void | SetSubType (sal_uInt16 nType) override |
bool | IsSequenceField () const |
void | SetSeqNumber (sal_uInt16 n) |
Logical number, sequence fields. More... | |
sal_uInt16 | GetSeqNumber () const |
virtual OUString | GetPar1 () const override |
Query name only. More... | |
virtual OUString | GetPar2 () const override |
Query 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 SwFormulaField | |
virtual OUString | GetFormula () const override |
void | SetFormula (const OUString &rStr) |
void | SetExpandedFormula (const OUString &rStr) |
OUString | GetExpandedFormula () const |
OUString | GetInputOrDateTime () const |
Query formula or formatted value for dialog. More... | |
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) |
Private Member Functions | |
virtual OUString | ExpandImpl (SwRootFrame const *pLayout) const override |
pool item to which the SwSetExpField belongs More... | |
virtual std::unique_ptr< SwField > | Copy () const override |
virtual void | SetValue (const double &rVal) override |
Private Attributes | |
double | m_fValueRLHidden |
SwValueField; hidden redlines. More... | |
OUString | msExpand |
OUString | msExpandRLHidden |
hidden redlines More... | |
OUString | maPText |
bool | mbInput |
sal_uInt16 | mnSeqNo |
sal_uInt16 | mnSubType |
SwFormatField * | mpFormatField |
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 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) | |
Definition at line 204 of file expfld.hxx.
SwSetExpField::SwSetExpField | ( | SwSetExpFieldType * | pTyp, |
const OUString & | rFormel, | ||
sal_uLong | nFormat = 0 |
||
) |
Definition at line 802 of file expfld.cxx.
References SwSetExpFieldType::GetName(), IsSequenceField(), m_fValueRLHidden, mbInput, SwFormulaField::SetFormula(), and SwValueField::SetValue().
Referenced by Copy().
void SwSetExpField::ChgExpStr | ( | const OUString & | rExpand, |
SwRootFrame const * | pLayout | ||
) |
Definition at line 534 of file expfld.cxx.
References SwRootFrame::IsHideRedlines(), msExpand, and msExpandRLHidden.
Referenced by SwXTextField::attach(), sw::DocumentFieldsManager::FieldsToExpand(), PutValue(), SwSetExpFieldType::SetChapter(), and sw::DocumentFieldsManager::UpdateExpFieldsImpl().
|
overrideprivatevirtual |
Implements SwField.
Definition at line 864 of file expfld.cxx.
References SwField::GetFormat(), SwFormulaField::GetFormula(), SwField::GetLanguage(), GetSubType(), SwField::GetTyp(), SwValueField::GetValue(), SwField::IsAutomaticLanguage(), m_fValueRLHidden, maPText, mbInput, mnSeqNo, msExpand, msExpandRLHidden, and SwSetExpField().
|
overrideprivatevirtual |
pool item to which the SwSetExpField belongs
Implements SwField.
Definition at line 829 of file expfld.cxx.
References SwFormulaField::GetFormula(), SwFieldType::GetName(), SwField::GetTyp(), SwRootFrame::IsHideRedlines(), mnSubType, msExpand, msExpandRLHidden, nsSwExtendedSubType::SUB_CMD, and nsSwExtendedSubType::SUB_INVISIBLE.
const OUString & SwSetExpField::GetExpStr | ( | SwRootFrame const * | pLayout | ) | const |
Definition at line 529 of file expfld.cxx.
References SwRootFrame::IsHideRedlines(), msExpand, and msExpandRLHidden.
Referenced by sw::DocumentFieldsManager::FieldsToExpand(), QueryValue(), SwSetExpFieldType::SetChapter(), and sw::DocumentFieldsManager::UpdateExpFieldsImpl().
|
overridevirtual |
Reimplemented from SwField.
Definition at line 843 of file expfld.cxx.
References aStr, SwFormulaField::GetFormula(), GetName(), SwField::GetTyp(), SwFieldType::GetTypeStr(), IsSequenceField(), mbInput, Sequence, Set, and SetInput.
|
inline |
Definition at line 224 of file expfld.hxx.
Referenced by SwFieldEditDlg::EnsureSelection(), and SwXTextField::TransmuteLeadToInputField().
|
inline |
Definition at line 269 of file expfld.hxx.
References mbInput.
Referenced by SwField::GetTypeId(), lcl_FindInputField(), lcl_MakeFieldLst(), PutValue(), QueryValue(), SwFormatField::SwFormatField(), AttributeOutputBase::TextField(), SwXTextField::TransmuteLeadToInputField(), and SwTextInputField::UpdateFieldContent().
|
overridevirtual |
Query name only.
Reimplemented from SwField.
Definition at line 1017 of file expfld.cxx.
References GetName(), and SwField::GetTyp().
Referenced by QueryValue(), AttributeOutputBase::TextField(), and DocxAttributeOutput::WriteField_Impl().
|
overridevirtual |
Query formula.
Reimplemented from SwField.
Definition at line 1022 of file expfld.cxx.
References SwFormulaField::GetExpandedFormula(), SwFormulaField::GetFormula(), SwField::GetTyp(), nsSwGetSetExpType::GSE_STRING, and nType.
Referenced by SwFieldInputDlg::Apply(), SwFieldPage::InsertField(), WW8AttributeOutput::SetField(), and AttributeOutputBase::TextField().
|
inline |
Definition at line 263 of file expfld.hxx.
References maPText.
Referenced by SwFieldInputDlg::SwFieldInputDlg(), and AttributeOutputBase::TextField().
|
inline |
Definition at line 248 of file expfld.hxx.
Referenced by SwGetRefFieldType::FindAnchor(), SwSetExpFieldType::GetSeqFieldList(), SwSetExpFieldType::SetSeqRefNo(), and SwTOXBaseSection::UpdateSequence().
|
overridevirtual |
Reimplemented from SwField.
Definition at line 890 of file expfld.cxx.
References SwField::GetTyp(), and mnSubType.
Referenced by Copy(), SwTableBox::IsValidNumTextNd(), PutValue(), QueryValue(), and SwWW8ImplReader::Read_F_Seq().
double SwSetExpField::GetValue | ( | SwRootFrame const * | pLayout | ) | const |
Definition at line 927 of file expfld.cxx.
References SwValueField::GetValue(), SwRootFrame::IsHideRedlines(), and m_fValueRLHidden.
|
inline |
Definition at line 272 of file expfld.hxx.
References SwField::GetTyp(), and nsSwGetSetExpType::GSE_SEQ.
Referenced by GetFieldName(), SetValue(), SwSetExpField(), and sw::DocumentFieldsManager::UpdateExpFieldsImpl().
|
overridevirtual |
Reimplemented from SwField.
Definition at line 1044 of file expfld.cxx.
References ChgExpStr(), FIELD_PROP_BOOL1, FIELD_PROP_BOOL2, FIELD_PROP_BOOL3, FIELD_PROP_DOUBLE, FIELD_PROP_FORMAT, FIELD_PROP_PAR1, FIELD_PROP_PAR2, FIELD_PROP_PAR3, FIELD_PROP_PAR4, FIELD_PROP_SUBTYPE, FIELD_PROP_USHORT1, FIELD_PROP_USHORT2, GetInputFlag(), GetSubType(), SwField::GetTyp(), SwStyleNameMapper::GetUIName(), nsSwGetSetExpType::GSE_STRING, lcl_APIToSubType(), SwXFieldMaster::LocalizeFormula(), m_fValueRLHidden, maPText, mnSeqNo, mnSubType, SwField::PutValue(), SwField::SetFormat(), SwFormulaField::SetFormula(), SetInputFlag(), SwField::SetPar1(), SetSubType(), SetValue(), nsSwExtendedSubType::SUB_CMD, nsSwExtendedSubType::SUB_INVISIBLE, SwXTextField::TransmuteLeadToInputField(), and TxtColl.
|
overridevirtual |
Reimplemented from SwField.
Definition at line 1145 of file expfld.cxx.
References FIELD_PROP_BOOL1, FIELD_PROP_BOOL2, FIELD_PROP_BOOL3, FIELD_PROP_DOUBLE, FIELD_PROP_FORMAT, FIELD_PROP_PAR1, FIELD_PROP_PAR2, FIELD_PROP_PAR3, FIELD_PROP_PAR4, FIELD_PROP_SUBTYPE, FIELD_PROP_USHORT1, FIELD_PROP_USHORT2, GetExpStr(), SwField::GetFormat(), SwFormulaField::GetFormula(), GetInputFlag(), GetPar1(), SwStyleNameMapper::GetProgName(), GetSubType(), SwValueField::GetValue(), lcl_SubTypeToAPI(), SwXFieldMaster::LocalizeFormula(), maPText, mnSeqNo, mnSubType, SwField::QueryValue(), nsSwExtendedSubType::SUB_CMD, nsSwExtendedSubType::SUB_INVISIBLE, and TxtColl.
void SwSetExpField::SetFormatField | ( | SwFormatField & | rFormatField | ) |
Definition at line 824 of file expfld.cxx.
References mpFormatField.
Referenced by SwFormatField::SwFormatField().
|
inline |
Definition at line 266 of file expfld.hxx.
References mbInput.
Referenced by SwXTextField::attach(), PutValue(), SwWW8ImplReader::Read_F_InputVar(), and SwXTextField::TransmuteLeadToInputField().
|
overridevirtual |
Reimplemented from SwField.
Definition at line 1031 of file expfld.cxx.
References SwField::GetTyp(), nsSwGetSetExpType::GSE_SEQ, nsSwGetSetExpType::GSE_STRING, nType, SwFormulaField::SetExpandedFormula(), and SwFormulaField::SetFormula().
Referenced by SwFieldInputDlg::Apply().
|
inline |
Definition at line 260 of file expfld.hxx.
References maPText.
Referenced by SwXTextField::attach(), SwFieldPage::InsertField(), and SwWW8ImplReader::Read_F_InputVar().
|
inline |
Logical number, sequence fields.
Definition at line 247 of file expfld.hxx.
References n.
Referenced by SwXTextField::attach(), and SwSetExpFieldType::SetSeqRefNo().
|
overridevirtual |
Reimplemented from SwField.
Definition at line 882 of file expfld.cxx.
References SwField::GetTyp(), and mnSubType.
Referenced by SwWW8ImplReader::InsertTagField(), PutValue(), SwWW8ImplReader::Read_F_InputVar(), SwWW8ImplReader::Read_F_Seq(), SwWW8ImplReader::Read_F_Set(), and SwFltControlStack::SetAttrInDoc().
|
overrideprivatevirtual |
Reimplemented from SwValueField.
Definition at line 895 of file expfld.cxx.
References SwValueField::ExpandValue(), FormatNumber(), SwField::GetFormat(), SwField::GetLanguage(), SwField::GetTyp(), SwValueField::GetValue(), IsSequenceField(), msExpand, and SwValueField::SetValue().
Referenced by PutValue(), SwWW8ImplReader::Read_F_ANumber(), SetValue(), and sw::DocumentFieldsManager::UpdateExpFieldsImpl().
void SwSetExpField::SetValue | ( | const double & | rVal, |
SwRootFrame const * | pLayout | ||
) |
Definition at line 906 of file expfld.cxx.
References SwValueField::ExpandValue(), FormatNumber(), SwField::GetFormat(), SwField::GetLanguage(), SwField::GetTyp(), SwRootFrame::IsHideRedlines(), IsSequenceField(), m_fValueRLHidden, msExpandRLHidden, and SetValue().
|
private |
SwValueField; hidden redlines.
Definition at line 206 of file expfld.hxx.
Referenced by Copy(), GetValue(), PutValue(), SetValue(), and SwSetExpField().
|
private |
Definition at line 209 of file expfld.hxx.
Referenced by Copy(), GetPromptText(), PutValue(), QueryValue(), and SetPromptText().
|
private |
Definition at line 210 of file expfld.hxx.
Referenced by Copy(), GetFieldName(), GetInputFlag(), SetInputFlag(), and SwSetExpField().
|
private |
Definition at line 211 of file expfld.hxx.
Referenced by Copy(), PutValue(), and QueryValue().
|
private |
Definition at line 212 of file expfld.hxx.
Referenced by ExpandImpl(), GetSubType(), PutValue(), QueryValue(), and SetSubType().
|
private |
Definition at line 213 of file expfld.hxx.
Referenced by SetFormatField().
|
private |
Definition at line 207 of file expfld.hxx.
Referenced by ChgExpStr(), Copy(), ExpandImpl(), GetExpStr(), and SetValue().
|
private |
hidden redlines
Definition at line 208 of file expfld.hxx.
Referenced by ChgExpStr(), Copy(), ExpandImpl(), GetExpStr(), and SetValue().