| 
    LibreOffice Module sw (master) 1
    
   | 
 
#include <fldbas.hxx>
Public Member Functions | |
| 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) | 
Protected Member Functions | |
| 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) | |
Private Attributes | |
| OUString | m_sFormula | 
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... | |
Definition at line 480 of file fldbas.hxx.
      
  | 
  protected | 
Definition at line 809 of file fldbas.cxx.
References LANGUAGE_SYSTEM.
      
  | 
  protected | 
Definition at line 814 of file fldbas.cxx.
References GetFormat(), and GetValue.
| OUString SwFormulaField::GetExpandedFormula | ( | ) | const | 
Definition at line 863 of file fldbas.cxx.
References SwValueField::GetDoc(), SwField::GetFormat(), GetFormula(), SwDoc::GetNumberFormatter(), SvNumberFormatter::GetOutputString(), SwField::GetTyp(), SwValueField::GetValue(), SvNumberFormatter::IsTextFormat(), and SAL_MAX_UINT32.
Referenced by SwSetExpField::GetPar2().
      
  | 
  overridevirtual | 
Reimplemented from SwField.
Definition at line 820 of file fldbas.cxx.
References m_sFormula.
Referenced by SwGetExpField::ChangeExpansion(), SwGetExpField::Copy(), SwSetExpField::Copy(), SwGetExpField::ExpandImpl(), SwSetExpField::ExpandImpl(), sw::DocumentFieldsManager::FieldsToExpand(), GetExpandedFormula(), SwGetExpField::GetFieldName(), SwSetExpField::GetFieldName(), GetInputOrDateTime(), SwGetExpField::GetPar2(), SwSetExpField::GetPar2(), SwGetExpField::QueryValue(), SwSetExpField::QueryValue(), SwFieldInputDlg::SwFieldInputDlg(), AttributeOutputBase::TextField(), and sw::DocumentFieldsManager::UpdateExpFieldsImpl().
| OUString SwFormulaField::GetInputOrDateTime | ( | ) | const | 
Query formula or formatted value for dialog.
Definition at line 889 of file fldbas.cxx.
References SwField::GetFormat(), GetFormula(), GetInputOrDateTime(), SwField::GetTyp(), SwValueField::GetValue(), comphelper::string::indexOfAny(), and u.
Referenced by GetInputOrDateTime(), and SwFieldVarPage::SubTypeHdl().
| void SwFormulaField::SetExpandedFormula | ( | const OUString & | rStr | ) | 
Definition at line 841 of file fldbas.cxx.
References SwValueField::GetDoc(), SwCalc::GetDocAppScriptLang(), SwField::GetFormat(), SwField::GetTyp(), m_sFormula, SAL_MAX_UINT32, and SwValueField::SetValue().
Referenced by SwSetExpField::SetPar2().
| void SwFormulaField::SetFormula | ( | const OUString & | rStr | ) | 
Definition at line 825 of file fldbas.cxx.
References SwValueField::GetDoc(), SwField::GetFormat(), m_sFormula, nPos, SAL_MAX_UINT32, SwValueField::SetValue(), and SwCalc::Str2Double().
Referenced by SwGetExpField::PutValue(), SwSetExpField::PutValue(), SwWW8ImplReader::Read_F_Seq(), SwGetExpField::SetPar2(), SwSetExpField::SetPar2(), SwGetExpField::SwGetExpField(), and SwSetExpField::SwSetExpField().
      
  | 
  private | 
Definition at line 483 of file fldbas.hxx.
Referenced by GetFormula(), SetExpandedFormula(), and SetFormula().