20#ifndef INCLUDED_SW_SOURCE_CORE_INC_UNOFIELD_HXX
21#define INCLUDED_SW_SOURCE_CORE_INC_UNOFIELD_HXX
23#include <com/sun/star/lang/XServiceInfo.hpp>
24#include <com/sun/star/container/XEnumeration.hpp>
25#include <com/sun/star/util/XUpdatable.hpp>
26#include <com/sun/star/text/XDependentTextField.hpp>
38typedef ::cppu::WeakImplHelper
39< css::beans::XPropertySet
40, css::lang::XServiceInfo
41, css::lang::XComponent
73 const OUString& rServiceName)
override;
74 virtual css::uno::Sequence< OUString > SAL_CALL
78 virtual void SAL_CALL
dispose()
override;
80 const css::uno::Reference< css::lang::XEventListener > & xListener)
override;
82 const css::uno::Reference< css::lang::XEventListener > & xListener)
override;
85 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
88 const OUString& rPropertyName,
89 const css::uno::Any& rValue)
override;
91 const OUString& rPropertyName)
override;
93 const OUString& rPropertyName,
94 const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener)
override;
96 const OUString& rPropertyName,
97 const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener)
override;
99 const OUString& rPropertyName,
100 const css::uno::Reference< css::beans::XVetoableChangeListener >& xListener)
override;
102 const OUString& rPropertyName,
103 const css::uno::Reference< css::beans::XVetoableChangeListener >& xListener)
override;
107typedef ::cppu::WeakImplHelper
108< css::text::XDependentTextField
109, css::lang::XServiceInfo
110, css::beans::XPropertySet
111, css::util::XUpdatable
146 const OUString& rServiceName)
override;
147 virtual css::uno::Sequence< OUString > SAL_CALL
151 virtual void SAL_CALL
dispose()
override;
153 const css::uno::Reference< css::lang::XEventListener > & xListener)
override;
155 const css::uno::Reference< css::lang::XEventListener > & xListener)
override;
158 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
161 const OUString& rPropertyName,
162 const css::uno::Any& rValue)
override;
164 const OUString& rPropertyName)
override;
166 const OUString& rPropertyName,
167 const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener)
override;
169 const OUString& rPropertyName,
170 const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener)
override;
172 const OUString& rPropertyName,
173 const css::uno::Reference< css::beans::XVetoableChangeListener >& xListener)
override;
175 const OUString& rPropertyName,
176 const css::uno::Reference< css::beans::XVetoableChangeListener >& xListener)
override;
179 virtual void SAL_CALL
update()
override;
182 virtual void SAL_CALL
attach(
183 const css::uno::Reference< css::text::XTextRange > & xTextRange)
override;
184 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL
getAnchor()
override;
191 const css::uno::Reference< css::beans::XPropertySet > & xFieldMaster)
override;
192 virtual css::uno::Reference< css::beans::XPropertySet> SAL_CALL
getTextFieldMaster()
override;
196typedef ::cppu::WeakImplHelper
197< css::container::XEnumeration
198, css::lang::XServiceInfo
217 const OUString& rServiceName)
override;
218 virtual css::uno::Sequence< OUString > SAL_CALL
223 virtual css::uno::Any SAL_CALL
nextElement()
override;
Instances of SwFields and those derived from it occur 0 to n times.
virtual ~SwXFieldEnumeration() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual sal_Bool SAL_CALL hasMoreElements() override
virtual sal_Bool SAL_CALL supportsService(const OUString &rServiceName) override
virtual css::uno::Any SAL_CALL nextElement() override
SwXFieldEnumeration(SwDoc &rDoc)
virtual OUString SAL_CALL getImplementationName() override
::sw::UnoImplPtr< Impl > m_pImpl
virtual void SAL_CALL removePropertyChangeListener(const OUString &rPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
static OUString LocalizeFormula(const SwSetExpField &rField, const OUString &rFormula, bool bQuery)
virtual ~SwXFieldMaster() override
virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) override
virtual sal_Bool SAL_CALL supportsService(const OUString &rServiceName) override
virtual OUString SAL_CALL getImplementationName() override
static rtl::Reference< SwXFieldMaster > CreateXFieldMaster(SwDoc *pDoc, SwFieldType *pType, SwFieldIds nResId=SwFieldIds::Unknown)
SwXFieldMaster(SwFieldType &rType, SwDoc *pDoc)
virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) override
SwFieldType * GetFieldType(bool bDontCreate=false) const
::sw::UnoImplPtr< Impl > m_pImpl
virtual void SAL_CALL setPropertyValue(const OUString &rPropertyName, const css::uno::Any &rValue) override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual void SAL_CALL addPropertyChangeListener(const OUString &rPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
static OUString GetProgrammaticName(const SwFieldType &rType, SwDoc &rDoc)
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &rPropertyName) override
virtual void SAL_CALL addVetoableChangeListener(const OUString &rPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &xListener) override
virtual void SAL_CALL dispose() override
virtual void SAL_CALL removeVetoableChangeListener(const OUString &rPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &xListener) override
UNO wrapper around an SwFormatField, i.e.
virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) override
virtual OUString SAL_CALL getPresentation(sal_Bool bShowCommand) override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual void SAL_CALL dispose() override
virtual void SAL_CALL removePropertyChangeListener(const OUString &rPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
SwServiceType GetServiceId() const
virtual void SAL_CALL removeVetoableChangeListener(const OUString &rPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &xListener) override
virtual void SAL_CALL attachTextFieldMaster(const css::uno::Reference< css::beans::XPropertySet > &xFieldMaster) override
SwXTextField(SwFormatField &rFormat, SwDoc &rDoc)
virtual sal_Bool SAL_CALL supportsService(const OUString &rServiceName) override
virtual void SAL_CALL update() override
virtual void SAL_CALL addPropertyChangeListener(const OUString &rPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &rPropertyName) override
static rtl::Reference< SwXTextField > CreateXTextField(SwDoc *pDoc, SwFormatField const *pFormat, SwServiceType nServiceId=SwServiceType::Invalid)
::sw::UnoImplPtr< Impl > m_pImpl
static void TransmuteLeadToInputField(SwSetExpField &rField)
Convert between SwSetExpField with InputFlag false and InputFlag true.
virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL getTextFieldMaster() override
virtual void SAL_CALL addVetoableChangeListener(const OUString &rPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &xListener) override
virtual ~SwXTextField() override
virtual void SAL_CALL attach(const css::uno::Reference< css::text::XTextRange > &xTextRange) override
virtual void SAL_CALL setPropertyValue(const OUString &rPropertyName, const css::uno::Any &rValue) override
virtual OUString SAL_CALL getImplementationName() override
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getAnchor() override
std::unique_ptr< T, UnoImplPtrDeleter< T > > UnoImplPtr
Smart pointer class ensuring that the pointed object is deleted with a locked SolarMutex.
SwServiceType
entries in this enum are mapped in an array in unocoll.cxx
::cppu::WeakImplHelper< css::text::XDependentTextField, css::lang::XServiceInfo, css::beans::XPropertySet, css::util::XUpdatable > SwXTextField_Base
::cppu::WeakImplHelper< css::beans::XPropertySet, css::lang::XServiceInfo, css::lang::XComponent > SwXFieldMaster_Base
::cppu::WeakImplHelper< css::container::XEnumeration, css::lang::XServiceInfo > SwXFieldEnumeration_Base