26#include <com/sun/star/text/XTextField.hpp>
27#include <com/sun/star/lang/XServiceInfo.hpp>
28#include <com/sun/star/container/XContainer.hpp>
29#include <com/sun/star/container/XEnumerationAccess.hpp>
30#include <com/sun/star/container/XIndexAccess.hpp>
31#include <com/sun/star/beans/XPropertySet.hpp>
32#include <com/sun/star/util/XRefreshable.hpp>
33#include <com/sun/star/util/DateTime.hpp>
38#include <osl/mutex.hxx>
50 css::container::XEnumerationAccess,
51 css::container::XIndexAccess,
52 css::container::XContainer,
53 css::util::XRefreshable,
54 css::lang::XServiceInfo >,
58 css::uno::Reference<css::text::XTextRange>
mxContent;
67 css::uno::Reference<css::text::XTextField>
72 css::uno::Reference<css::text::XTextRange> xContent,
79 virtual sal_Int32 SAL_CALL
getCount()
override;
83 virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL
91 virtual void SAL_CALL
addContainerListener(
const css::uno::Reference< css::container::XContainerListener >& xListener )
override;
92 virtual void SAL_CALL
removeContainerListener(
const css::uno::Reference< css::container::XContainerListener >& xListener )
override;
95 virtual void SAL_CALL
refresh( )
override;
96 virtual void SAL_CALL
addRefreshListener(
const css::uno::Reference< css::util::XRefreshListener >& l )
override;
97 virtual void SAL_CALL
removeRefreshListener(
const css::uno::Reference< css::util::XRefreshListener >& l )
override;
106 css::container::XEnumerationAccess,
107 css::container::XIndexAccess,
108 css::container::XContainer,
109 css::util::XRefreshable,
110 css::lang::XServiceInfo >
121 css::uno::Reference< css::text::XTextField>
129 virtual sal_Int32 SAL_CALL
getCount()
override;
133 virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL
141 virtual void SAL_CALL
addContainerListener(
const css::uno::Reference< css::container::XContainerListener >& xListener )
override;
142 virtual void SAL_CALL
removeContainerListener(
const css::uno::Reference< css::container::XContainerListener >& xListener )
override;
145 virtual void SAL_CALL
refresh( )
override;
146 virtual void SAL_CALL
addRefreshListener(
const css::uno::Reference< css::util::XRefreshListener >& l )
override;
147 virtual void SAL_CALL
removeRefreshListener(
const css::uno::Reference< css::util::XRefreshListener >& l )
override;
160 css::text::XTextField,
161 css::beans::XPropertySet,
198 css::uno::Reference<css::text::XTextRange> xContent,
199 std::unique_ptr<ScEditSource> pEditSrc, sal_Int32 eType,
const ESelection& rSel);
207 const css::uno::Reference<css::text::XTextRange>& rContent,
208 std::unique_ptr<ScEditSource> pEditSrc,
const ESelection& rSel);
214 virtual void SAL_CALL
attach(
const css::uno::Reference< css::text::XTextRange >& xTextRange )
override;
215 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL
219 virtual css::uno::Reference< css::beans::XPropertySetInfo >
222 const css::uno::Any& aValue )
override;
223 virtual css::uno::Any SAL_CALL
getPropertyValue(
const OUString& PropertyName )
override;
225 const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener )
override;
227 const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener )
override;
229 const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener )
override;
231 const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener )
override;
239 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes()
override;
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual void SAL_CALL removeRefreshListener(const css::uno::Reference< css::util::XRefreshListener > &l) override
virtual ~ScCellFieldsObj() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual void SAL_CALL refresh() override
css::uno::Reference< css::text::XTextField > GetObjectByIndex_Impl(sal_Int32 Index) const
comphelper::OInterfaceContainerHelper4< css::util::XRefreshListener > maRefreshListeners
List of refresh listeners.
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override
std::unique_ptr< ScEditSource > mpEditSource
virtual void SAL_CALL removeContainerListener(const css::uno::Reference< css::container::XContainerListener > &xListener) override
ScCellFieldsObj(css::uno::Reference< css::text::XTextRange > xContent, ScDocShell *pDocSh, const ScAddress &rPos)
virtual sal_Bool SAL_CALL hasElements() override
virtual void SAL_CALL addRefreshListener(const css::uno::Reference< css::util::XRefreshListener > &l) override
virtual OUString SAL_CALL getImplementationName() override
css::uno::Reference< css::text::XTextRange > mxContent
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 Index) override
virtual sal_Int32 SAL_CALL getCount() override
virtual css::uno::Type SAL_CALL getElementType() override
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
virtual void SAL_CALL addContainerListener(const css::uno::Reference< css::container::XContainerListener > &xListener) override
std::mutex aMutex
mutex to lock the InterfaceContainerHelper
std::unique_ptr< ScEditSource > mpEditSource
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
const SfxItemPropertySet * pPropSet
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
css::uno::Any getPropertyValueDateTime(const OUString &rName)
void InitDoc(const css::uno::Reference< css::text::XTextRange > &rContent, std::unique_ptr< ScEditSource > pEditSrc, const ESelection &rSel)
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getAnchor() override
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
css::uno::Reference< css::text::XTextRange > mpContent
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
css::util::DateTime maDateTime
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
std::unique_ptr< SvxFieldData > mpData
void setPropertyValueDateTime(const OUString &rName, const css::uno::Any &rVal)
virtual void SAL_CALL attach(const css::uno::Reference< css::text::XTextRange > &xTextRange) override
const ScEditFieldObj & operator=(const ScEditFieldObj &)=delete
css::uno::Any getPropertyValueURL(const OUString &rName)
virtual OUString SAL_CALL getImplementationName() override
css::uno::Any getPropertyValueFile(const OUString &rName)
void setPropertyValueSheet(const OUString &rName, const css::uno::Any &rVal)
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual OUString SAL_CALL getPresentation(sal_Bool bShowCommand) override
sal_Int32 GetFieldType() const
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
void setPropertyValueURL(const OUString &rName, const css::uno::Any &rVal)
SvxFieldItem CreateFieldItem()
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
ScEditFieldObj(css::uno::Reference< css::text::XTextRange > xContent, std::unique_ptr< ScEditSource > pEditSrc, sal_Int32 eType, const ESelection &rSel)
ScEditFieldObj(const ScEditFieldObj &)=delete
virtual ~ScEditFieldObj() override
void setPropertyValueFile(const OUString &rName, const css::uno::Any &rVal)
comphelper::WeakComponentImplHelper< css::text::XTextField, css::beans::XPropertySet, css::lang::XServiceInfo > ScEditFieldObj_Base
Generic UNO wrapper for edit engine's field item in cells, headers, and footers.