19#ifndef INCLUDED_SW_INC_DBFLD_HXX
20#define INCLUDED_SW_INC_DBFLD_HXX
41 virtual OUString
GetName()
const override;
42 virtual std::unique_ptr<SwFieldType>
Copy()
const override;
50 virtual void QueryValue( css::uno::Any& rVal, sal_uInt16 nWhich )
const override;
51 virtual void PutValue(
const css::uno::Any& rVal, sal_uInt16 nWhich )
override;
66 virtual OUString ExpandImpl(
SwRootFrame const* pLayout)
const override;
67 virtual std::unique_ptr<SwField>
Copy()
const override;
76 inline void SetExpansion(
const OUString& rStr);
78 virtual sal_uInt16 GetSubType()
const override;
79 virtual void SetSubType(sal_uInt16 nType)
override;
81 virtual OUString GetFieldName()
const override;
84 void ChgValue(
double d,
bool bVal );
91 void InitContent(
const OUString& rExpansion);
93 inline void ChgBodyTextFlag(
bool bIsInBody );
100 virtual OUString GetPar1()
const override;
107 virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhich )
const override;
108 virtual bool PutValue(
const css::uno::Any& rVal, sal_uInt16 nWhich )
override;
110 static bool FormatValue(
SvNumberFormatter const * pDocFormatter, OUString
const &aString, sal_uInt32 nFormat,
111 double &aNumber, sal_Int32 nColumnType,
SwDBField *pField =
nullptr );
139 void SetDBData(
const SwDBData& rDBData);
141 virtual OUString GetFieldName()
const override;
143 virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhich )
const override;
144 virtual bool PutValue(
const css::uno::Any& rVal, sal_uInt16 nWhich )
override;
145 virtual sal_uInt16 GetSubType()
const override;
146 virtual void SetSubType(sal_uInt16 nType)
override;
155 virtual std::unique_ptr<SwFieldType>
Copy()
const override;
166 OUString aCond,
const SwDBData& rDBData);
168 virtual OUString ExpandImpl(
SwRootFrame const* pLayout)
const override;
169 virtual std::unique_ptr<SwField>
Copy()
const override;
171 void Evaluate(
const SwDoc&);
172 inline void SetCondValid(
bool bCond);
173 inline bool IsCondValid()
const;
176 virtual OUString GetPar1()
const override;
177 virtual void SetPar1(
const OUString& rStr)
override;
178 virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhich )
const override;
179 virtual bool PutValue(
const css::uno::Any& rVal, sal_uInt16 nWhich )
override;
194 virtual std::unique_ptr<SwFieldType>
Copy()
const override;
209 virtual std::unique_ptr<SwField>
Copy()
const override;
216 virtual OUString
GetPar1()
const override;
217 virtual void SetPar1(
const OUString& rStr)
override;
220 virtual OUString
GetPar2()
const override;
221 virtual void SetPar2(
const OUString& rStr)
override;
224 virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhich )
const override;
225 virtual bool PutValue(
const css::uno::Any& rVal, sal_uInt16 nWhich )
override;
242 virtual std::unique_ptr<SwFieldType>
Copy()
const override;
252 virtual std::unique_ptr<SwField>
Copy()
const override;
253 virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhich )
const override;
254 virtual bool PutValue(
const css::uno::Any& rVal, sal_uInt16 nWhich )
override;
263 virtual std::unique_ptr<SwFieldType>
Copy()
const override;
273 virtual OUString ExpandImpl(
SwRootFrame const* pLayout)
const override;
274 virtual std::unique_ptr<SwField>
Copy()
const override;
275 void Evaluate(
const SwDoc&);
279 virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhich )
const override;
280 virtual bool PutValue(
const css::uno::Any& rVal, sal_uInt16 nWhich )
override;
const OUString & GetColumnName() const
const SwDBData & GetDBData() const
OUString m_sName
only used in GetName() !
virtual void UpdateFields() override
void SetFieldCode(const OUString &rStr)
access to the command string
OUString m_sFieldCode
contains Word's field code
void ChgBodyTextFlag(bool bIsInBody)
set from UpdateExpFields (the Node-Position is known there)
bool IsInitialized() const
void SetExpansion(const OUString &rStr)
Current text.
const SwDBData & GetDBData() const
DBName.
SwDBNameFieldType(SwDoc *)
virtual std::unique_ptr< SwFieldType > Copy() const 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
SwDBNameField(SwDBNameFieldType *, const SwDBData &rDBData)
virtual OUString ExpandImpl(SwRootFrame const *pLayout) const override
virtual std::unique_ptr< SwField > Copy() const override
SwDBData & GetRealDBData()
const SwDBData & GetDBData() const
const SwDBData & GetRealDBData() const
DBName.
void SetCondValid(bool bCond)
virtual std::unique_ptr< SwFieldType > Copy() const override
void Evaluate(const SwDoc &)
virtual void SetPar2(const OUString &rStr) override
set condition
virtual OUString GetPar2() const override
get condition
virtual std::unique_ptr< SwField > Copy() const override
virtual OUString ExpandImpl(SwRootFrame const *pLayout) const override
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt16 nWhich) override
SwDBNumSetField(SwDBNumSetFieldType *, OUString aCond, OUString aDBNum, const SwDBData &rDBData)
void SetCondValid(bool bCond)
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt16 nWhich) const override
virtual OUString GetPar1() const override
get LogDBName
virtual void SetPar1(const OUString &rStr) override
set LogDBName
void SetSetNumber(tools::Long nNum)
tools::Long GetSetNumber() const
Instances of SwFields and those derived from it occur 0 to n times.
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
Base class of all fields.
The root element of a Writer document layout.
Fields containing values that have to be formatted via number formatter.