22#include <com/sun/star/lang/XServiceInfo.hpp>
23#include <com/sun/star/beans/XPropertySet.hpp>
24#include <com/sun/star/container/XNamed.hpp>
25#include <com/sun/star/text/XTextContent.hpp>
26#include <com/sun/star/text/XTextField.hpp>
27#include <com/sun/star/text/XFormField.hpp>
40typedef ::cppu::ImplInheritanceHelper
42, css::lang::XServiceInfo
43, css::beans::XPropertySet
44, css::container::XNamed
45, css::text::XTextContent
62 const css::uno::Reference< css::text::XTextRange > & xTextRange,
64 bool isFieldmarkSeparatorAtStart =
false);
68 const css::uno::Reference< css::text::XTextRange > & xTextRange);
92 const css::uno::Reference<css::uno::XInterface> & xUT);
96 virtual css::uno::Reference< css::frame::XModel >
GetModel()
override;
101 const OUString& rServiceName)
override;
102 virtual css::uno::Sequence< OUString > SAL_CALL
106 virtual void SAL_CALL
dispose()
override;
108 const css::uno::Reference< css::lang::XEventListener > & xListener)
override;
110 const css::uno::Reference< css::lang::XEventListener > & xListener)
override;
113 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
116 const OUString& rPropertyName,
117 const css::uno::Any& rValue)
override;
119 const OUString& rPropertyName)
override;
121 const OUString& rPropertyName,
122 const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener)
override;
124 const OUString& rPropertyName,
125 const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener)
override;
127 const OUString& rPropertyName,
128 const css::uno::Reference< css::beans::XVetoableChangeListener >& xListener)
override;
130 const OUString& rPropertyName,
131 const css::uno::Reference<
132 css::beans::XVetoableChangeListener >& xListener)
override;
135 virtual OUString SAL_CALL
getName()
override;
136 virtual void SAL_CALL
setName(
const OUString& rName)
override;
139 virtual void SAL_CALL
attach(
140 const css::uno::Reference< css::text::XTextRange > & xTextRange)
override;
141 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL
getAnchor()
override;
146 :
public ::cppu::WeakImplHelper< css::container::XNameContainer>
161 virtual void SAL_CALL
insertByName(
const OUString& aName,
const css::uno::Any& aElement )
override;
162 virtual void SAL_CALL
removeByName(
const OUString& Name )
override;
164 virtual void SAL_CALL
replaceByName(
const OUString& aName,
const css::uno::Any& aElement )
override;
166 virtual css::uno::Any SAL_CALL
getByName(
const OUString& aName )
override;
167 virtual css::uno::Sequence< OUString > SAL_CALL
getElementNames( )
override;
177 css::text::XFormField,
178 css::text::XTextField
190 GetCommand(::sw::mark::IFieldmark
const& rMark);
192 GetResult(::sw::mark::IFieldmark
const& rMark);
199 bool isReplacementObject =
false);
202 const css::uno::Reference<css::text::XTextRange > & xTextRange)
override;
206 virtual css::uno::Sequence<OUString> SAL_CALL
210 virtual css::uno::Reference<css::beans::XPropertySetInfo> SAL_CALL
213 const OUString& rPropertyName,
214 const css::uno::Any& rValue)
override;
216 const OUString& rPropertyName)
override;
219 virtual void SAL_CALL
dispose()
override;
221 const css::uno::Reference<css::lang::XEventListener> & xListener)
override;
223 const css::uno::Reference<css::lang::XEventListener> & xListener)
override;
226 virtual void SAL_CALL
attach(
227 const css::uno::Reference<css::text::XTextRange> & xTextRange)
override;
228 virtual css::uno::Reference<css::text::XTextRange> SAL_CALL
getAnchor()
override;
235 virtual void SAL_CALL
setFieldType(
const OUString& description)
override;
236 virtual css::uno::Reference<css::container::XNameContainer> SAL_CALL
getParameters()
override;
Provides access to the marks of a document.
bool StartListening(SvtBroadcaster &rBroadcaster)
UNO API wrapper around an internal sw::mark::IMark.
void registerInMark(SwXBookmark &rXMark, ::sw::mark::IMark *const pMarkBase)
virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) override
virtual void SAL_CALL setPropertyValue(const OUString &rPropertyName, const css::uno::Any &rValue) override
virtual void SAL_CALL addVetoableChangeListener(const OUString &rPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &xListener) override
virtual ~SwXBookmark() override
virtual css::uno::Reference< css::frame::XModel > GetModel() override
virtual OUString SAL_CALL getName() override
virtual void SAL_CALL removePropertyChangeListener(const OUString &rPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
::sw::mark::IMark const * GetBookmarkInDoc(SwDoc const *const pDoc, const css::uno::Reference< css::uno::XInterface > &xUT)
virtual void SAL_CALL setName(const OUString &rName) override
virtual void SAL_CALL addPropertyChangeListener(const OUString &rPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) override
static rtl::Reference< SwXBookmark > CreateXBookmark(SwDoc &rDoc, ::sw::mark::IMark *pBookmark)
virtual ::sfx2::Metadatable * GetCoreObject() override
void attachToRangeEx(const css::uno::Reference< css::text::XTextRange > &xTextRange, IDocumentMarkAccess::MarkType eType, bool isFieldmarkSeparatorAtStart=false)
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual OUString SAL_CALL getImplementationName() override
virtual void attachToRange(const css::uno::Reference< css::text::XTextRange > &xTextRange)
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
IDocumentMarkAccess * GetIDocumentMarkAccess()
virtual void SAL_CALL dispose() override
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getAnchor() override
virtual void SAL_CALL attach(const css::uno::Reference< css::text::XTextRange > &xTextRange) override
::sw::mark::IMark * GetBookmark() const
::sw::UnoImplPtr< Impl > m_pImpl
virtual sal_Bool SAL_CALL supportsService(const OUString &rServiceName) override
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &rPropertyName) override
virtual void SAL_CALL removeVetoableChangeListener(const OUString &rPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &xListener) override
virtual css::uno::Type SAL_CALL getElementType() override
virtual css::uno::Any SAL_CALL getByName(const OUString &aName) override
virtual void Notify(const SfxHint &rHint) override
virtual void SAL_CALL insertByName(const OUString &aName, const css::uno::Any &aElement) override
virtual sal_Bool SAL_CALL hasElements() override
virtual void SAL_CALL removeByName(const OUString &Name) override
::sw::mark::IFieldmark::parameter_map_t * getCoreParameters()
virtual void SAL_CALL replaceByName(const OUString &aName, const css::uno::Any &aElement) override
::sw::mark::IFieldmark * m_pFieldmark
SwXFieldmarkParameters(::sw::mark::IFieldmark *const pFieldmark)
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
virtual sal_Bool SAL_CALL hasByName(const OUString &aName) override
UNO wrapper around an sw::mark::IFieldmark.
::sw::mark::ICheckboxFieldmark * getCheckboxFieldmark()
virtual OUString SAL_CALL getPresentation(sal_Bool bShowCommand) override
rtl::Reference< SwXTextRange > GetResult(::sw::mark::IFieldmark const &rMark)
virtual OUString SAL_CALL getImplementationName() override
virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) override
rtl::Reference< SwXTextRange > GetCommand(::sw::mark::IFieldmark const &rMark)
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getAnchor() override
bool m_isFieldmarkSeparatorAtStart
static rtl::Reference< SwXBookmark > CreateXFieldmark(SwDoc &rDoc, ::sw::mark::IMark *pMark, bool isReplacementObject=false)
bool const m_bReplacementObject
SwXFieldmark(bool isReplacementObject, SwDoc *pDoc)
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual void attachToRange(const css::uno::Reference< css::text::XTextRange > &xTextRange) override
virtual css::uno::Reference< css::container::XNameContainer > SAL_CALL getParameters() override
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &rPropertyName) override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual void SAL_CALL setFieldType(const OUString &description) override
virtual void SAL_CALL setPropertyValue(const OUString &rPropertyName, const css::uno::Any &rValue) override
virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) override
virtual void SAL_CALL attach(const css::uno::Reference< css::text::XTextRange > &xTextRange) override
virtual void SAL_CALL dispose() override
virtual OUString SAL_CALL getFieldType() override
std::unique_ptr< T, UnoImplPtrDeleter< T > > UnoImplPtr
Smart pointer class ensuring that the pointed object is deleted with a locked SolarMutex.
::cppu::ImplInheritanceHelper< ::sfx2::MetadatableMixin, css::lang::XServiceInfo, css::beans::XPropertySet, css::container::XNamed, css::text::XTextContent > SwXBookmark_Base
cppu::ImplInheritanceHelper< SwXBookmark, css::text::XFormField, css::text::XTextField > SwXFieldmark_Base