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

#include <docufld.hxx>

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

Public Member Functions

 SwScriptField (SwScriptFieldType *, OUString aType, OUString aCode, bool bURL)
 
virtual OUString GetDescription () const override
 
virtual OUString ExpandImpl (SwRootFrame const *pLayout) const override
 
virtual std::unique_ptr< SwFieldCopy () const override
 
virtual OUString GetPar1 () const override
 Type. More...
 
virtual void SetPar1 (const OUString &rStr) override
 set type More...
 
virtual OUString GetPar2 () const override
 Text. More...
 
virtual void SetPar2 (const OUString &rStr) override
 set code More...
 
bool IsCodeURL () const
 
void SetCodeURL (bool bURL)
 
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...
 
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 Attributes

OUString m_sType
 Type of Code (Java/VBScript/...) More...
 
OUString m_sCode
 Code as text. More...
 
bool m_bCodeURL
 Code contains URL of a script. More...
 

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 707 of file docufld.hxx.

Constructor & Destructor Documentation

◆ SwScriptField()

SwScriptField::SwScriptField ( SwScriptFieldType pInitType,
OUString  aType,
OUString  aCode,
bool  bURL 
)

Definition at line 38 of file scrptfld.cxx.

Member Function Documentation

◆ Copy()

std::unique_ptr< SwField > SwScriptField::Copy ( ) const
overridevirtual

Implements SwField.

Definition at line 55 of file scrptfld.cxx.

References SwField::GetTyp(), m_bCodeURL, m_sCode, and m_sType.

◆ ExpandImpl()

OUString SwScriptField::ExpandImpl ( SwRootFrame const *  pLayout) const
overridevirtual

Implements SwField.

Definition at line 50 of file scrptfld.cxx.

◆ GetDescription()

OUString SwScriptField::GetDescription ( ) const
overridevirtual

Reimplemented from SwField.

Definition at line 45 of file scrptfld.cxx.

References SwResId().

◆ GetPar1()

OUString SwScriptField::GetPar1 ( ) const
overridevirtual

Type.

Reimplemented from SwField.

Definition at line 66 of file scrptfld.cxx.

References m_sType.

Referenced by SwJavaEditDialog::CheckTravel(), SwTextShell::ExecField(), and SwJavaEditDialog::IsUpdate().

◆ GetPar2()

OUString SwScriptField::GetPar2 ( ) const
overridevirtual

Text.

Reimplemented from SwField.

Definition at line 77 of file scrptfld.cxx.

References m_sCode.

Referenced by SwJavaEditDialog::CheckTravel(), SwTextShell::ExecField(), and SwJavaEditDialog::IsUpdate().

◆ IsCodeURL()

bool SwScriptField::IsCodeURL ( ) const
inline

Definition at line 731 of file docufld.hxx.

Referenced by SwJavaEditDialog::CheckTravel().

◆ PutValue()

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

Reimplemented from SwField.

Definition at line 101 of file scrptfld.cxx.

References FIELD_PROP_BOOL1, FIELD_PROP_PAR1, FIELD_PROP_PAR2, m_bCodeURL, m_sCode, and m_sType.

◆ QueryValue()

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

Reimplemented from SwField.

Definition at line 82 of file scrptfld.cxx.

References FIELD_PROP_BOOL1, FIELD_PROP_PAR1, FIELD_PROP_PAR2, m_bCodeURL, m_sCode, and m_sType.

◆ SetCodeURL()

void SwScriptField::SetCodeURL ( bool  bURL)
inline

Definition at line 732 of file docufld.hxx.

◆ SetPar1()

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

set type

Reimplemented from SwField.

Definition at line 61 of file scrptfld.cxx.

References m_sType.

◆ SetPar2()

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

set code

Reimplemented from SwField.

Definition at line 72 of file scrptfld.cxx.

References m_sCode.

Member Data Documentation

◆ m_bCodeURL

bool SwScriptField::m_bCodeURL
private

Code contains URL of a script.

Definition at line 713 of file docufld.hxx.

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

◆ m_sCode

OUString SwScriptField::m_sCode
private

Code as text.

Code as JavaCode ?

Definition at line 710 of file docufld.hxx.

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

◆ m_sType

OUString SwScriptField::m_sType
private

Type of Code (Java/VBScript/...)

Definition at line 709 of file docufld.hxx.

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


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