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