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

#include <expfld.hxx>

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

Public Member Functions

 SwInputField (SwInputFieldType *pFieldType, const OUString &rContent, const OUString &rPrompt, sal_uInt16 nSubType, sal_uLong nFormat=0, bool bIsFormField=true)
 Direct input via dialog; delete old value. More...
 
virtual ~SwInputField () override
 
void SetFormatField (SwFormatField &rFormatField)
 
SwFormatFieldGetFormatField ()
 
void applyFieldContent (const OUString &rNewFieldContent)
 
bool isFormField () const
 
virtual OUString GetFieldName () const override
 get name or content More...
 
virtual OUString GetPar1 () const override
 Content. More...
 
virtual void SetPar1 (const OUString &rStr) override
 set condition More...
 
virtual OUString GetPar2 () const override
 aPromptText More...
 
virtual void SetPar2 (const OUString &rStr) override
 
const OUString & GetHelp () const
 
void SetHelp (const OUString &rStr)
 
const OUString & GetToolTip () const
 
void SetToolTip (const OUString &rStr)
 
virtual sal_uInt16 GetSubType () const override
 
virtual void SetSubType (sal_uInt16 nSub) 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 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...
 
std::unique_ptr< SwFieldCopyField () const
 
SwFieldIds Which () const
 ResId. More...
 
SwFieldTypesEnum GetTypeId () const
 
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 GetFormula () const
 
void ChangeFormat (sal_uInt32 n)
 
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
 

Private Member Functions

virtual OUString ExpandImpl (SwRootFrame const *pLayout) const override
 
virtual std::unique_ptr< SwFieldCopy () const override
 
const OUString & getContent () const
 

Private Attributes

OUString maContent
 
OUString maPText
 
OUString maHelp
 
OUString maToolTip
 
sal_uInt16 mnSubType
 
bool const mbIsFormField
 
SwFormatFieldmpFormatField
 

Additional Inherited Members

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

Constructor & Destructor Documentation

SwInputField::SwInputField ( SwInputFieldType pFieldType,
const OUString &  rContent,
const OUString &  rPrompt,
sal_uInt16  nSubType,
sal_uLong  nFormat = 0,
bool  bIsFormField = true 
)

Direct input via dialog; delete old value.

Definition at line 1226 of file expfld.cxx.

References LANGUAGE_SYSTEM.

Referenced by Copy().

SwInputField::~SwInputField ( )
overridevirtual

Definition at line 1241 of file expfld.cxx.

Member Function Documentation

void SwInputField::applyFieldContent ( const OUString &  rNewFieldContent)
std::unique_ptr< SwField > SwInputField::Copy ( ) const
overrideprivatevirtual
OUString SwInputField::ExpandImpl ( SwRootFrame const *  pLayout) const
overrideprivatevirtual

Implements SwField.

Definition at line 1321 of file expfld.cxx.

References SwUserFieldType::GetContent(), getContent(), SwField::GetTyp(), INP_TXT, INP_USR, mnSubType, and User.

const OUString& SwInputField::getContent ( ) const
inlineprivate

Definition at line 296 of file expfld.hxx.

Referenced by applyFieldContent(), Copy(), ExpandImpl(), GetFieldName(), GetPar1(), and QueryValue().

OUString SwInputField::GetFieldName ( ) const
overridevirtual

get name or content

Returns
name or content.

Reimplemented from SwField.

Definition at line 1293 of file expfld.cxx.

References aStr, getContent(), SwField::GetFieldName(), SwFieldType::GetName(), SwField::GetTyp(), INP_USR, and mnSubType.

SwFormatField* SwInputField::GetFormatField ( )
inline
const OUString & SwInputField::GetHelp ( ) const

Definition at line 1416 of file expfld.cxx.

References maHelp.

Referenced by RtfExport::DoFormText(), and WW8Export::DoFormText().

OUString SwInputField::GetPar1 ( ) const
overridevirtual

Content.

Reimplemented from SwField.

Definition at line 1396 of file expfld.cxx.

References getContent().

