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

#include <expfld.hxx>

Inheritance diagram for SwSetExpField:
[legend]
Collaboration diagram for SwSetExpField:
[legend]

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
 
OUString GetInputOrDateTime () const
 Query formula or formatted value for dialog. More...
 
- 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
 
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
 
SwFieldoperator= (SwField const &)=default
 
SwFieldoperator= (SwField &&)=default
 
SwFieldTypeGetTyp () const
 
virtual SwFieldTypeChgTyp (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< SwFieldCopyField () 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< 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
 
SwFormatFieldmpFormatField
 

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 204 of file expfld.hxx.

Constructor & Destructor Documentation

◆ SwSetExpField()

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

Member Function Documentation

◆ ChgExpStr()

void SwSetExpField::ChgExpStr ( const OUString &  rExpand,
SwRootFrame const *  pLayout 
)

◆ Copy()

std::unique_ptr< SwField > SwSetExpField::Copy ( ) const
overrideprivatevirtual

◆ ExpandImpl()

OUString SwSetExpField::ExpandImpl ( SwRootFrame const *  pLayout) const
overrideprivatevirtual

◆ GetExpStr()

const OUString & SwSetExpField::GetExpStr ( SwRootFrame const *  pLayout) const

◆ GetFieldName()

OUString SwSetExpField::GetFieldName ( ) const
overridevirtual
Returns
the field name

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.

◆ GetFormatField()

SwFormatField * SwSetExpField::GetFormatField ( )
inline

◆ GetInputFlag()

bool SwSetExpField::GetInputFlag ( ) const
inline

◆ GetPar1()

OUString SwSetExpField::GetPar1 ( ) const
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().

◆ GetPar2()

OUString SwSetExpField::GetPar2 ( ) const
overridevirtual

◆ GetPromptText()

const OUString & SwSetExpField::GetPromptText ( ) const
inline

Definition at line 263 of file expfld.hxx.

References maPText.

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

◆ GetSeqNumber()

sal_uInt16 SwSetExpField::GetSeqNumber ( ) const
inline

◆ GetSubType()

sal_uInt16 SwSetExpField::GetSubType ( ) const
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().

◆ GetValue()

double SwSetExpField::GetValue ( SwRootFrame const *  pLayout) const

◆ IsSequenceField()

bool SwSetExpField::IsSequenceField ( ) const
inline

◆ PutValue()

bool SwSetExpField::PutValue ( const css::uno::Any &  rVal,
sal_uInt16  nWhich 
)
overridevirtual

◆ QueryValue()

bool SwSetExpField::QueryValue ( css::uno::Any &  rVal,
sal_uInt16  nWhich 
) const
overridevirtual

◆ SetFormatField()

void SwSetExpField::SetFormatField ( SwFormatField rFormatField)

Definition at line 824 of file expfld.cxx.

References mpFormatField.

Referenced by SwFormatField::SwFormatField().

◆ SetInputFlag()

void SwSetExpField::SetInputFlag ( bool  bInp)
inline

◆ SetPar2()

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

◆ SetPromptText()

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

Definition at line 260 of file expfld.hxx.

References maPText.

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

◆ SetSeqNumber()

void SwSetExpField::SetSeqNumber ( sal_uInt16  n)
inline

Logical number, sequence fields.

Definition at line 247 of file expfld.hxx.

References n.

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

◆ SetSubType()

void SwSetExpField::SetSubType ( sal_uInt16  nType)
overridevirtual

◆ SetValue() [1/2]

void SwSetExpField::SetValue ( const double &  rVal)
overrideprivatevirtual

◆ SetValue() [2/2]

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

Member Data Documentation

◆ m_fValueRLHidden

double SwSetExpField::m_fValueRLHidden
private

SwValueField; hidden redlines.

Definition at line 206 of file expfld.hxx.

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

◆ maPText

OUString SwSetExpField::maPText
private

Definition at line 209 of file expfld.hxx.

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

◆ mbInput

bool SwSetExpField::mbInput
private

Definition at line 210 of file expfld.hxx.

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

◆ mnSeqNo

sal_uInt16 SwSetExpField::mnSeqNo
private

Definition at line 211 of file expfld.hxx.

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

◆ mnSubType

sal_uInt16 SwSetExpField::mnSubType
private

Definition at line 212 of file expfld.hxx.

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

◆ mpFormatField

SwFormatField* SwSetExpField::mpFormatField
private

Definition at line 213 of file expfld.hxx.

Referenced by SetFormatField().

◆ msExpand

OUString SwSetExpField::msExpand
private

Definition at line 207 of file expfld.hxx.

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

◆ msExpandRLHidden

OUString SwSetExpField::msExpandRLHidden
private

hidden redlines

Definition at line 208 of file expfld.hxx.

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


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