20 #ifndef INCLUDED_SW_INC_UNOTEXTRANGE_HXX
21 #define INCLUDED_SW_INC_UNOTEXTRANGE_HXX
23 #include <com/sun/star/lang/XUnoTunnel.hpp>
24 #include <com/sun/star/lang/XServiceInfo.hpp>
25 #include <com/sun/star/beans/XPropertySet.hpp>
26 #include <com/sun/star/beans/XPropertyState.hpp>
27 #include <com/sun/star/container/XIndexAccess.hpp>
28 #include <com/sun/star/container/XEnumerationAccess.hpp>
29 #include <com/sun/star/container/XContentEnumerationAccess.hpp>
30 #include <com/sun/star/text/XTextRange.hpp>
31 #include <com/sun/star/text/XRedline.hpp>
67 const css::uno::Reference<css::text::XTextRange> & xTextRange,
70 css::uno::Reference< css::text::XText >
74 std::u16string_view rPropertyName, sal_uInt16 nWID = 0);
78 typedef ::cppu::WeakImplHelper
79 < css::lang::XUnoTunnel
80 , css::lang::XServiceInfo
81 , css::beans::XPropertySet
82 , css::beans::XPropertyState
83 , css::container::XEnumerationAccess
84 , css::container::XContentEnumerationAccess
85 , css::text::XTextRange
108 void SetPositions(
SwPaM const& rPam);
111 void DeleteAndInsert(
112 const OUString& rText,
const bool bForceExpandHints);
120 const css::uno::Reference< css::text::XText > & xParent,
121 const enum RangePosition eRange = RANGE_IN_TEXT);
127 const SwDoc& GetDoc()
const;
129 bool GetPositions(
SwPaM & rToFill,
132 static css::uno::Reference< css::text::XTextRange > CreateXTextRange(
136 static const css::uno::Sequence< sal_Int8 >& getUnoTunnelId();
139 virtual sal_Int64 SAL_CALL getSomething(
140 const css::uno::Sequence< sal_Int8 >& rIdentifier)
override;
145 const OUString& rServiceName)
override;
146 virtual css::uno::Sequence< OUString > SAL_CALL
150 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
151 getPropertySetInfo()
override;
153 const OUString& rPropertyName,
154 const css::uno::Any& rValue)
override;
156 const OUString& rPropertyName)
override;
157 virtual void SAL_CALL addPropertyChangeListener(
158 const OUString& rPropertyName,
159 const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener)
override;
160 virtual void SAL_CALL removePropertyChangeListener(
161 const OUString& rPropertyName,
162 const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener)
override;
163 virtual void SAL_CALL addVetoableChangeListener(
164 const OUString& rPropertyName,
165 const css::uno::Reference< css::beans::XVetoableChangeListener >& xListener)
override;
166 virtual void SAL_CALL removeVetoableChangeListener(
167 const OUString& rPropertyName,
168 const css::uno::Reference< css::beans::XVetoableChangeListener >& xListener)
override;
171 virtual css::beans::PropertyState SAL_CALL
172 getPropertyState(
const OUString& rPropertyName)
override;
173 virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL
175 const css::uno::Sequence< OUString >& rPropertyNames)
override;
176 virtual void SAL_CALL setPropertyToDefault(
177 const OUString& rPropertyName)
override;
178 virtual css::uno::Any SAL_CALL getPropertyDefault(
179 const OUString& rPropertyName)
override;
182 virtual css::uno::Type SAL_CALL getElementType()
override;
183 virtual sal_Bool SAL_CALL hasElements()
override;
186 virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL
187 createEnumeration()
override;
190 virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL
191 createContentEnumeration(
const OUString& rServiceName)
override;
192 virtual css::uno::Sequence< OUString > SAL_CALL
193 getAvailableServiceNames()
override;
196 virtual css::uno::Reference< css::text::XText >
197 SAL_CALL getText()
override;
198 virtual css::uno::Reference<
199 css::text::XTextRange > SAL_CALL getStart()
override;
200 virtual css::uno::Reference<
201 css::text::XTextRange > SAL_CALL getEnd()
override;
202 virtual OUString SAL_CALL
getString()
override;
203 virtual void SAL_CALL setString(
const OUString& rString)
override;
207 const OUString& rRedlineType,
208 const css::uno::Sequence< css::beans::PropertyValue >& RedlineProperties)
override;
212 typedef ::cppu::WeakImplHelper
213 < css::lang::XUnoTunnel
214 , css::lang::XServiceInfo
215 , css::container::XIndexAccess
225 #endif // INCLUDED_SW_INC_UNOTEXTRANGE_HXX
Marks a position in the document model.
css::uno::Sequence< OUString > getSupportedServiceNames()
OUString getImplementationName()
Dialog to specify the properties of date form field.
bool getPropertyValue(ValueType &rValue, css::uno::Reference< css::beans::XPropertySet > const &xPropSet, OUString const &propName)
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
std::unique_ptr< T, UnoImplPtrDeleter< T > > UnoImplPtr
Smart pointer class ensuring that the pointed object is deleted with a locked SolarMutex.
PaM is Point and Mark: a selection of the document model.
bool GetDefaultTextContentValue(css::uno::Any &rAny, std::u16string_view rPropertyName, sal_uInt16 nWID=0)
bool setPropertyValue(uno::Sequence< beans::PropertyValue > &aProp, const OUString &aName, const uno::Any &aValue)
bool XTextRangeToSwPaM(SwUnoInternalPaM &rToFill, const uno::Reference< text::XTextRange > &xTextRange,::sw::TextRangeMode const eMode)
void makeRedline(SwPaM const &rPaM, std::u16string_view rRedlineType, const uno::Sequence< beans::PropertyValue > &rRedlineProperties)
SwPaM & operator=(const SwPaM &)
@@ semantic: no copy assignment for super class Ring.
OUString getString(const Any &_rAny)
void DeepCopyPaM(SwPaM const &rSource, SwPaM &rTarget)
uno::Reference< text::XText > CreateParentXText(SwDoc &rDoc, const SwPosition &rPos)