50 virtual OUString
GetName()
const override;
51 virtual std::unique_ptr<SwFieldType>
Copy()
const override;
55 OUString GetContent( sal_uInt32 nFormat = 0 )
const;
56 void SetContent(
const OUString& rStr, sal_uInt32 nFormat = 0 );
60 inline bool IsValid()
const;
64 inline void SetValue(
const double nVal);
66 inline sal_uInt16 GetType()
const;
67 inline void SetType(sal_uInt16);
72 virtual void QueryValue( css::uno::Any& rVal, sal_uInt16 nMId )
const override;
73 virtual void PutValue(
const css::uno::Any& rVal, sal_uInt16 nMId )
override;
110 virtual std::unique_ptr<SwField>
Copy()
const override;
115 virtual sal_uInt16
GetSubType()
const override;
116 virtual void SetSubType(sal_uInt16 nSub)
override;
118 virtual double GetValue()
const override;
119 virtual void SetValue(
const double& rVal )
override;
124 virtual OUString
GetPar1()
const override;
127 virtual OUString
GetPar2()
const override;
128 virtual void SetPar2(
const OUString& rStr)
override;
129 virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhichId )
const override;
130 virtual bool PutValue(
const css::uno::Any& rVal, sal_uInt16 nWhichId )
override;
virtual OUString GetName() const
Only in derived classes.
virtual void QueryValue(css::uno::Any &rVal, sal_uInt16 nWhich) const
virtual void PutValue(const css::uno::Any &rVal, sal_uInt16 nWhich)
virtual std::unique_ptr< SwFieldType > Copy() const =0
virtual void dumpAsXml(xmlTextWriterPtr pWriter) const
The root element of a Writer document layout.
The shared part of a user field.
OUString m_aContentLang
Language used by m_aContents.
void SetValue(const double nVal)
sal_uInt16 GetType() const
OUString m_aContent
String value type.
double m_nValue
Float value type.
The non-shared part of a user field.
virtual OUString GetPar2() const override
Get content.
virtual sal_uInt16 GetSubType() const override
virtual OUString GetPar1() const override
Get name.
virtual double GetValue() const override
virtual void SetSubType(sal_uInt16 nSub) override
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt16 nWhichId) const override
void dumpAsXml(xmlTextWriterPtr pWriter) const override
SwUserField(SwUserFieldType *, sal_uInt16 nSub, sal_uInt32 nFormat)
virtual std::unique_ptr< SwField > Copy() const override
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt16 nWhichId) override
virtual OUString GetFieldName() const override
get name or content
virtual void SetValue(const double &rVal) override
virtual void SetPar2(const OUString &rStr) override
virtual OUString ExpandImpl(SwRootFrame const *pLayout) const override
Fields containing values that have to be formatted via number formatter.
OUString GetInputOrDateTime(const OUString &rInput, const double &rVal, sal_uInt32 nFormat) const
Query input or formatted value for dialog.
void EnableFormat(bool bFormat=true)
struct _xmlTextWriter * xmlTextWriterPtr
virtual void SetValue(tools::Long nNew) override
const SwGetSetExpType GSE_STRING
String.