xref: /trunk/main/sw/inc/unotext.hxx (revision 1d2dbeb0)
1*1d2dbeb0SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*1d2dbeb0SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*1d2dbeb0SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*1d2dbeb0SAndrew Rist  * distributed with this work for additional information
6*1d2dbeb0SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*1d2dbeb0SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*1d2dbeb0SAndrew Rist  * "License"); you may not use this file except in compliance
9*1d2dbeb0SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*1d2dbeb0SAndrew Rist  *
11*1d2dbeb0SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*1d2dbeb0SAndrew Rist  *
13*1d2dbeb0SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*1d2dbeb0SAndrew Rist  * software distributed under the License is distributed on an
15*1d2dbeb0SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*1d2dbeb0SAndrew Rist  * KIND, either express or implied.  See the License for the
17*1d2dbeb0SAndrew Rist  * specific language governing permissions and limitations
18*1d2dbeb0SAndrew Rist  * under the License.
19*1d2dbeb0SAndrew Rist  *
20*1d2dbeb0SAndrew Rist  *************************************************************/
21*1d2dbeb0SAndrew Rist 
22*1d2dbeb0SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef SW_UNOTEXT_HXX
25cdf0e10cSrcweir #define SW_UNOTEXT_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include <com/sun/star/lang/XUnoTunnel.hpp>
28cdf0e10cSrcweir #include <com/sun/star/beans/XPropertySet.hpp>
29cdf0e10cSrcweir #include <com/sun/star/text/XText.hpp>
30cdf0e10cSrcweir #include <com/sun/star/text/XTextCopy.hpp>
31cdf0e10cSrcweir #include <com/sun/star/text/XTextRangeCompare.hpp>
32cdf0e10cSrcweir #include <com/sun/star/text/XRelativeTextContentInsert.hpp>
33cdf0e10cSrcweir #include <com/sun/star/text/XRelativeTextContentRemove.hpp>
34cdf0e10cSrcweir #include <com/sun/star/text/XTextAppendAndConvert.hpp>
35cdf0e10cSrcweir 
36cdf0e10cSrcweir #include <unobaseclass.hxx>
37cdf0e10cSrcweir 
38cdf0e10cSrcweir 
39cdf0e10cSrcweir namespace com { namespace sun { namespace star {
40cdf0e10cSrcweir     namespace text {
41cdf0e10cSrcweir         class XTextContent;
42cdf0e10cSrcweir     }
43cdf0e10cSrcweir } } }
44cdf0e10cSrcweir 
45cdf0e10cSrcweir class SfxItemPropertySet;
46cdf0e10cSrcweir class SwDoc;
47cdf0e10cSrcweir class SwStartNode;
48cdf0e10cSrcweir class SwPaM;
49cdf0e10cSrcweir class OTextCursorHelper;
50cdf0e10cSrcweir class SwXTextRange;
51cdf0e10cSrcweir 
52cdf0e10cSrcweir 
53cdf0e10cSrcweir /* -----------------03.12.98 12:22-------------------
54cdf0e10cSrcweir  *
55cdf0e10cSrcweir  * --------------------------------------------------*/
56cdf0e10cSrcweir 
57cdf0e10cSrcweir class SwXText
58cdf0e10cSrcweir     : public ::com::sun::star::lang::XTypeProvider
59cdf0e10cSrcweir     , public ::com::sun::star::lang::XUnoTunnel
60cdf0e10cSrcweir     , public ::com::sun::star::beans::XPropertySet
61cdf0e10cSrcweir     , public ::com::sun::star::text::XTextAppendAndConvert
62cdf0e10cSrcweir     , public ::com::sun::star::text::XTextCopy
63cdf0e10cSrcweir     , public ::com::sun::star::text::XTextRangeCompare
64cdf0e10cSrcweir     , public ::com::sun::star::text::XRelativeTextContentInsert
65cdf0e10cSrcweir     , public ::com::sun::star::text::XRelativeTextContentRemove
66cdf0e10cSrcweir {
67cdf0e10cSrcweir 
68cdf0e10cSrcweir private:
69cdf0e10cSrcweir 
70cdf0e10cSrcweir     class Impl;
71cdf0e10cSrcweir     ::sw::UnoImplPtr<Impl> m_pImpl;
72cdf0e10cSrcweir 
73cdf0e10cSrcweir     virtual void PrepareForAttach(
74cdf0e10cSrcweir             ::com::sun::star::uno::Reference<
75cdf0e10cSrcweir                 ::com::sun::star::text::XTextRange > & xRange,
76cdf0e10cSrcweir             SwPaM const & rPam);
77cdf0e10cSrcweir     virtual bool CheckForOwnMemberMeta(
78cdf0e10cSrcweir             const SwPaM & rPam, const bool bAbsorb)
79cdf0e10cSrcweir         throw (::com::sun::star::lang::IllegalArgumentException,
80cdf0e10cSrcweir                ::com::sun::star::uno::RuntimeException);
81cdf0e10cSrcweir 
82cdf0e10cSrcweir protected:
83cdf0e10cSrcweir 
84cdf0e10cSrcweir     bool            IsValid() const;
85cdf0e10cSrcweir     void            Invalidate();
86cdf0e10cSrcweir     void            SetDoc(SwDoc *const pDoc);
87cdf0e10cSrcweir 
88cdf0e10cSrcweir     virtual ~SwXText();
89cdf0e10cSrcweir 
90cdf0e10cSrcweir public: /*not protected because C++ is retarded*/
91cdf0e10cSrcweir     virtual const SwStartNode *GetStartNode() const;
92cdf0e10cSrcweir 
93cdf0e10cSrcweir public:
94cdf0e10cSrcweir 
95cdf0e10cSrcweir     SwXText(SwDoc *const pDoc, const enum CursorType eType);
96cdf0e10cSrcweir 
97cdf0e10cSrcweir     const SwDoc*    GetDoc() const;
98cdf0e10cSrcweir           SwDoc*    GetDoc();
99cdf0e10cSrcweir 
100cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference<
101cdf0e10cSrcweir                 ::com::sun::star::text::XTextCursor >
102cdf0e10cSrcweir         CreateCursor()
103cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
104cdf0e10cSrcweir 
105cdf0e10cSrcweir 
106cdf0e10cSrcweir     // XInterface
107cdf0e10cSrcweir     virtual ::com::sun::star::uno::Any SAL_CALL queryInterface(
108cdf0e10cSrcweir             const ::com::sun::star::uno::Type& rType)
109cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
110cdf0e10cSrcweir 
111cdf0e10cSrcweir     // XTypeProvider
112cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >
113cdf0e10cSrcweir         SAL_CALL getTypes()
114cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
115cdf0e10cSrcweir 
116cdf0e10cSrcweir     static const ::com::sun::star::uno::Sequence< sal_Int8 >& getUnoTunnelId();
117cdf0e10cSrcweir 
118cdf0e10cSrcweir     // XUnoTunnel
119cdf0e10cSrcweir     virtual sal_Int64 SAL_CALL getSomething(
120cdf0e10cSrcweir             const ::com::sun::star::uno::Sequence< sal_Int8 >& rIdentifier)
121cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
122cdf0e10cSrcweir 
123cdf0e10cSrcweir     // XPropertySet
124cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference<
125cdf0e10cSrcweir                 ::com::sun::star::beans::XPropertySetInfo > SAL_CALL
126cdf0e10cSrcweir         getPropertySetInfo()
127cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
128cdf0e10cSrcweir     virtual void SAL_CALL setPropertyValue(
129cdf0e10cSrcweir             const ::rtl::OUString& rPropertyName,
130cdf0e10cSrcweir             const ::com::sun::star::uno::Any& rValue)
131cdf0e10cSrcweir         throw (::com::sun::star::beans::UnknownPropertyException,
132cdf0e10cSrcweir                 ::com::sun::star::beans::PropertyVetoException,
133cdf0e10cSrcweir                 ::com::sun::star::lang::IllegalArgumentException,
134cdf0e10cSrcweir                 ::com::sun::star::lang::WrappedTargetException,
135cdf0e10cSrcweir                 ::com::sun::star::uno::RuntimeException);
136cdf0e10cSrcweir     virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(
137cdf0e10cSrcweir             const ::rtl::OUString& rPropertyName)
138cdf0e10cSrcweir         throw (::com::sun::star::beans::UnknownPropertyException,
139cdf0e10cSrcweir                 ::com::sun::star::lang::WrappedTargetException,
140cdf0e10cSrcweir                 ::com::sun::star::uno::RuntimeException);
141cdf0e10cSrcweir     virtual void SAL_CALL addPropertyChangeListener(
142cdf0e10cSrcweir             const ::rtl::OUString& rPropertyName,
143cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
144cdf0e10cSrcweir                 ::com::sun::star::beans::XPropertyChangeListener >& xListener)
145cdf0e10cSrcweir         throw (::com::sun::star::beans::UnknownPropertyException,
146cdf0e10cSrcweir                 ::com::sun::star::lang::WrappedTargetException,
147cdf0e10cSrcweir                 ::com::sun::star::uno::RuntimeException);
148cdf0e10cSrcweir     virtual void SAL_CALL removePropertyChangeListener(
149cdf0e10cSrcweir             const ::rtl::OUString& rPropertyName,
150cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
151cdf0e10cSrcweir                 ::com::sun::star::beans::XPropertyChangeListener >& xListener)
152cdf0e10cSrcweir         throw (::com::sun::star::beans::UnknownPropertyException,
153cdf0e10cSrcweir                 ::com::sun::star::lang::WrappedTargetException,
154cdf0e10cSrcweir                 ::com::sun::star::uno::RuntimeException);
155cdf0e10cSrcweir     virtual void SAL_CALL addVetoableChangeListener(
156cdf0e10cSrcweir             const ::rtl::OUString& rPropertyName,
157cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
158cdf0e10cSrcweir                 ::com::sun::star::beans::XVetoableChangeListener >& xListener)
159cdf0e10cSrcweir         throw (::com::sun::star::beans::UnknownPropertyException,
160cdf0e10cSrcweir                 ::com::sun::star::lang::WrappedTargetException,
161cdf0e10cSrcweir                 ::com::sun::star::uno::RuntimeException);
162cdf0e10cSrcweir     virtual void SAL_CALL removeVetoableChangeListener(
163cdf0e10cSrcweir             const ::rtl::OUString& rPropertyName,
164cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
165cdf0e10cSrcweir                 ::com::sun::star::beans::XVetoableChangeListener >& xListener)
166cdf0e10cSrcweir         throw (::com::sun::star::beans::UnknownPropertyException,
167cdf0e10cSrcweir                 ::com::sun::star::lang::WrappedTargetException,
168cdf0e10cSrcweir                 ::com::sun::star::uno::RuntimeException);
169cdf0e10cSrcweir 
170cdf0e10cSrcweir     // XTextRange
171cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XText >
172cdf0e10cSrcweir         SAL_CALL getText()
173cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
174cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference<
175cdf0e10cSrcweir                 ::com::sun::star::text::XTextRange > SAL_CALL getStart()
176cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
177cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference<
178cdf0e10cSrcweir                 ::com::sun::star::text::XTextRange > SAL_CALL getEnd()
179cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
180cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL getString()
181cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
182cdf0e10cSrcweir     virtual void SAL_CALL setString(const ::rtl::OUString& rString)
183cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
184cdf0e10cSrcweir 
185cdf0e10cSrcweir     // XSimpleText
186cdf0e10cSrcweir     virtual void SAL_CALL insertString(
187cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
188cdf0e10cSrcweir                 ::com::sun::star::text::XTextRange > & xRange,
189cdf0e10cSrcweir             const ::rtl::OUString& aString, sal_Bool bAbsorb)
190cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
191cdf0e10cSrcweir     virtual void SAL_CALL insertControlCharacter(
192cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
193cdf0e10cSrcweir                 ::com::sun::star::text::XTextRange > & xRange,
194cdf0e10cSrcweir             sal_Int16 nControlCharacter, sal_Bool bAbsorb)
195cdf0e10cSrcweir         throw (::com::sun::star::lang::IllegalArgumentException,
196cdf0e10cSrcweir                 ::com::sun::star::uno::RuntimeException);
197cdf0e10cSrcweir 
198cdf0e10cSrcweir     // XText
199cdf0e10cSrcweir     virtual void SAL_CALL insertTextContent(
200cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
201cdf0e10cSrcweir                 ::com::sun::star::text::XTextRange > & xRange,
202cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
203cdf0e10cSrcweir                 ::com::sun::star::text::XTextContent > & xContent,
204cdf0e10cSrcweir             sal_Bool bAbsorb)
205cdf0e10cSrcweir         throw (::com::sun::star::lang::IllegalArgumentException,
206cdf0e10cSrcweir             ::com::sun::star::uno::RuntimeException);
207cdf0e10cSrcweir     virtual void SAL_CALL removeTextContent(
208cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
209cdf0e10cSrcweir                 ::com::sun::star::text::XTextContent > & xContent)
210cdf0e10cSrcweir         throw (::com::sun::star::container::NoSuchElementException,
211cdf0e10cSrcweir                 ::com::sun::star::uno::RuntimeException);
212cdf0e10cSrcweir 
213cdf0e10cSrcweir     // XParagraphAppend
214cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference<
215cdf0e10cSrcweir                 ::com::sun::star::text::XTextRange > SAL_CALL
216cdf0e10cSrcweir         appendParagraph(
217cdf0e10cSrcweir             const ::com::sun::star::uno::Sequence<
218cdf0e10cSrcweir                     ::com::sun::star::beans::PropertyValue >&
219cdf0e10cSrcweir                 rCharacterAndParagraphProperties)
220cdf0e10cSrcweir         throw (::com::sun::star::lang::IllegalArgumentException,
221cdf0e10cSrcweir                 ::com::sun::star::uno::RuntimeException);
222cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference<
223cdf0e10cSrcweir                 ::com::sun::star::text::XTextRange > SAL_CALL
224cdf0e10cSrcweir         finishParagraph(
225cdf0e10cSrcweir             const ::com::sun::star::uno::Sequence<
226cdf0e10cSrcweir                     ::com::sun::star::beans::PropertyValue >&
227cdf0e10cSrcweir                 rCharacterAndParagraphProperties)
228cdf0e10cSrcweir         throw (::com::sun::star::lang::IllegalArgumentException,
229cdf0e10cSrcweir                 ::com::sun::star::uno::RuntimeException);
230cdf0e10cSrcweir 
231cdf0e10cSrcweir     // XTextPortionAppend
232cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference<
233cdf0e10cSrcweir                 ::com::sun::star::text::XTextRange > SAL_CALL
234cdf0e10cSrcweir         appendTextPortion(
235cdf0e10cSrcweir             const ::rtl::OUString& rText,
236cdf0e10cSrcweir             const ::com::sun::star::uno::Sequence<
237cdf0e10cSrcweir                     ::com::sun::star::beans::PropertyValue >&
238cdf0e10cSrcweir                 rCharacterAndParagraphProperties)
239cdf0e10cSrcweir         throw (::com::sun::star::lang::IllegalArgumentException,
240cdf0e10cSrcweir                 ::com::sun::star::uno::RuntimeException);
241cdf0e10cSrcweir 
242cdf0e10cSrcweir     // XTextContentAppend
243cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference<
244cdf0e10cSrcweir                 ::com::sun::star::text::XTextRange > SAL_CALL
245cdf0e10cSrcweir         appendTextContent(
246cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
247cdf0e10cSrcweir                 ::com::sun::star::text::XTextContent >& xTextContent,
248cdf0e10cSrcweir             const ::com::sun::star::uno::Sequence<
249cdf0e10cSrcweir                     ::com::sun::star::beans::PropertyValue >&
250cdf0e10cSrcweir                 rCharacterAndParagraphProperties)
251cdf0e10cSrcweir         throw (::com::sun::star::lang::IllegalArgumentException,
252cdf0e10cSrcweir                 ::com::sun::star::uno::RuntimeException);
253cdf0e10cSrcweir 
254cdf0e10cSrcweir     // XTextConvert
255cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference<
256cdf0e10cSrcweir                 ::com::sun::star::text::XTextContent > SAL_CALL
257cdf0e10cSrcweir         convertToTextFrame(
258cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
259cdf0e10cSrcweir                 ::com::sun::star::text::XTextRange >& xStart,
260cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
261cdf0e10cSrcweir                 ::com::sun::star::text::XTextRange >& xEnd,
262cdf0e10cSrcweir             const ::com::sun::star::uno::Sequence<
263cdf0e10cSrcweir                 ::com::sun::star::beans::PropertyValue >& xFrameProperties)
264cdf0e10cSrcweir         throw (::com::sun::star::lang::IllegalArgumentException,
265cdf0e10cSrcweir                 ::com::sun::star::uno::RuntimeException);
266cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference<
267cdf0e10cSrcweir                 ::com::sun::star::text::XTextTable > SAL_CALL
268cdf0e10cSrcweir         convertToTable(
269cdf0e10cSrcweir             ::com::sun::star::uno::Sequence<
270cdf0e10cSrcweir                 ::com::sun::star::uno::Sequence<
271cdf0e10cSrcweir                     ::com::sun::star::uno::Sequence<
272cdf0e10cSrcweir                         ::com::sun::star::uno::Reference<
273cdf0e10cSrcweir                             ::com::sun::star::text::XTextRange > > > > const&
274cdf0e10cSrcweir                 rTableRanges,
275cdf0e10cSrcweir            ::com::sun::star::uno::Sequence<
276cdf0e10cSrcweir                 ::com::sun::star::uno::Sequence<
277cdf0e10cSrcweir                     ::com::sun::star::uno::Sequence<
278cdf0e10cSrcweir                         ::com::sun::star::beans::PropertyValue > > > const&
279cdf0e10cSrcweir                 rCellProperties,
280cdf0e10cSrcweir            ::com::sun::star::uno::Sequence<
281cdf0e10cSrcweir                 ::com::sun::star::uno::Sequence<
282cdf0e10cSrcweir                     ::com::sun::star::beans::PropertyValue > > const&
283cdf0e10cSrcweir                 rRowProperties,
284cdf0e10cSrcweir            ::com::sun::star::uno::Sequence<
285cdf0e10cSrcweir                 ::com::sun::star::beans::PropertyValue > const&
286cdf0e10cSrcweir                 rTableProperties)
287cdf0e10cSrcweir         throw (::com::sun::star::lang::IllegalArgumentException,
288cdf0e10cSrcweir                 ::com::sun::star::uno::RuntimeException);
289cdf0e10cSrcweir 
290cdf0e10cSrcweir     // XTextCopy
291cdf0e10cSrcweir     virtual void SAL_CALL copyText(
292cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
293cdf0e10cSrcweir                 ::com::sun::star::text::XTextCopy >& xSource )
294cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
295cdf0e10cSrcweir 
296cdf0e10cSrcweir     // XTextRangeCompare
297cdf0e10cSrcweir     sal_Int16 SAL_CALL compareRegionStarts(
298cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
299cdf0e10cSrcweir                 ::com::sun::star::text::XTextRange >& xR1,
300cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
301cdf0e10cSrcweir                 ::com::sun::star::text::XTextRange >& xR2)
302cdf0e10cSrcweir         throw (::com::sun::star::lang::IllegalArgumentException,
303cdf0e10cSrcweir                 ::com::sun::star::uno::RuntimeException);
304cdf0e10cSrcweir     sal_Int16 SAL_CALL compareRegionEnds(
305cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
306cdf0e10cSrcweir                 ::com::sun::star::text::XTextRange >& xR1,
307cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
308cdf0e10cSrcweir                 ::com::sun::star::text::XTextRange >& xR2)
309cdf0e10cSrcweir         throw (::com::sun::star::lang::IllegalArgumentException,
310cdf0e10cSrcweir                 ::com::sun::star::uno::RuntimeException);
311cdf0e10cSrcweir 
312cdf0e10cSrcweir     // XRelativeTextContentInsert
313cdf0e10cSrcweir     virtual void SAL_CALL insertTextContentBefore(
314cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
315cdf0e10cSrcweir                 ::com::sun::star::text::XTextContent>& xNewContent,
316cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
317cdf0e10cSrcweir                 ::com::sun::star::text::XTextContent>& xSuccessor)
318cdf0e10cSrcweir         throw (::com::sun::star::lang::IllegalArgumentException,
319cdf0e10cSrcweir                 ::com::sun::star::uno::RuntimeException);
320cdf0e10cSrcweir     virtual void SAL_CALL insertTextContentAfter(
321cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
322cdf0e10cSrcweir                 ::com::sun::star::text::XTextContent>& xNewContent,
323cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
324cdf0e10cSrcweir                 ::com::sun::star::text::XTextContent>& xPredecessor)
325cdf0e10cSrcweir         throw (::com::sun::star::lang::IllegalArgumentException,
326cdf0e10cSrcweir                 ::com::sun::star::uno::RuntimeException);
327cdf0e10cSrcweir 
328cdf0e10cSrcweir     // XRelativeTextContentRemove
329cdf0e10cSrcweir     virtual void SAL_CALL removeTextContentBefore(
330cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
331cdf0e10cSrcweir                 ::com::sun::star::text::XTextContent>& xSuccessor)
332cdf0e10cSrcweir         throw (::com::sun::star::lang::IllegalArgumentException,
333cdf0e10cSrcweir                 ::com::sun::star::uno::RuntimeException);
334cdf0e10cSrcweir     virtual void SAL_CALL removeTextContentAfter(
335cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
336cdf0e10cSrcweir                 ::com::sun::star::text::XTextContent>& xPredecessor)
337cdf0e10cSrcweir         throw (::com::sun::star::lang::IllegalArgumentException,
338cdf0e10cSrcweir                 ::com::sun::star::uno::RuntimeException);
339cdf0e10cSrcweir };
340cdf0e10cSrcweir 
341cdf0e10cSrcweir #endif // SW_UNOTEXT_HXX
342cdf0e10cSrcweir 
343