Referenced by SwFieldInputDlg::Apply(), and SwFieldInputDlg::SwFieldInputDlg().

OUString SwInputField::GetPar2 ( ) const
overridevirtual

aPromptText

Reimplemented from SwField.

Definition at line 1406 of file expfld.cxx.

References maPText.

Referenced by RtfExport::DoFormText(), DocxExport::DoFormText(), WW8Export::DoFormText(), and SwFieldInputDlg::SwFieldInputDlg().

sal_uInt16 SwInputField::GetSubType ( ) const
overridevirtual

Reimplemented from SwField.

Definition at line 1431 of file expfld.cxx.

References mnSubType.

Referenced by Copy(), and SwFieldInputDlg::SwFieldInputDlg().

const OUString & SwInputField::GetToolTip ( ) const

Definition at line 1426 of file expfld.cxx.

References maToolTip.

Referenced by RtfExport::DoFormText(), and WW8Export::DoFormText().

bool SwInputField::isFormField ( ) const

Definition at line 1339 of file expfld.cxx.

References maHelp, maToolTip, and mbIsFormField.

Referenced by AttributeOutputBase::TextField().

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

Reimplemented from SwField.

Definition at line 1368 of file expfld.cxx.

References FIELD_PROP_PAR1, FIELD_PROP_PAR2, FIELD_PROP_PAR3, FIELD_PROP_PAR4, maContent, maHelp, maPText, and maToolTip.

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

Reimplemented from SwField.

Definition at line 1346 of file expfld.cxx.

References FIELD_PROP_PAR1, FIELD_PROP_PAR2, FIELD_PROP_PAR3, FIELD_PROP_PAR4, getContent(), maHelp, maPText, and maToolTip.

void SwInputField::SetFormatField ( SwFormatField rFormatField)

Definition at line 1245 of file expfld.cxx.

References mpFormatField.

Referenced by SwFormatField::SwFormatField().

void SwInputField::SetHelp ( const OUString &  rStr)

Definition at line 1411 of file expfld.cxx.

References maHelp.

Referenced by SwWW8ImplReader::Read_F_FormTextBox().

void SwInputField::SetPar1 ( const OUString &  rStr)
overridevirtual

set condition

Reimplemented from SwField.

Definition at line 1391 of file expfld.cxx.

References maContent.

Referenced by SwFieldInputDlg::Apply().

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

Reimplemented from SwField.

Definition at line 1401 of file expfld.cxx.

References maPText.

void SwInputField::SetSubType ( sal_uInt16  nSub)
overridevirtual

Reimplemented from SwField.

Definition at line 1436 of file expfld.cxx.

References mnSubType.

void SwInputField::SetToolTip ( const OUString &  rStr)

Definition at line 1421 of file expfld.cxx.

References maToolTip.

Referenced by SwWW8ImplReader::Read_F_FormTextBox().

Member Data Documentation

OUString SwInputField::maContent
mutableprivate

Definition at line 283 of file expfld.hxx.

Referenced by applyFieldContent(), PutValue(), and SetPar1().

OUString SwInputField::maHelp
private

Definition at line 285 of file expfld.hxx.

Referenced by Copy(), GetHelp(), isFormField(), PutValue(), QueryValue(), and SetHelp().

OUString SwInputField::maPText
private

Definition at line 284 of file expfld.hxx.

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

OUString SwInputField::maToolTip
private

Definition at line 286 of file expfld.hxx.

Referenced by Copy(), GetToolTip(), isFormField(), PutValue(), QueryValue(), and SetToolTip().

bool const SwInputField::mbIsFormField
private

Definition at line 288 of file expfld.hxx.

Referenced by Copy(), and isFormField().

sal_uInt16 SwInputField::mnSubType
private

Definition at line 287 of file expfld.hxx.

Referenced by applyFieldContent(), ExpandImpl(), GetFieldName(), GetSubType(), and SetSubType().

SwFormatField* SwInputField::mpFormatField
private

Definition at line 290 of file expfld.hxx.

Referenced by SetFormatField().


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