34 return std::make_unique<SwScriptFieldType>(
m_rDoc );
38 const OUString& rType,
const OUString& rCode,
40 :
SwField( pInitType ), m_sType( rType ), m_sCode( rCode ), m_bCodeURL( bURL )
Instances of SwFields and those derived from it occur 0 to n times.
Base class of all fields.
SwFieldType * GetTyp() const
The root element of a Writer document layout.
virtual std::unique_ptr< SwFieldType > Copy() const override
SwScriptFieldType(SwDoc &rDoc)
bool m_bCodeURL
Code contains URL of a script.
virtual OUString GetDescription() const override
virtual OUString ExpandImpl(SwRootFrame const *pLayout) const override
virtual std::unique_ptr< SwField > Copy() const override
virtual OUString GetPar1() const override
Type.
virtual void SetPar1(const OUString &rStr) override
set type
virtual OUString GetPar2() const override
Text.
OUString m_sCode
Code as text.
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt16 nWhich) override
SwScriptField(SwScriptFieldType *, const OUString &rType, const OUString &rCode, bool bURL)
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt16 nWhich) const override
OUString m_sType
Type of Code (Java/VBScript/...)
virtual void SetPar2(const OUString &rStr) override
set code
OUString SwResId(TranslateId aId)