xref: /aoo41x/main/sw/inc/unoparagraph.hxx (revision cdf0e10c)
1*cdf0e10cSrcweir /*************************************************************************
2*cdf0e10cSrcweir  *
3*cdf0e10cSrcweir  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir  *
5*cdf0e10cSrcweir  * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir  *
7*cdf0e10cSrcweir  * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir  *
9*cdf0e10cSrcweir  * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir  *
11*cdf0e10cSrcweir  * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir  * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir  * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir  *
15*cdf0e10cSrcweir  * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir  * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir  * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir  *
21*cdf0e10cSrcweir  * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir  * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir  * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir  * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir  *
26*cdf0e10cSrcweir  ************************************************************************/
27*cdf0e10cSrcweir 
28*cdf0e10cSrcweir #ifndef SW_UNOPARAGRAPH_HXX
29*cdf0e10cSrcweir #define SW_UNOPARAGRAPH_HXX
30*cdf0e10cSrcweir 
31*cdf0e10cSrcweir #include <memory>
32*cdf0e10cSrcweir 
33*cdf0e10cSrcweir #include <com/sun/star/lang/XUnoTunnel.hpp>
34*cdf0e10cSrcweir #include <com/sun/star/lang/XServiceInfo.hpp>
35*cdf0e10cSrcweir #include <com/sun/star/beans/XPropertySet.hpp>
36*cdf0e10cSrcweir #include <com/sun/star/beans/XPropertyState.hpp>
37*cdf0e10cSrcweir #include <com/sun/star/beans/XMultiPropertySet.hpp>
38*cdf0e10cSrcweir #include <com/sun/star/beans/XTolerantMultiPropertySet.hpp>
39*cdf0e10cSrcweir #include <com/sun/star/container/XEnumerationAccess.hpp>
40*cdf0e10cSrcweir #include <com/sun/star/container/XContentEnumerationAccess.hpp>
41*cdf0e10cSrcweir #include <com/sun/star/text/XTextContent.hpp>
42*cdf0e10cSrcweir #include <com/sun/star/text/XTextRange.hpp>
43*cdf0e10cSrcweir 
44*cdf0e10cSrcweir #include <cppuhelper/implbase10.hxx>
45*cdf0e10cSrcweir 
46*cdf0e10cSrcweir #include <sfx2/Metadatable.hxx>
47*cdf0e10cSrcweir 
48*cdf0e10cSrcweir #include <unobaseclass.hxx>
49*cdf0e10cSrcweir 
50*cdf0e10cSrcweir 
51*cdf0e10cSrcweir struct SwPosition;
52*cdf0e10cSrcweir class SwPaM;
53*cdf0e10cSrcweir class SwUnoCrsr;
54*cdf0e10cSrcweir class SwStartNode;
55*cdf0e10cSrcweir class SwTxtNode;
56*cdf0e10cSrcweir class SwTable;
57*cdf0e10cSrcweir class SwXText;
58*cdf0e10cSrcweir 
59*cdf0e10cSrcweir 
60*cdf0e10cSrcweir /*-----------------07.04.98 08:15-------------------
61*cdf0e10cSrcweir 
62*cdf0e10cSrcweir --------------------------------------------------*/
63*cdf0e10cSrcweir typedef ::cppu::ImplInheritanceHelper10
64*cdf0e10cSrcweir <   ::sfx2::MetadatableMixin
65*cdf0e10cSrcweir ,   ::com::sun::star::lang::XUnoTunnel
66*cdf0e10cSrcweir ,   ::com::sun::star::lang::XServiceInfo
67*cdf0e10cSrcweir ,   ::com::sun::star::beans::XPropertySet
68*cdf0e10cSrcweir ,   ::com::sun::star::beans::XPropertyState
69*cdf0e10cSrcweir ,   ::com::sun::star::beans::XMultiPropertySet
70*cdf0e10cSrcweir ,   ::com::sun::star::beans::XTolerantMultiPropertySet
71*cdf0e10cSrcweir ,   ::com::sun::star::container::XEnumerationAccess
72*cdf0e10cSrcweir ,   ::com::sun::star::container::XContentEnumerationAccess
73*cdf0e10cSrcweir ,   ::com::sun::star::text::XTextContent
74*cdf0e10cSrcweir ,   ::com::sun::star::text::XTextRange
75*cdf0e10cSrcweir > SwXParagraph_Base;
76*cdf0e10cSrcweir 
77*cdf0e10cSrcweir class SwXParagraph
78*cdf0e10cSrcweir     : public SwXParagraph_Base
79*cdf0e10cSrcweir {
80*cdf0e10cSrcweir 
81*cdf0e10cSrcweir private:
82*cdf0e10cSrcweir 
83*cdf0e10cSrcweir     class Impl;
84*cdf0e10cSrcweir     ::sw::UnoImplPtr<Impl> m_pImpl;
85*cdf0e10cSrcweir 
86*cdf0e10cSrcweir     virtual ~SwXParagraph();
87*cdf0e10cSrcweir 
88*cdf0e10cSrcweir     SwXParagraph(::com::sun::star::uno::Reference<
89*cdf0e10cSrcweir                     ::com::sun::star::text::XText > const & xParent,
90*cdf0e10cSrcweir             SwTxtNode & rTxtNode,
91*cdf0e10cSrcweir             const sal_Int32 nSelStart = -1, const sal_Int32 nSelEnd = - 1);
92*cdf0e10cSrcweir 
93*cdf0e10cSrcweir public:
94*cdf0e10cSrcweir 
95*cdf0e10cSrcweir     /// descriptor
96*cdf0e10cSrcweir     SwXParagraph();
97*cdf0e10cSrcweir 
98*cdf0e10cSrcweir     static ::com::sun::star::uno::Reference<
99*cdf0e10cSrcweir             ::com::sun::star::text::XTextContent>
100*cdf0e10cSrcweir         CreateXParagraph(SwDoc & rDoc, SwTxtNode& rTxtNode,
101*cdf0e10cSrcweir             ::com::sun::star::uno::Reference< ::com::sun::star::text::XText>
102*cdf0e10cSrcweir                 const& xParentText = 0,
103*cdf0e10cSrcweir             const sal_Int32 nSelStart = -1, const sal_Int32 nSelEnd = - 1);
104*cdf0e10cSrcweir 
105*cdf0e10cSrcweir     const SwTxtNode * GetTxtNode() const;
106*cdf0e10cSrcweir     bool            IsDescriptor() const;
107*cdf0e10cSrcweir     /// make rPaM select the paragraph
108*cdf0e10cSrcweir     bool SelectPaM(SwPaM & rPaM);
109*cdf0e10cSrcweir     /// for SwXText
110*cdf0e10cSrcweir     void attachToText(SwXText & rParent, SwTxtNode & rTxtNode);
111*cdf0e10cSrcweir 
112*cdf0e10cSrcweir     // MetadatableMixin
113*cdf0e10cSrcweir     virtual ::sfx2::Metadatable* GetCoreObject();
114*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >
115*cdf0e10cSrcweir         GetModel();
116*cdf0e10cSrcweir 
117*cdf0e10cSrcweir     static const ::com::sun::star::uno::Sequence< sal_Int8 >& getUnoTunnelId();
118*cdf0e10cSrcweir 
119*cdf0e10cSrcweir     // XUnoTunnel
120*cdf0e10cSrcweir     virtual sal_Int64 SAL_CALL getSomething(
121*cdf0e10cSrcweir             const ::com::sun::star::uno::Sequence< sal_Int8 >& rIdentifier)
122*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
123*cdf0e10cSrcweir 
124*cdf0e10cSrcweir     // XServiceInfo
125*cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL getImplementationName()
126*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
127*cdf0e10cSrcweir     virtual sal_Bool SAL_CALL supportsService(
128*cdf0e10cSrcweir             const ::rtl::OUString& rServiceName)
129*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
130*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL
131*cdf0e10cSrcweir         getSupportedServiceNames()
132*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
133*cdf0e10cSrcweir 
134*cdf0e10cSrcweir     // XComponent
135*cdf0e10cSrcweir     virtual void SAL_CALL dispose()
136*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
137*cdf0e10cSrcweir     virtual void SAL_CALL addEventListener(
138*cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
139*cdf0e10cSrcweir                 ::com::sun::star::lang::XEventListener > & xListener)
140*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
141*cdf0e10cSrcweir     virtual void SAL_CALL removeEventListener(
142*cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
143*cdf0e10cSrcweir                 ::com::sun::star::lang::XEventListener > & xListener)
144*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
145*cdf0e10cSrcweir 
146*cdf0e10cSrcweir     // XPropertySet
147*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference<
148*cdf0e10cSrcweir                 ::com::sun::star::beans::XPropertySetInfo > SAL_CALL
149*cdf0e10cSrcweir         getPropertySetInfo()
150*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
151*cdf0e10cSrcweir     virtual void SAL_CALL setPropertyValue(
152*cdf0e10cSrcweir             const ::rtl::OUString& rPropertyName,
153*cdf0e10cSrcweir             const ::com::sun::star::uno::Any& rValue)
154*cdf0e10cSrcweir         throw (::com::sun::star::beans::UnknownPropertyException,
155*cdf0e10cSrcweir                 ::com::sun::star::beans::PropertyVetoException,
156*cdf0e10cSrcweir                 ::com::sun::star::lang::IllegalArgumentException,
157*cdf0e10cSrcweir                 ::com::sun::star::lang::WrappedTargetException,
158*cdf0e10cSrcweir                 ::com::sun::star::uno::RuntimeException);
159*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(
160*cdf0e10cSrcweir             const ::rtl::OUString& rPropertyName)
161*cdf0e10cSrcweir         throw (::com::sun::star::beans::UnknownPropertyException,
162*cdf0e10cSrcweir                 ::com::sun::star::lang::WrappedTargetException,
163*cdf0e10cSrcweir                 ::com::sun::star::uno::RuntimeException);
164*cdf0e10cSrcweir     virtual void SAL_CALL addPropertyChangeListener(
165*cdf0e10cSrcweir             const ::rtl::OUString& rPropertyName,
166*cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
167*cdf0e10cSrcweir                 ::com::sun::star::beans::XPropertyChangeListener >& xListener)
168*cdf0e10cSrcweir         throw (::com::sun::star::beans::UnknownPropertyException,
169*cdf0e10cSrcweir                 ::com::sun::star::lang::WrappedTargetException,
170*cdf0e10cSrcweir                 ::com::sun::star::uno::RuntimeException);
171*cdf0e10cSrcweir     virtual void SAL_CALL removePropertyChangeListener(
172*cdf0e10cSrcweir             const ::rtl::OUString& rPropertyName,
173*cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
174*cdf0e10cSrcweir                 ::com::sun::star::beans::XPropertyChangeListener >& xListener)
175*cdf0e10cSrcweir         throw (::com::sun::star::beans::UnknownPropertyException,
176*cdf0e10cSrcweir                 ::com::sun::star::lang::WrappedTargetException,
177*cdf0e10cSrcweir                 ::com::sun::star::uno::RuntimeException);
178*cdf0e10cSrcweir     virtual void SAL_CALL addVetoableChangeListener(
179*cdf0e10cSrcweir             const ::rtl::OUString& rPropertyName,
180*cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
181*cdf0e10cSrcweir                 ::com::sun::star::beans::XVetoableChangeListener >& xListener)
182*cdf0e10cSrcweir         throw (::com::sun::star::beans::UnknownPropertyException,
183*cdf0e10cSrcweir                 ::com::sun::star::lang::WrappedTargetException,
184*cdf0e10cSrcweir                 ::com::sun::star::uno::RuntimeException);
185*cdf0e10cSrcweir     virtual void SAL_CALL removeVetoableChangeListener(
186*cdf0e10cSrcweir             const ::rtl::OUString& rPropertyName,
187*cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
188*cdf0e10cSrcweir                 ::com::sun::star::beans::XVetoableChangeListener >& xListener)
189*cdf0e10cSrcweir         throw (::com::sun::star::beans::UnknownPropertyException,
190*cdf0e10cSrcweir                 ::com::sun::star::lang::WrappedTargetException,
191*cdf0e10cSrcweir                 ::com::sun::star::uno::RuntimeException);
192*cdf0e10cSrcweir 
193*cdf0e10cSrcweir     // XPropertyState
194*cdf0e10cSrcweir     virtual ::com::sun::star::beans::PropertyState SAL_CALL
195*cdf0e10cSrcweir         getPropertyState(const ::rtl::OUString& rPropertyName)
196*cdf0e10cSrcweir         throw (::com::sun::star::beans::UnknownPropertyException,
197*cdf0e10cSrcweir                 ::com::sun::star::uno::RuntimeException);
198*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence<
199*cdf0e10cSrcweir             ::com::sun::star::beans::PropertyState > SAL_CALL
200*cdf0e10cSrcweir         getPropertyStates(
201*cdf0e10cSrcweir             const ::com::sun::star::uno::Sequence<
202*cdf0e10cSrcweir                 ::rtl::OUString >& rPropertyNames)
203*cdf0e10cSrcweir         throw (::com::sun::star::beans::UnknownPropertyException,
204*cdf0e10cSrcweir                 ::com::sun::star::uno::RuntimeException);
205*cdf0e10cSrcweir     virtual void SAL_CALL setPropertyToDefault(
206*cdf0e10cSrcweir             const ::rtl::OUString& rPropertyName)
207*cdf0e10cSrcweir         throw (::com::sun::star::beans::UnknownPropertyException,
208*cdf0e10cSrcweir                 ::com::sun::star::uno::RuntimeException);
209*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Any SAL_CALL getPropertyDefault(
210*cdf0e10cSrcweir             const ::rtl::OUString& rPropertyName)
211*cdf0e10cSrcweir         throw (::com::sun::star::beans::UnknownPropertyException,
212*cdf0e10cSrcweir                 ::com::sun::star::lang::WrappedTargetException,
213*cdf0e10cSrcweir                 ::com::sun::star::uno::RuntimeException);
214*cdf0e10cSrcweir 
215*cdf0e10cSrcweir     // XMultiPropertySet
216*cdf0e10cSrcweir     virtual void SAL_CALL setPropertyValues(
217*cdf0e10cSrcweir             const ::com::sun::star::uno::Sequence< ::rtl::OUString >&
218*cdf0e10cSrcweir                 rPropertyNames,
219*cdf0e10cSrcweir             const ::com::sun::star::uno::Sequence<
220*cdf0e10cSrcweir                 ::com::sun::star::uno::Any >& rValues)
221*cdf0e10cSrcweir         throw (::com::sun::star::beans::PropertyVetoException,
222*cdf0e10cSrcweir                 ::com::sun::star::lang::IllegalArgumentException,
223*cdf0e10cSrcweir                 ::com::sun::star::lang::WrappedTargetException,
224*cdf0e10cSrcweir                 ::com::sun::star::uno::RuntimeException);
225*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >
226*cdf0e10cSrcweir         SAL_CALL getPropertyValues(
227*cdf0e10cSrcweir             const ::com::sun::star::uno::Sequence< ::rtl::OUString >&
228*cdf0e10cSrcweir                 rPropertyNames)
229*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
230*cdf0e10cSrcweir     virtual void SAL_CALL addPropertiesChangeListener(
231*cdf0e10cSrcweir             const ::com::sun::star::uno::Sequence< ::rtl::OUString >&
232*cdf0e10cSrcweir                 rPropertyNames,
233*cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
234*cdf0e10cSrcweir                 ::com::sun::star::beans::XPropertiesChangeListener >& xListener)
235*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
236*cdf0e10cSrcweir     virtual void SAL_CALL removePropertiesChangeListener(
237*cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
238*cdf0e10cSrcweir                 ::com::sun::star::beans::XPropertiesChangeListener >& xListener)
239*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
240*cdf0e10cSrcweir     virtual void SAL_CALL firePropertiesChangeEvent(
241*cdf0e10cSrcweir             const ::com::sun::star::uno::Sequence< ::rtl::OUString >&
242*cdf0e10cSrcweir                 rPropertyNames,
243*cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
244*cdf0e10cSrcweir                 ::com::sun::star::beans::XPropertiesChangeListener >& xListener)
245*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
246*cdf0e10cSrcweir 
247*cdf0e10cSrcweir     // XTolerantMultiPropertySet
248*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence<
249*cdf0e10cSrcweir                 ::com::sun::star::beans::SetPropertyTolerantFailed > SAL_CALL
250*cdf0e10cSrcweir         setPropertyValuesTolerant(
251*cdf0e10cSrcweir             const ::com::sun::star::uno::Sequence< ::rtl::OUString >&
252*cdf0e10cSrcweir                 rPropertyNames,
253*cdf0e10cSrcweir             const ::com::sun::star::uno::Sequence<
254*cdf0e10cSrcweir                 ::com::sun::star::uno::Any >& rValues)
255*cdf0e10cSrcweir         throw (::com::sun::star::lang::IllegalArgumentException,
256*cdf0e10cSrcweir                 ::com::sun::star::uno::RuntimeException);
257*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence<
258*cdf0e10cSrcweir                 ::com::sun::star::beans::GetPropertyTolerantResult > SAL_CALL
259*cdf0e10cSrcweir         getPropertyValuesTolerant(
260*cdf0e10cSrcweir             const ::com::sun::star::uno::Sequence< ::rtl::OUString >&
261*cdf0e10cSrcweir                 rPropertyNames)
262*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
263*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence<
264*cdf0e10cSrcweir             ::com::sun::star::beans::GetDirectPropertyTolerantResult > SAL_CALL
265*cdf0e10cSrcweir         getDirectPropertyValuesTolerant(
266*cdf0e10cSrcweir             const ::com::sun::star::uno::Sequence< ::rtl::OUString >&
267*cdf0e10cSrcweir                 rPropertyNames)
268*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
269*cdf0e10cSrcweir 
270*cdf0e10cSrcweir     // XElementAccess
271*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Type SAL_CALL getElementType()
272*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
273*cdf0e10cSrcweir     virtual sal_Bool SAL_CALL hasElements()
274*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
275*cdf0e10cSrcweir 
276*cdf0e10cSrcweir     // XEnumerationAccess
277*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference<
278*cdf0e10cSrcweir             ::com::sun::star::container::XEnumeration >  SAL_CALL
279*cdf0e10cSrcweir         createEnumeration()
280*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
281*cdf0e10cSrcweir 
282*cdf0e10cSrcweir     // XContentEnumerationAccess
283*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference<
284*cdf0e10cSrcweir                 ::com::sun::star::container::XEnumeration > SAL_CALL
285*cdf0e10cSrcweir         createContentEnumeration(const ::rtl::OUString& rServiceName)
286*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
287*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL
288*cdf0e10cSrcweir         getAvailableServiceNames()
289*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
290*cdf0e10cSrcweir 
291*cdf0e10cSrcweir     // XTextContent
292*cdf0e10cSrcweir     virtual void SAL_CALL attach(
293*cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
294*cdf0e10cSrcweir                 ::com::sun::star::text::XTextRange > & xTextRange)
295*cdf0e10cSrcweir         throw (::com::sun::star::lang::IllegalArgumentException,
296*cdf0e10cSrcweir                 ::com::sun::star::uno::RuntimeException);
297*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference<
298*cdf0e10cSrcweir                 ::com::sun::star::text::XTextRange > SAL_CALL getAnchor()
299*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
300*cdf0e10cSrcweir 
301*cdf0e10cSrcweir     // XTextRange
302*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XText >
303*cdf0e10cSrcweir         SAL_CALL getText()
304*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
305*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference<
306*cdf0e10cSrcweir                 ::com::sun::star::text::XTextRange > SAL_CALL getStart()
307*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
308*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference<
309*cdf0e10cSrcweir                 ::com::sun::star::text::XTextRange > SAL_CALL getEnd()
310*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
311*cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL getString()
312*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
313*cdf0e10cSrcweir     virtual void SAL_CALL setString(const ::rtl::OUString& rString)
314*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
315*cdf0e10cSrcweir 
316*cdf0e10cSrcweir };
317*cdf0e10cSrcweir 
318*cdf0e10cSrcweir 
319*cdf0e10cSrcweir /*-----------------07.04.98 08:10-------------------
320*cdf0e10cSrcweir 
321*cdf0e10cSrcweir --------------------------------------------------*/
322*cdf0e10cSrcweir class SwXParagraphEnumeration
323*cdf0e10cSrcweir     : public SwSimpleEnumeration_Base
324*cdf0e10cSrcweir {
325*cdf0e10cSrcweir 
326*cdf0e10cSrcweir private:
327*cdf0e10cSrcweir 
328*cdf0e10cSrcweir     class Impl;
329*cdf0e10cSrcweir     ::sw::UnoImplPtr<Impl> m_pImpl;
330*cdf0e10cSrcweir 
331*cdf0e10cSrcweir     virtual ~SwXParagraphEnumeration();
332*cdf0e10cSrcweir 
333*cdf0e10cSrcweir public:
334*cdf0e10cSrcweir 
335*cdf0e10cSrcweir     /// takes ownership of cursor
336*cdf0e10cSrcweir     SwXParagraphEnumeration(
337*cdf0e10cSrcweir             ::com::sun::star::uno::Reference< ::com::sun::star::text::XText >
338*cdf0e10cSrcweir                 const & xParent,
339*cdf0e10cSrcweir             ::std::auto_ptr<SwUnoCrsr> pCursor,
340*cdf0e10cSrcweir             const CursorType eType,
341*cdf0e10cSrcweir             SwStartNode const*const pStartNode = 0,
342*cdf0e10cSrcweir             SwTable const*const pTable = 0);
343*cdf0e10cSrcweir 
344*cdf0e10cSrcweir     // XServiceInfo
345*cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL getImplementationName()
346*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
347*cdf0e10cSrcweir     virtual sal_Bool SAL_CALL supportsService(
348*cdf0e10cSrcweir             const ::rtl::OUString& rServiceName)
349*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
350*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL
351*cdf0e10cSrcweir         getSupportedServiceNames()
352*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
353*cdf0e10cSrcweir 
354*cdf0e10cSrcweir     // XEnumeration
355*cdf0e10cSrcweir     virtual sal_Bool SAL_CALL hasMoreElements()
356*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
357*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Any SAL_CALL nextElement()
358*cdf0e10cSrcweir         throw (::com::sun::star::container::NoSuchElementException,
359*cdf0e10cSrcweir                 ::com::sun::star::lang::WrappedTargetException,
360*cdf0e10cSrcweir                 ::com::sun::star::uno::RuntimeException);
361*cdf0e10cSrcweir 
362*cdf0e10cSrcweir };
363*cdf0e10cSrcweir 
364*cdf0e10cSrcweir #endif // SW_UNOPARAGRAPH_HXX
365*cdf0e10cSrcweir 
366