35 return std::make_unique<SwScriptFieldType>(
m_rDoc );
39 OUString aType, OUString aCode,
41 :
SwField( pInitType ), m_sType(
std::move(aType) ), m_sCode(
std::move(aCode) ), 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
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
SwScriptField(SwScriptFieldType *, OUString aType, OUString aCode, bool bURL)
OUString SwResId(TranslateId aId)