20#ifndef INCLUDED_SW_INC_UNOTEXTRANGE_HXX
21#define INCLUDED_SW_INC_UNOTEXTRANGE_HXX
23#include <com/sun/star/lang/XServiceInfo.hpp>
24#include <com/sun/star/beans/XPropertySet.hpp>
25#include <com/sun/star/beans/XPropertyState.hpp>
26#include <com/sun/star/container/XIndexAccess.hpp>
27#include <com/sun/star/container/XEnumerationAccess.hpp>
28#include <com/sun/star/container/XContentEnumerationAccess.hpp>
29#include <com/sun/star/text/XTextRange.hpp>
30#include <com/sun/star/text/XRedline.hpp>
66 const css::uno::Reference<css::text::XTextRange> & xTextRange,
69 css::uno::Reference< css::text::XText >
73 std::u16string_view rPropertyName, sal_uInt16 nWID = 0);
77typedef ::cppu::WeakImplHelper
78< css::lang::XServiceInfo
79, css::beans::XPropertySet
80, css::beans::XPropertyState
81, css::container::XEnumerationAccess
82, css::container::XContentEnumerationAccess
83, css::text::XTextRange
98 void SetPositions(
SwPaM const& rPam);
101 void DeleteAndInsert(
118 const css::uno::Reference< css::text::XText > & xParent,
127 bool GetPositions(
SwPaM & rToFill,
137 const OUString& rServiceName)
override;
138 virtual css::uno::Sequence< OUString > SAL_CALL
142 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
143 getPropertySetInfo()
override;
145 const OUString& rPropertyName,
146 const css::uno::Any& rValue)
override;
148 const OUString& rPropertyName)
override;
149 virtual void SAL_CALL addPropertyChangeListener(
150 const OUString& rPropertyName,
151 const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener)
override;
152 virtual void SAL_CALL removePropertyChangeListener(
153 const OUString& rPropertyName,
154 const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener)
override;
155 virtual void SAL_CALL addVetoableChangeListener(
156 const OUString& rPropertyName,
157 const css::uno::Reference< css::beans::XVetoableChangeListener >& xListener)
override;
158 virtual void SAL_CALL removeVetoableChangeListener(
159 const OUString& rPropertyName,
160 const css::uno::Reference< css::beans::XVetoableChangeListener >& xListener)
override;
163 virtual css::beans::PropertyState SAL_CALL
164 getPropertyState(
const OUString& rPropertyName)
override;
165 virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL
167 const css::uno::Sequence< OUString >& rPropertyNames)
override;
168 virtual void SAL_CALL setPropertyToDefault(
169 const OUString& rPropertyName)
override;
170 virtual css::uno::Any SAL_CALL getPropertyDefault(
171 const OUString& rPropertyName)
override;
174 virtual css::uno::Type SAL_CALL getElementType()
override;
175 virtual sal_Bool SAL_CALL hasElements()
override;
178 virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL
179 createEnumeration()
override;
182 virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL
183 createContentEnumeration(
const OUString& rServiceName)
override;
184 virtual css::uno::Sequence< OUString > SAL_CALL
185 getAvailableServiceNames()
override;
188 virtual css::uno::Reference< css::text::XText >
189 SAL_CALL getText()
override;
190 virtual css::uno::Reference<
191 css::text::XTextRange > SAL_CALL getStart()
override;
192 virtual css::uno::Reference<
193 css::text::XTextRange > SAL_CALL getEnd()
override;
194 virtual OUString SAL_CALL
getString()
override;
195 virtual void SAL_CALL setString(
const OUString& rString)
override;
199 const OUString& rRedlineType,
200 const css::uno::Sequence< css::beans::PropertyValue >& RedlineProperties)
override;
204typedef ::cppu::WeakImplHelper
205< css::lang::XServiceInfo
206, css::container::XIndexAccess
PaM is Point and Mark: a selection of the document model.
SwPaM & operator=(const SwPaM &)
@@ semantic: no copy assignment for super class Ring.
SwUnoInternalPaM(const SwUnoInternalPaM &)=delete
void makeRedline(SwPaM const &rPaM, std::u16string_view rRedlineType, const uno::Sequence< beans::PropertyValue > &rRedlineProperties)
OUString getString(const Any &_rAny)
css::uno::Sequence< OUString > getSupportedServiceNames()
OUString getImplementationName()
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
VBAHELPER_DLLPUBLIC bool setPropertyValue(css::uno::Sequence< css::beans::PropertyValue > &aProp, const OUString &aName, const css::uno::Any &aValue)
bool getPropertyValue(ValueType &rValue, css::uno::Reference< css::beans::XPropertySet > const &xPropSet, OUString const &propName)
Dialog to specify the properties of date form field.
uno::Reference< text::XText > CreateParentXText(SwDoc &rDoc, const SwPosition &rPos)
bool XTextRangeToSwPaM(SwUnoInternalPaM &rToFill, const uno::Reference< text::XTextRange > &xTextRange, ::sw::TextRangeMode const eMode)
void DeepCopyPaM(SwPaM const &rSource, SwPaM &rTarget)
bool GetDefaultTextContentValue(css::uno::Any &rAny, std::u16string_view rPropertyName, sal_uInt16 nWID=0)
std::unique_ptr< T, UnoImplPtrDeleter< T > > UnoImplPtr
Smart pointer class ensuring that the pointed object is deleted with a locked SolarMutex.
Marks a position in the document model.