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

#include <expfld.hxx>

Inheritance diagram for SwSetExpField:
Collaboration diagram for SwSetExpField:

Public Member Functions

 SwSetExpField (SwSetExpFieldType *, const OUString &rFormel, sal_uLong nFormat=0)
void SetFormatField (SwFormatField &rFormatField)
SwFormatFieldGetFormatField ()
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
- 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...
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...

Private Member Functions

virtual OUString ExpandImpl (SwRootFrame const *pLayout) const override
 pool item to which the SwSetExpField belongs More...
virtual std::unique_ptr< SwFieldCopy () 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

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)

Detailed Description

Definition at line 199 of file expfld.hxx.

Constructor & Destructor Documentation

SwSetExpField::SwSetExpField ( SwSetExpFieldType pTyp,
const OUString &  rFormel,
sal_uLong  nFormat = 0 

Member Function Documentation

void SwSetExpField::ChgExpStr ( const OUString &  rExpand,
SwRootFrame const *  pLayout 
std::unique_ptr< SwField > SwSetExpField::Copy ( ) const
OUString SwSetExpField::ExpandImpl ( SwRootFrame const *  pLayout) const
const OUString & SwSetExpField::GetExpStr ( SwRootFrame const *  pLayout) const
OUString SwSetExpField::GetFieldName ( ) const
the field name

Reimplemented from SwField.

Definition at line 846 of file expfld.cxx.

References aStr, SwFormulaField::GetFormula(), SwField::GetTyp(), SwFieldType::GetTypeStr(), IsSequenceField(), mbInput, Sequence, Set, and SetInput.

SwFormatField* SwSetExpField::GetFormatField ( )
bool SwSetExpField::GetInputFlag ( ) const
OUString SwSetExpField::GetPar1 ( ) const

Query name only.

Reimplemented from SwField.

Definition at line 1023 of file expfld.cxx.

References SwField::GetTyp().

Referenced by QueryValue(), AttributeOutputBase::TextField(), and DocxAttributeOutput::WriteField_Impl().

OUString SwSetExpField::GetPar2 ( ) const
const OUString & SwSetExpField::GetPromptText ( ) const

Definition at line 258 of file expfld.hxx.

References maPText.

Referenced by SwFieldInputDlg::SwFieldInputDlg(), and AttributeOutputBase::TextField().

sal_uInt16 SwSetExpField::GetSeqNumber ( ) const

Definition at line 243 of file expfld.hxx.

Referenced by SwSetExpFieldType::SetSeqRefNo(), and SwTOXBaseSection::UpdateSequence().

sal_uInt16 SwSetExpField::GetSubType ( ) const

Reimplemented from SwField.

Definition at line 893 of file expfld.cxx.

References SwField::GetTyp(), and mnSubType.

Referenced by Copy(), PutValue(), QueryValue(), and SwWW8ImplReader::Read_F_Seq().

double SwSetExpField::GetValue ( SwRootFrame const *  pLayout) const
bool SwSetExpField::IsSequenceField ( ) const
bool SwSetExpField::PutValue ( const css::uno::Any &  rVal,
sal_uInt16  nWhich 
bool SwSetExpField::QueryValue ( css::uno::Any &  rVal,
sal_uInt16  nWhich 
) const
void SwSetExpField::SetFormatField ( SwFormatField rFormatField)

Definition at line 827 of file expfld.cxx.

References mpFormatField.

Referenced by SwFormatField::SwFormatField().

void SwSetExpField::SetInputFlag ( bool  bInp)

Definition at line 261 of file expfld.hxx.

References mbInput.

Referenced by SwXTextField::attach(), PutValue(), and SwWW8ImplReader::Read_F_InputVar().

void SwSetExpField::SetPar2 ( const OUString &  rStr)
void SwSetExpField::SetPromptText ( const OUString &  rStr)

Definition at line 255 of file expfld.hxx.

References maPText.

Referenced by SwXTextField::attach(), SwFieldPage::InsertField(), and SwWW8ImplReader::Read_F_InputVar().

void SwSetExpField::SetSeqNumber ( sal_uInt16  n)

Logical number, sequence fields.

Definition at line 242 of file expfld.hxx.

Referenced by SwXTextField::attach(), and SwSetExpFieldType::SetSeqRefNo().

void SwSetExpField::SetSubType ( sal_uInt16  nType)
void SwSetExpField::SetValue ( const double &  rVal)
void SwSetExpField::SetValue ( const double &  rVal,
SwRootFrame const *  pLayout 

Member Data Documentation

double SwSetExpField::m_fValueRLHidden

SwValueField; hidden redlines.

Definition at line 201 of file expfld.hxx.

Referenced by Copy(), GetValue(), PutValue(), SetValue(), and SwSetExpField().

OUString SwSetExpField::maPText

Definition at line 204 of file expfld.hxx.

Referenced by Copy(), GetPromptText(), PutValue(), QueryValue(), and SetPromptText().

bool SwSetExpField::mbInput

Definition at line 205 of file expfld.hxx.

Referenced by Copy(), GetFieldName(), GetInputFlag(), SetInputFlag(), and SwSetExpField().

sal_uInt16 SwSetExpField::mnSeqNo

Definition at line 206 of file expfld.hxx.

Referenced by Copy(), PutValue(), and QueryValue().

sal_uInt16 SwSetExpField::mnSubType

Definition at line 207 of file expfld.hxx.

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

SwFormatField* SwSetExpField::mpFormatField

Definition at line 208 of file expfld.hxx.

Referenced by SetFormatField().

OUString SwSetExpField::msExpand

Definition at line 202 of file expfld.hxx.

Referenced by ChgExpStr(), Copy(), ExpandImpl(), GetExpStr(), and SetValue().

OUString SwSetExpField::msExpandRLHidden

hidden redlines

Definition at line 203 of file expfld.hxx.

Referenced by ChgExpStr(), Copy(), ExpandImpl(), GetExpStr(), and SetValue().

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