19#ifndef INCLUDED_SW_INC_FLDDROPDOWN_HXX
20#define INCLUDED_SW_INC_FLDDROPDOWN_HXX
22#include <com/sun/star/uno/Sequence.h>
49 virtual std::unique_ptr<SwFieldType>
Copy()
const override;
100 virtual std::unique_ptr<SwField>
Copy()
const override;
129 virtual OUString
GetPar1()
const override;
136 virtual OUString
GetPar2()
const override;
145 virtual void SetPar1(
const OUString& rStr)
override;
152 virtual void SetPar2(
const OUString& rStr)
override;
170 void SetItems(
const css::uno::Sequence<OUString>& rItems);
177 css::uno::Sequence<OUString> GetItemSequence()
const;
198 const OUString&
GetHelp()
const {
return m_aHelp; }
215 void SetSelectedItem(
const OUString& rItem);
222 void SetName(
const OUString& rName);
229 void SetHelp(
const OUString& rHelp);
236 void SetToolTip(
const OUString& rToolTip);
248 virtual bool QueryValue(css::uno::Any& rVal, sal_uInt16 nWhichId)
const override;
260 virtual bool PutValue(
const css::uno::Any& rVal, sal_uInt16 nWhichId)
override;
Field type for dropdown boxes.
void SetItems(const css::uno::Sequence< OUString > &rItems)
Sets the items of the dropdown box.
const OUString & GetHelp() const
Returns the help text of the field.
void SetItems(std::vector< OUString > &&rItems)
Sets the items of the dropdown box.
OUString m_aName
the name of the field
OUString m_aHelp
help text
OUString m_aSelectedItem
the selected item
const OUString & GetName() const
Returns the name of the field.
const OUString & GetToolTip() const
Returns the tool tip of the field.
const OUString & GetSelectedItem() const
Returns the selected item.
OUString m_aToolTip
tool tip string
std::vector< OUString > m_aValues
the possible values (aka items) of the dropdown box
Instances of SwFields and those derived from it occur 0 to n times.
virtual std::unique_ptr< SwFieldType > Copy() const =0
Base class of all fields.
virtual OUString GetPar1() const
virtual void SetPar1(const OUString &rStr)
virtual void SetPar2(const OUString &rStr)
virtual OUString ExpandImpl(SwRootFrame const *pLayout) const =0
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt16 nWhichId) const
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt16 nWhichId)
virtual std::unique_ptr< SwField > Copy() const =0
virtual OUString GetPar2() const
The root element of a Writer document layout.