Update ooo320-m1
[ooovba.git] / binfilter / inc / bf_sw / unocoll.hxx
blobcc1cb6d71f978b3abd6bc7dd880412130c566117
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: unocoll.hxx,v $
10 * $Revision: 1.7 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _UNOCOLL_HXX
31 #define _UNOCOLL_HXX
33 #ifndef _SOLAR_H
34 #include <tools/solar.h>
35 #endif
36 #ifndef _FLYENUM_HXX //autogen
37 #include <flyenum.hxx>
38 #endif
39 #ifndef _COM_SUN_STAR_LANG_XSERVICEINFO_HPP_
40 #include <com/sun/star/lang/XServiceInfo.hpp>
41 #endif
42 #ifndef _COM_SUN_STAR_CONTAINER_XNAMEACCESS_HPP_
43 #include <com/sun/star/container/XNameAccess.hpp>
44 #endif
45 #ifndef _COM_SUN_STAR_CONTAINER_XINDEXACCESS_HPP_
46 #include <com/sun/star/container/XIndexAccess.hpp>
47 #endif
49 #ifndef _CPPUHELPER_IMPLBASE2_HXX_
50 #include <cppuhelper/implbase2.hxx> // helper for implementations
51 #endif
52 #ifndef _CPPUHELPER_IMPLBASE3_HXX_
53 #include <cppuhelper/implbase3.hxx> // helper for implementations
54 #endif
55 namespace com{namespace sun {namespace star {namespace text
57 class XTextTable;
58 class XTextSection;
59 class XFootnote;
60 }}}}
61 namespace binfilter {
62 /***************************************************
63 ***************************************************
65 ***************************************************/
66 class SwDoc;
67 class SwFrmFmt;
68 //STRIP008 namespace com{namespace sun {namespace star {namespace text
69 //STRIP008 {
70 //STRIP008 class XTextTable;
71 //STRIP008 class XTextSection;
72 //STRIP008 class XFootnote;
73 //STRIP008 }}}}
74 class SwXFrame;
75 class SwFrmFmt;
76 class SwFmtFtn;
77 class XBookmark;
78 class SwXReferenceMark;
79 class SwSectionFmt;
80 class SwBookmark;
81 class SwFmtRefMark;
82 class SwXReferenceMark;
83 class SwXBookmark;
84 /*-----------------11.03.98 11:19-------------------
86 --------------------------------------------------*/
87 class SwUnoCollection
89 sal_Bool bObjectValid;
90 SwDoc* pDoc;
92 public:
93 SwUnoCollection(SwDoc* p) :
94 pDoc(p),
95 bObjectValid(sal_True){}
97 virtual void Invalidate();
98 sal_Bool IsValid() const {return bObjectValid;}
101 SwDoc* GetDoc() const {return pDoc;}
104 /******************************************************************************
106 ******************************************************************************/
107 #define SW_SERVICE_TYPE_TEXTTABLE 0 //
108 #define SW_SERVICE_TYPE_TEXTFRAME 1 //
109 #define SW_SERVICE_TYPE_GRAPHIC 2
110 #define SW_SERVICE_TYPE_OLE 3
111 #define SW_SERVICE_TYPE_BOOKMARK 4
112 #define SW_SERVICE_TYPE_FOOTNOTE 5
113 #define SW_SERVICE_TYPE_ENDNOTE 6
114 #define SW_SERVICE_TYPE_INDEXMARK 7 // Stichwortverzeichniseintrag
115 #define SW_SERVICE_TYPE_INDEX 8 // Stichwortverzeichnis
116 #define SW_SERVICE_REFERENCE_MARK 9
117 #define SW_SERVICE_STYLE_CHARACTER_STYLE 10
118 #define SW_SERVICE_STYLE_PARAGRAPH_STYLE 11
119 #define SW_SERVICE_STYLE_FRAME_STYLE 12
120 #define SW_SERVICE_STYLE_PAGE_STYLE 13
121 #define SW_SERVICE_STYLE_NUMBERING_STYLE 14
122 #define SW_SERVICE_CONTENT_INDEX_MARK 15
123 #define SW_SERVICE_CONTENT_INDEX 16
124 #define SW_SERVICE_USER_INDEX_MARK 17
125 #define SW_SERVICE_USER_INDEX 18
126 #define SW_SERVICE_TEXT_SECTION 19
127 #define SW_SERVICE_FIELDTYPE_DATETIME 20
128 #define SW_SERVICE_FIELDTYPE_USER 21
129 #define SW_SERVICE_FIELDTYPE_SET_EXP 22
130 #define SW_SERVICE_FIELDTYPE_GET_EXP 23
131 #define SW_SERVICE_FIELDTYPE_FILE_NAME 24
132 #define SW_SERVICE_FIELDTYPE_PAGE_NUM 25
133 #define SW_SERVICE_FIELDTYPE_AUTHOR 26
134 #define SW_SERVICE_FIELDTYPE_CHAPTER 27
135 #define SW_SERVICE_FIELDTYPE_DUMMY_0 28
136 #define SW_SERVICE_FIELDTYPE_GET_REFERENCE 29
137 #define SW_SERVICE_FIELDTYPE_CONDITIONED_TEXT 30
138 #define SW_SERVICE_FIELDTYPE_ANNOTATION 31
139 #define SW_SERVICE_FIELDTYPE_INPUT 32
140 #define SW_SERVICE_FIELDTYPE_MACRO 33
141 #define SW_SERVICE_FIELDTYPE_DDE 34
142 #define SW_SERVICE_FIELDTYPE_HIDDEN_PARA 35
143 #define SW_SERVICE_FIELDTYPE_DOC_INFO 36
144 #define SW_SERVICE_FIELDTYPE_TEMPLATE_NAME 37
145 #define SW_SERVICE_FIELDTYPE_USER_EXT 38
146 #define SW_SERVICE_FIELDTYPE_REF_PAGE_SET 39
147 #define SW_SERVICE_FIELDTYPE_REF_PAGE_GET 40
148 #define SW_SERVICE_FIELDTYPE_JUMP_EDIT 41
149 #define SW_SERVICE_FIELDTYPE_SCRIPT 42
150 #define SW_SERVICE_FIELDTYPE_DATABASE_NEXT_SET 43
151 #define SW_SERVICE_FIELDTYPE_DATABASE_NUM_SET 44
152 #define SW_SERVICE_FIELDTYPE_DATABASE_SET_NUM 45
153 #define SW_SERVICE_FIELDTYPE_DATABASE 46
154 #define SW_SERVICE_FIELDTYPE_DATABASE_NAME 47
155 #define SW_SERVICE_FIELDTYPE_TABLE_FORMULA 48
156 #define SW_SERVICE_FIELDTYPE_PAGE_COUNT 49
157 #define SW_SERVICE_FIELDTYPE_PARAGRAPH_COUNT 50
158 #define SW_SERVICE_FIELDTYPE_WORD_COUNT 51
159 #define SW_SERVICE_FIELDTYPE_CHARACTER_COUNT 52
160 #define SW_SERVICE_FIELDTYPE_TABLE_COUNT 53
161 #define SW_SERVICE_FIELDTYPE_GRAPHIC_OBJECT_COUNT 54
162 #define SW_SERVICE_FIELDTYPE_EMBEDDED_OBJECT_COUNT 55
163 #define SW_SERVICE_FIELDTYPE_DOCINFO_CHANGE_AUTHOR 56
164 #define SW_SERVICE_FIELDTYPE_DOCINFO_CHANGE_DATE_TIME 57
165 #define SW_SERVICE_FIELDTYPE_DOCINFO_EDIT_TIME 58
166 #define SW_SERVICE_FIELDTYPE_DOCINFO_DESCRIPTION 59
167 #define SW_SERVICE_FIELDTYPE_DOCINFO_CREATE_AUTHOR 60
168 #define SW_SERVICE_FIELDTYPE_DOCINFO_CREATE_DATE_TIME 61
169 #define SW_SERVICE_FIELDTYPE_DOCINFO_INFO_0 62
170 #define SW_SERVICE_FIELDTYPE_DOCINFO_INFO_1 63
171 #define SW_SERVICE_FIELDTYPE_DOCINFO_INFO_2 64
172 #define SW_SERVICE_FIELDTYPE_DOCINFO_INFO_3 65
173 #define SW_SERVICE_FIELDTYPE_DOCINFO_PRINT_AUTHOR 66
174 #define SW_SERVICE_FIELDTYPE_DOCINFO_PRINT_DATE_TIME 67
175 #define SW_SERVICE_FIELDTYPE_DOCINFO_KEY_WORDS 68
176 #define SW_SERVICE_FIELDTYPE_DOCINFO_SUBJECT 69
177 #define SW_SERVICE_FIELDTYPE_DOCINFO_TITLE 70
178 #define SW_SERVICE_FIELDTYPE_DOCINFO_REVISION 71
179 #define SW_SERVICE_FIELDTYPE_BIBLIOGRAPHY 72
180 #define SW_SERVICE_FIELDTYPE_COMBINED_CHARACTERS 73
181 #define SW_SERVICE_FIELDTYPE_DROPDOWN 74
182 #define SW_SERVICE_FIELDTYPE_DUMMY_4 75
183 #define SW_SERVICE_FIELDTYPE_DUMMY_5 76
184 #define SW_SERVICE_FIELDTYPE_DUMMY_6 77
185 #define SW_SERVICE_FIELDTYPE_DUMMY_7 78
186 #define SW_SERVICE_FIELDTYPE_DUMMY_8 79
187 #define SW_SERVICE_FIELDMASTER_USER 80
188 #define SW_SERVICE_FIELDMASTER_DDE 81
189 #define SW_SERVICE_FIELDMASTER_SET_EXP 82
190 #define SW_SERVICE_FIELDMASTER_DATABASE 83
191 #define SW_SERVICE_FIELDMASTER_BIBLIOGRAPHY 84
192 #define SW_SERVICE_FIELDMASTER_DUMMY2 85
193 #define SW_SERVICE_FIELDMASTER_DUMMY3 86
194 #define SW_SERVICE_FIELDMASTER_DUMMY4 87
195 #define SW_SERVICE_FIELDMASTER_DUMMY5 88
196 #define SW_SERVICE_INDEX_ILLUSTRATIONS 89
197 #define SW_SERVICE_INDEX_OBJECTS 90
198 #define SW_SERVICE_INDEX_TABLES 91
199 #define SW_SERVICE_INDEX_BIBLIOGRAPHY 92
200 #define SW_SERVICE_PARAGRAPH 93
201 #define SW_SERVICE_FIELDTYPE_INPUT_USER 94
202 #define SW_SERVICE_FIELDTYPE_HIDDEN_TEXT 95
203 #define SW_SERVICE_STYLE_CONDITIONAL_PARAGRAPH_STYLE 96
204 #define SW_SERVICE_NUMBERING_RULES 97
205 #define SW_SERVICE_TEXT_COLUMNS 98
206 #define SW_SERVICE_INDEX_HEADER_SECTION 99
207 #define SW_SERVICE_DEFAULTS 100
208 #define SW_SERVICE_IMAP_RECTANGLE 101
209 #define SW_SERVICE_IMAP_CIRCLE 102
210 #define SW_SERVICE_IMAP_POLYGON 103
212 #define SW_SERVICE_LAST SW_SERVICE_IMAP_POLYGON
215 #define SW_SERVICE_INVALID USHRT_MAX
217 class SwXServiceProvider
219 public:
220 static ::rtl::OUString GetProviderName(sal_uInt16 nObjectType);
221 static sal_uInt16 GetProviderType(const ::rtl::OUString& rServiceName);
222 static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > MakeInstance(sal_uInt16 nObjectType, SwDoc* pDoc);
223 static ::com::sun::star::uno::Sequence<rtl::OUString> GetAllServiceNames();
226 /*-----------------11.12.97 09:38-------------------
228 --------------------------------------------------*/
229 typedef
230 cppu::WeakImplHelper3
232 ::com::sun::star::container::XNameAccess,
233 ::com::sun::star::container::XIndexAccess,
234 ::com::sun::star::lang::XServiceInfo
236 SwCollectionBaseClass;
237 class SwXTextTables : public SwCollectionBaseClass,
238 public SwUnoCollection
240 protected:
241 virtual ~SwXTextTables();
242 public:
243 SwXTextTables(SwDoc* pDoc);
246 //XIndexAccess
247 virtual sal_Int32 SAL_CALL getCount( ) throw(::com::sun::star::uno::RuntimeException);
248 virtual ::com::sun::star::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) throw( ::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException );
250 //XNameAccess
251 virtual ::com::sun::star::uno::Any SAL_CALL getByName(const ::rtl::OUString& Name) throw( ::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException );
252 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames(void) throw( ::com::sun::star::uno::RuntimeException );
253 virtual sal_Bool SAL_CALL hasByName(const ::rtl::OUString& Name) throw( ::com::sun::star::uno::RuntimeException );
255 //XElementAccess
256 virtual ::com::sun::star::uno::Type SAL_CALL getElementType( ) throw(::com::sun::star::uno::RuntimeException);
257 virtual sal_Bool SAL_CALL hasElements( ) throw(::com::sun::star::uno::RuntimeException);
259 //XServiceInfo
260 virtual ::rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException );
261 virtual BOOL SAL_CALL supportsService(const ::rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException );
262 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException );
264 static ::com::sun::star::text::XTextTable* GetObject( SwFrmFmt& rFmt );
267 /*-----------------11.12.97 10:14-------------------
269 --------------------------------------------------*/
270 class SwXFrames : public SwCollectionBaseClass,
271 public SwUnoCollection
273 const FlyCntType eType;
274 protected:
275 virtual ~SwXFrames();
276 public:
277 SwXFrames(SwDoc* pDoc, FlyCntType eSet);
280 //XIndexAccess
281 virtual sal_Int32 SAL_CALL getCount(void) throw( ::com::sun::star::uno::RuntimeException );
282 virtual ::com::sun::star::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) throw( ::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException );
284 //XNameAccess
285 virtual ::com::sun::star::uno::Any SAL_CALL getByName(const ::rtl::OUString& Name) throw( ::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException );
286 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames(void) throw( ::com::sun::star::uno::RuntimeException );
287 virtual sal_Bool SAL_CALL hasByName(const ::rtl::OUString& Name) throw( ::com::sun::star::uno::RuntimeException );
289 //XElementAccess
290 virtual ::com::sun::star::uno::Type SAL_CALL getElementType( ) throw(::com::sun::star::uno::RuntimeException);
291 virtual sal_Bool SAL_CALL hasElements( ) throw(::com::sun::star::uno::RuntimeException);
293 //XServiceInfo
294 virtual ::rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException );
295 virtual BOOL SAL_CALL supportsService(const ::rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException );
296 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException );
298 FlyCntType GetType()const{return eType;}
299 static SwXFrame* GetObject( SwFrmFmt& rFmt, FlyCntType eType );
303 /*-----------------20.02.98 10:51-------------------
305 --------------------------------------------------*/
306 class SwXTextFrames : public SwXFrames
308 protected:
309 virtual ~SwXTextFrames();
310 public:
311 SwXTextFrames(SwDoc* pDoc);
314 // SMART_UNO_DECLARATION( SwXTextFrames, UsrObject );
316 //XServiceInfo
317 virtual ::rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException );
318 virtual BOOL SAL_CALL supportsService(const ::rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException );
319 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException );
323 /*-----------------20.02.98 10:55-------------------
325 --------------------------------------------------*/
326 class SwXTextGraphicObjects : public SwXFrames
328 protected:
329 virtual ~SwXTextGraphicObjects();
330 public:
331 SwXTextGraphicObjects(SwDoc* pDoc);
334 // SMART_UNO_DECLARATION( SwXTextGraphicObjects, UsrObject );
336 //XServiceInfo
337 virtual ::rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException );
338 virtual BOOL SAL_CALL supportsService(const ::rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException );
339 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException );
343 /*-----------------20.02.98 10:57-------------------
345 --------------------------------------------------*/
346 class SwXTextEmbeddedObjects : public SwXFrames
348 protected:
349 virtual ~SwXTextEmbeddedObjects();
350 public:
351 SwXTextEmbeddedObjects(SwDoc* pDoc);
354 // SMART_UNO_DECLARATION( SwXTextEmbeddedObjects, UsrObject );
356 //XServiceInfo
357 virtual ::rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException );
358 virtual BOOL SAL_CALL supportsService(const ::rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException );
359 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException );
363 /*-----------------12.02.98 07:58-------------------
365 --------------------------------------------------*/
366 class SwXTextSections : public SwCollectionBaseClass,
367 public SwUnoCollection
369 protected:
370 virtual ~SwXTextSections();
371 public:
372 SwXTextSections(SwDoc* pDoc);
375 //XIndexAccess
376 virtual sal_Int32 SAL_CALL getCount(void) throw( ::com::sun::star::uno::RuntimeException );
377 virtual ::com::sun::star::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) throw( ::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException );
379 //XNameAccess
380 virtual ::com::sun::star::uno::Any SAL_CALL getByName(const ::rtl::OUString& Name) throw( ::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException );
381 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames(void) throw( ::com::sun::star::uno::RuntimeException );
382 virtual sal_Bool SAL_CALL hasByName(const ::rtl::OUString& Name) throw( ::com::sun::star::uno::RuntimeException );
384 //XElementAccess
385 virtual ::com::sun::star::uno::Type SAL_CALL getElementType( ) throw(::com::sun::star::uno::RuntimeException);
386 virtual sal_Bool SAL_CALL hasElements( ) throw(::com::sun::star::uno::RuntimeException);
388 //XServiceInfo
389 virtual ::rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException );
390 virtual BOOL SAL_CALL supportsService(const ::rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException );
391 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException );
393 static ::com::sun::star::text::XTextSection* GetObject( SwSectionFmt& rFmt );
395 /*-----------------12.02.98 07:51-------------------
397 --------------------------------------------------*/
398 class SwXBookmarks : public SwCollectionBaseClass,
399 public SwUnoCollection
401 protected:
402 virtual ~SwXBookmarks();
403 public:
404 SwXBookmarks(SwDoc* pDoc);
407 //XIndexAccess
408 virtual sal_Int32 SAL_CALL getCount(void) throw( ::com::sun::star::uno::RuntimeException );
409 virtual ::com::sun::star::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) throw( ::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException );
411 //XNameAccess
412 virtual ::com::sun::star::uno::Any SAL_CALL getByName(const ::rtl::OUString& Name) throw( ::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException );
413 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames(void) throw( ::com::sun::star::uno::RuntimeException );
414 virtual sal_Bool SAL_CALL hasByName(const ::rtl::OUString& Name) throw( ::com::sun::star::uno::RuntimeException );
416 //XElementAccess
417 virtual ::com::sun::star::uno::Type SAL_CALL getElementType( ) throw(::com::sun::star::uno::RuntimeException);
418 virtual sal_Bool SAL_CALL hasElements( ) throw(::com::sun::star::uno::RuntimeException);
420 //XServiceInfo
421 virtual ::rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException );
422 virtual BOOL SAL_CALL supportsService(const ::rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException );
423 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException );
425 static SwXBookmark* GetObject( SwBookmark& rBkm, SwDoc* pDoc );
428 /*-----------------12.02.98 08:01-------------------
430 --------------------------------------------------*/
431 typedef
432 cppu::WeakImplHelper2
434 ::com::sun::star::container::XIndexAccess,
435 ::com::sun::star::lang::XServiceInfo
437 SwSimpleIndexAccessBaseClass;
438 class SwXFootnotes : public SwSimpleIndexAccessBaseClass,
439 public SwUnoCollection
441 sal_Bool bEndnote;
442 protected:
443 virtual ~SwXFootnotes();
444 public:
445 SwXFootnotes(sal_Bool bEnd, SwDoc* pDoc);
448 //XIndexAccess
449 virtual sal_Int32 SAL_CALL SAL_CALL getCount(void) throw( ::com::sun::star::uno::RuntimeException );
450 virtual ::com::sun::star::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) throw( ::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException );
452 //XElementAccess
453 virtual ::com::sun::star::uno::Type SAL_CALL getElementType( ) throw(::com::sun::star::uno::RuntimeException);
454 virtual sal_Bool SAL_CALL hasElements( ) throw(::com::sun::star::uno::RuntimeException);
456 //XServiceInfo
457 virtual ::rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException );
458 virtual BOOL SAL_CALL supportsService(const ::rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException );
459 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException );
461 static ::com::sun::star::uno::Reference< ::com::sun::star::text::XFootnote> GetObject( SwDoc& rDoc, const SwFmtFtn& rFmt );
464 /* -----------------27.08.98 13:10-------------------
466 * --------------------------------------------------*/
467 class SwXReferenceMarks : public SwCollectionBaseClass,
468 public SwUnoCollection
470 protected:
471 virtual ~SwXReferenceMarks();
472 public:
473 SwXReferenceMarks(SwDoc* pDoc);
476 //XIndexAccess
477 virtual sal_Int32 SAL_CALL getCount(void) throw( ::com::sun::star::uno::RuntimeException );
478 virtual ::com::sun::star::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) throw( ::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException );
480 //XNameAccess
481 virtual ::com::sun::star::uno::Any SAL_CALL getByName(const ::rtl::OUString& Name) throw( ::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException );
482 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames(void) throw( ::com::sun::star::uno::RuntimeException );
483 virtual sal_Bool SAL_CALL hasByName(const ::rtl::OUString& Name) throw( ::com::sun::star::uno::RuntimeException );
485 //XElementAccess
486 virtual ::com::sun::star::uno::Type SAL_CALL getElementType( ) throw(::com::sun::star::uno::RuntimeException);
487 virtual sal_Bool SAL_CALL hasElements( ) throw(::com::sun::star::uno::RuntimeException);
489 //XServiceInfo
490 virtual ::rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException );
491 virtual BOOL SAL_CALL supportsService(const ::rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException );
492 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException );
494 static SwXReferenceMark* GetObject( SwDoc* pDoc, const SwFmtRefMark* pMark );
497 } //namespace binfilter
498 #endif