20#ifndef INCLUDED_SW_INC_UNOTEXTCURSOR_HXX
21#define INCLUDED_SW_INC_UNOTEXTCURSOR_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/beans/XMultiPropertySet.hpp>
27#include <com/sun/star/beans/XMultiPropertyStates.hpp>
28#include <com/sun/star/container/XEnumerationAccess.hpp>
29#include <com/sun/star/container/XContentEnumerationAccess.hpp>
30#include <com/sun/star/util/XSortable.hpp>
31#include <com/sun/star/document/XDocumentInsertable.hpp>
32#include <com/sun/star/text/XSentenceCursor.hpp>
33#include <com/sun/star/text/XWordCursor.hpp>
34#include <com/sun/star/text/XParagraphCursor.hpp>
35#include <com/sun/star/text/XRedline.hpp>
36#include <com/sun/star/text/XMarkingAccess.hpp>
51typedef ::cppu::WeakImplHelper
52< css::lang::XServiceInfo
53, css::beans::XPropertySet
54, css::beans::XPropertyState
55, css::beans::XMultiPropertySet
56, css::beans::XMultiPropertyStates
57, css::container::XEnumerationAccess
58, css::container::XContentEnumerationAccess
60, css::document::XDocumentInsertable
61, css::text::XSentenceCursor
62, css::text::XWordCursor
63, css::text::XParagraphCursor
65, css::text::XMarkingAccess
70 ,
public OTextCursorHelper
83 throw css::uno::RuntimeException(
"SwXTextCursor: disposed or invalid",
nullptr);
93 css::uno::Reference< css::text::XText > xParent,
98 css::uno::Reference< css::text::XText > xParent,
99 SwPaM const& rSourceCursor,
116 const OUString& rServiceName)
override;
117 virtual css::uno::Sequence< OUString > SAL_CALL
121 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
124 const OUString& rPropertyName,
125 const css::uno::Any& rValue)
override;
127 const OUString& rPropertyName)
override;
129 const OUString& rPropertyName,
130 const css::uno::Reference<
131 css::beans::XPropertyChangeListener >& xListener)
override;
133 const OUString& rPropertyName,
134 const css::uno::Reference<
135 css::beans::XPropertyChangeListener >& xListener)
override;
137 const OUString& rPropertyName,
138 const css::uno::Reference<
139 css::beans::XVetoableChangeListener >& xListener)
override;
141 const OUString& rPropertyName,
142 const css::uno::Reference<
143 css::beans::XVetoableChangeListener >& xListener)
override;
146 virtual css::beans::PropertyState SAL_CALL
148 virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL
150 const css::uno::Sequence< OUString >& rPropertyNames)
override;
152 const OUString& rPropertyName)
override;
154 const OUString& rPropertyName)
override;
158 const css::uno::Sequence< OUString >& aPropertyNames,
159 const css::uno::Sequence< css::uno::Any >& aValues )
override;
161 virtual css::uno::Sequence< css::uno::Any > SAL_CALL
162 getPropertyValues(
const css::uno::Sequence< OUString >& aPropertyNames )
override;
165 const css::uno::Sequence< OUString >& aPropertyNames,
166 const css::uno::Reference< css::beans::XPropertiesChangeListener >& xListener )
override;
169 const css::uno::Reference< css::beans::XPropertiesChangeListener >& xListener )
override;
172 const css::uno::Sequence< OUString >& aPropertyNames,
173 const css::uno::Reference< css::beans::XPropertiesChangeListener >& xListener )
override;
178 const css::uno::Sequence< OUString >& rPropertyNames)
override;
179 virtual css::uno::Sequence< css::uno::Any >
181 const css::uno::Sequence< OUString >& rPropertyNames)
override;
188 virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL
192 virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL
194 virtual css::uno::Sequence< OUString > SAL_CALL
198 virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL
200 virtual void SAL_CALL
sort(
201 const css::uno::Sequence< css::beans::PropertyValue >& xDescriptor)
override;
205 const OUString& rURL,
206 const css::uno::Sequence< css::beans::PropertyValue >& rOptions)
override;
209 virtual css::uno::Reference< css::text::XText >
211 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL
getStart()
override;
212 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL
getEnd()
override;
213 virtual OUString SAL_CALL
getString()
override;
214 virtual void SAL_CALL
setString(
const OUString& rString)
override;
225 const css::uno::Reference< css::text::XTextRange >& xRange,
254 const OUString& rRedlineType,
255 const css::uno::Sequence< css::beans::PropertyValue >& RedlineProperties)
override;
PaM is Point and Mark: a selection of the document model.
virtual sal_Bool SAL_CALL gotoNextSentence(sal_Bool Expand) override
virtual css::uno::Reference< css::text::XText > SAL_CALL getText() override
virtual void SAL_CALL setPropertyValues(const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Sequence< css::uno::Any > &aValues) override
virtual sal_Bool SAL_CALL gotoEndOfWord(sal_Bool bExpand) override
virtual void SAL_CALL setString(const OUString &rString) override
virtual sal_Bool SAL_CALL gotoPreviousWord(sal_Bool bExpand) override
SwXTextCursor(SwDoc &rDoc, css::uno::Reference< css::text::XText > xParent, const CursorType eType, SwPosition const &rPos, SwPosition const *const pMark=nullptr)
virtual void SAL_CALL collapseToEnd() override
virtual sal_Bool SAL_CALL gotoStartOfWord(sal_Bool bExpand) override
virtual ~SwXTextCursor() override
virtual sal_Bool SAL_CALL isEndOfParagraph() override
SwUnoCursor & GetCursorOrThrow()
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &rPropertyName) override
virtual void SAL_CALL collapseToStart() override
virtual sal_Bool SAL_CALL gotoNextWord(sal_Bool bExpand) override
virtual sal_Bool SAL_CALL gotoPreviousSentence(sal_Bool Expand) override
virtual void SAL_CALL insertDocumentFromURL(const OUString &rURL, const css::uno::Sequence< css::beans::PropertyValue > &rOptions) override
virtual css::beans::PropertyState SAL_CALL getPropertyState(const OUString &rPropertyName) override
virtual sal_Bool SAL_CALL isStartOfSentence() override
virtual sal_Bool SAL_CALL goRight(sal_Int16 nCount, sal_Bool bExpand) override
virtual sal_Bool SAL_CALL gotoStartOfParagraph(sal_Bool Expand) override
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL createSortDescriptor() override
virtual void SAL_CALL setPropertiesToDefault(const css::uno::Sequence< OUString > &rPropertyNames) override
virtual void SAL_CALL addPropertyChangeListener(const OUString &rPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyValues(const css::uno::Sequence< OUString > &aPropertyNames) override
virtual OUString SAL_CALL getImplementationName() override
virtual void SAL_CALL setAllPropertiesToDefault() override
sw::UnoCursorPointer m_pUnoCursor
virtual css::uno::Any SAL_CALL getPropertyDefault(const OUString &rPropertyName) override
virtual const SwPaM * GetPaM() const override
SwUnoCursor & GetCursor()
const SfxItemPropertySet & m_rPropSet
virtual sal_Bool SAL_CALL gotoEndOfParagraph(sal_Bool Expand) override
virtual void SAL_CALL removeVetoableChangeListener(const OUString &rPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &xListener) override
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createContentEnumeration(const OUString &rServiceName) override
virtual css::uno::Sequence< OUString > SAL_CALL getAvailableServiceNames() override
virtual void SAL_CALL firePropertiesChangeEvent(const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
virtual const SwDoc * GetDoc() const override
virtual sal_Bool SAL_CALL gotoNextParagraph(sal_Bool Expand) override
virtual void SAL_CALL sort(const css::uno::Sequence< css::beans::PropertyValue > &xDescriptor) override
virtual sal_Bool SAL_CALL goLeft(sal_Int16 nCount, sal_Bool bExpand) override
virtual void SAL_CALL makeRedline(const OUString &rRedlineType, const css::uno::Sequence< css::beans::PropertyValue > &RedlineProperties) override
virtual sal_Bool SAL_CALL hasElements() override
virtual sal_Bool SAL_CALL isStartOfWord() override
virtual void SAL_CALL gotoStart(sal_Bool bExpand) override
virtual void SAL_CALL gotoEnd(sal_Bool bExpand) override
virtual css::uno::Type SAL_CALL getElementType() override
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getStart() override
virtual void SAL_CALL removePropertyChangeListener(const OUString &rPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
virtual void SAL_CALL removePropertiesChangeListener(const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getEnd() override
virtual OUString SAL_CALL getString() override
virtual void SAL_CALL addPropertiesChangeListener(const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
bool IsAtEndOfContentControl() const
virtual sal_Bool SAL_CALL gotoPreviousParagraph(sal_Bool Expand) override
virtual void SAL_CALL setPropertyValue(const OUString &rPropertyName, const css::uno::Any &rValue) override
virtual void SAL_CALL setPropertyToDefault(const OUString &rPropertyName) override
virtual sal_Bool SAL_CALL supportsService(const OUString &rServiceName) override
virtual sal_Bool SAL_CALL isEndOfSentence() override
virtual sal_Bool SAL_CALL isEndOfWord() override
virtual sal_Bool SAL_CALL gotoEndOfSentence(sal_Bool Expand) override
void DeleteAndInsert(std::u16string_view aText, ::sw::DeleteAndInsertMode eMode)
virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates(const css::uno::Sequence< OUString > &rPropertyNames) override
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override
bool IsAtEndOfMeta() const
virtual void SAL_CALL gotoRange(const css::uno::Reference< css::text::XTextRange > &xRange, sal_Bool bExpand) override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual sal_Bool SAL_CALL isCollapsed() override
const css::uno::Reference< css::text::XText > m_xParentText
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyDefaults(const css::uno::Sequence< OUString > &rPropertyNames) override
SwXTextCursor(css::uno::Reference< css::text::XText > xParent, SwPaM const &rSourceCursor, const CursorType eType=CursorType::All)
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual sal_Bool SAL_CALL isStartOfParagraph() override
virtual void SAL_CALL addVetoableChangeListener(const OUString &rPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &xListener) override
virtual sal_Bool SAL_CALL gotoStartOfSentence(sal_Bool Expand) override
virtual void SAL_CALL invalidateMarkings(::sal_Int32 nType) override
Marks a position in the document model.
::cppu::WeakImplHelper< css::lang::XServiceInfo, css::beans::XPropertySet, css::beans::XPropertyState, css::beans::XMultiPropertySet, css::beans::XMultiPropertyStates, css::container::XEnumerationAccess, css::container::XContentEnumerationAccess, css::util::XSortable, css::document::XDocumentInsertable, css::text::XSentenceCursor, css::text::XWordCursor, css::text::XParagraphCursor, css::text::XRedline, css::text::XMarkingAccess > SwXTextCursor_Base