20#ifndef INCLUDED_SW_INC_UNOTEXT_HXX
21#define INCLUDED_SW_INC_UNOTEXT_HXX
23#include <com/sun/star/beans/XPropertySet.hpp>
24#include <com/sun/star/text/XTextCopy.hpp>
25#include <com/sun/star/text/XTextRangeCompare.hpp>
26#include <com/sun/star/text/XRelativeTextContentInsert.hpp>
27#include <com/sun/star/text/XRelativeTextContentRemove.hpp>
28#include <com/sun/star/text/XTextAppendAndConvert.hpp>
46 :
public css::lang::XTypeProvider
47 ,
public css::beans::XPropertySet
48 ,
public css::text::XTextAppendAndConvert
49 ,
public css::text::XTextCopy
50 ,
public css::text::XTextRangeCompare
51 ,
public css::text::XRelativeTextContentInsert
52 ,
public css::text::XRelativeTextContentRemove
60 virtual void PrepareForAttach(
61 css::uno::Reference< css::text::XTextRange > & xRange,
65 virtual bool CheckForOwnMemberMeta(
66 const SwPaM & rPam,
const bool bAbsorb);
72 void SetDoc(
SwDoc *
const pDoc);
83 const SwDoc* GetDoc()
const;
88 const css::uno::Type& rType)
override;
91 virtual css::uno::Sequence< css::uno::Type >
92 SAL_CALL getTypes()
override;
95 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
96 getPropertySetInfo()
override;
98 const OUString& rPropertyName,
99 const css::uno::Any& rValue)
override;
101 const OUString& rPropertyName)
override;
102 virtual void SAL_CALL addPropertyChangeListener(
103 const OUString& rPropertyName,
104 const css::uno::Reference<
105 css::beans::XPropertyChangeListener >& xListener)
override;
106 virtual void SAL_CALL removePropertyChangeListener(
107 const OUString& rPropertyName,
108 const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener)
override;
109 virtual void SAL_CALL addVetoableChangeListener(
110 const OUString& rPropertyName,
111 const css::uno::Reference< css::beans::XVetoableChangeListener >& xListener)
override;
112 virtual void SAL_CALL removeVetoableChangeListener(
113 const OUString& rPropertyName,
114 const css::uno::Reference< css::beans::XVetoableChangeListener >& xListener)
override;
117 virtual css::uno::Reference< css::text::XText >
118 SAL_CALL getText()
override;
119 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getStart()
override;
120 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getEnd()
override;
121 virtual OUString SAL_CALL
getString()
override;
122 virtual void SAL_CALL setString(
const OUString& rString)
override;
125 virtual void SAL_CALL insertString(
126 const css::uno::Reference< css::text::XTextRange > & xRange,
127 const OUString& aString,
sal_Bool bAbsorb)
override;
128 virtual void SAL_CALL insertControlCharacter(
129 const css::uno::Reference< css::text::XTextRange > & xRange,
130 sal_Int16 nControlCharacter,
sal_Bool bAbsorb)
override;
131 virtual css::uno::Reference< css::text::XTextCursor > SAL_CALL createTextCursorByRange(
132 const ::css::uno::Reference< ::css::text::XTextRange >& aTextPosition )
override final;
134 const ::css::uno::Reference< ::css::text::XTextRange >& aTextPosition ) = 0;
135 virtual css::uno::Reference< css::text::XTextCursor > SAL_CALL createTextCursor() override final;
139 virtual
void SAL_CALL insertTextContent(
140 const css::
uno::Reference< css::text::XTextRange > & xRange,
141 const css::
uno::Reference< css::text::XTextContent > & xContent,
143 virtual
void SAL_CALL removeTextContent(
144 const css::
uno::Reference< css::text::XTextContent > & xContent) override;
147 virtual css::
uno::Reference< css::text::XTextRange > SAL_CALL
149 const css::
uno::Sequence< css::beans::PropertyValue >& rCharacterAndParagraphProperties) override;
150 virtual css::
uno::Reference< css::text::XTextRange > SAL_CALL
151 finishParagraphInsert(
152 const css::
uno::Sequence< css::beans::PropertyValue >& rCharacterAndParagraphProperties,
153 const css::
uno::Reference< css::text::XTextRange >& xInsertPosition) override;
156 virtual css::
uno::Reference< css::text::XTextRange > SAL_CALL
158 const OUString& rText,
159 const css::
uno::Sequence< css::beans::PropertyValue >& rCharacterAndParagraphProperties) override;
161 virtual css::
uno::Reference< css::text::XTextRange > SAL_CALL
163 const OUString& rText,
164 const css::
uno::Sequence< css::beans::PropertyValue >& rCharacterAndParagraphProperties,
165 const css::
uno::Reference< css::text::XTextRange >& rTextRange) override;
168 virtual css::
uno::Reference< css::text::XTextRange > SAL_CALL
170 const css::
uno::Reference< css::text::XTextContent >& xTextContent,
171 const css::
uno::Sequence< css::beans::PropertyValue >& rCharacterAndParagraphProperties) override;
172 virtual css::
uno::Reference< css::text::XTextRange > SAL_CALL
173 insertTextContentWithProperties(
174 const css::
uno::Reference< css::text::XTextContent >& xTextContent,
175 const css::
uno::Sequence< css::beans::PropertyValue >& rCharacterAndParagraphProperties,
176 const css::
uno::Reference< css::text::XTextRange >& xInsertPosition) override;
179 virtual css::
uno::Reference< css::text::XTextContent > SAL_CALL
181 const css::
uno::Reference< css::text::XTextRange >& xStart,
182 const css::
uno::Reference< css::text::XTextRange >& xEnd,
183 const css::
uno::Sequence< css::beans::PropertyValue >& xFrameProperties) override;
184 virtual css::
uno::Reference<
185 css::text::XTextTable > SAL_CALL
191 css::text::XTextRange > > > > const&
196 css::beans::PropertyValue > > > const&
200 css::beans::PropertyValue > > const&
203 css::beans::PropertyValue > const&
204 rTableProperties) override;
207 virtual
void SAL_CALL copyText(
208 const css::
uno::Reference< css::text::XTextCopy >& xSource ) override;
211 sal_Int16 SAL_CALL compareRegionStarts(
212 const css::
uno::Reference< css::text::XTextRange >& xR1,
213 const css::
uno::Reference< css::text::XTextRange >& xR2) override;
214 sal_Int16 SAL_CALL compareRegionEnds(
215 const css::
uno::Reference< css::text::XTextRange >& xR1,
216 const css::
uno::Reference< css::text::XTextRange >& xR2) override;
219 virtual
void SAL_CALL insertTextContentBefore(
220 const css::
uno::Reference< css::text::XTextContent>& xNewContent,
221 const css::
uno::Reference< css::text::XTextContent>& xSuccessor) override;
222 virtual
void SAL_CALL insertTextContentAfter(
223 const css::
uno::Reference< css::text::XTextContent>& xNewContent,
224 const css::
uno::Reference< css::text::XTextContent>& xPredecessor) override;
227 virtual
void SAL_CALL removeTextContentBefore(
228 const css::
uno::Reference< css::text::XTextContent>& xSuccessor) override;
229 virtual
void SAL_CALL removeTextContentAfter(
230 const css::
uno::Reference< css::text::XTextContent>& xPredecessor) override;
PaM is Point and Mark: a selection of the document model.
Starts a section of nodes in the document model.
virtual rtl::Reference< SwXTextCursor > createXTextCursorByRange(const ::css::uno::Reference< ::css::text::XTextRange > &aTextPosition)=0
::sw::UnoImplPtr< Impl > m_pImpl
static SwNode * GetStartNode(SwOutlineNodes const *pOutlNds, int nOutlineLevel, SwOutlineNodes::size_type *nOutl)
OUString getString(const Any &_rAny)
css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType, Interface1 *p1)
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)
std::unique_ptr< T, UnoImplPtrDeleter< T > > UnoImplPtr
Smart pointer class ensuring that the pointed object is deleted with a locked SolarMutex.