xref: /aoo41x/main/sw/inc/unocoll.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 #ifndef _UNOCOLL_HXX
24cdf0e10cSrcweir #define _UNOCOLL_HXX
25cdf0e10cSrcweir #include <tools/solar.h>
26cdf0e10cSrcweir #include <flyenum.hxx>
27cdf0e10cSrcweir #include <vcl/timer.hxx>
28cdf0e10cSrcweir #include <com/sun/star/lang/XServiceInfo.hpp>
29cdf0e10cSrcweir #include <com/sun/star/container/XEnumerationAccess.hpp>
30cdf0e10cSrcweir #include <com/sun/star/container/XNameAccess.hpp>
31cdf0e10cSrcweir #include <com/sun/star/container/XIndexAccess.hpp>
32cdf0e10cSrcweir #include <tools/string.hxx>
33cdf0e10cSrcweir #include <cppuhelper/implbase1.hxx> // helper for implementations
34cdf0e10cSrcweir #include <cppuhelper/implbase2.hxx>	// helper for implementations
35cdf0e10cSrcweir #include <cppuhelper/implbase3.hxx>	// helper for implementations
36cdf0e10cSrcweir #include <cppuhelper/implbase4.hxx>	// helper for implementations
37cdf0e10cSrcweir #include <IMark.hxx>
38cdf0e10cSrcweir #include <unobaseclass.hxx>
39cdf0e10cSrcweir #include "swdllapi.h"
40cdf0e10cSrcweir /***************************************************
41cdf0e10cSrcweir  ***************************************************
42cdf0e10cSrcweir  *
43cdf0e10cSrcweir  ***************************************************/
44cdf0e10cSrcweir class SwDoc;
45cdf0e10cSrcweir class SwFrmFmt;
46cdf0e10cSrcweir namespace com{namespace sun {namespace star {namespace text
47cdf0e10cSrcweir {
48cdf0e10cSrcweir 	class XTextTable;
49cdf0e10cSrcweir 	class XTextSection;
50cdf0e10cSrcweir 	class XFootnote;
51cdf0e10cSrcweir }}}}
52cdf0e10cSrcweir class SwXFrame;
53cdf0e10cSrcweir class SwFrmFmt;
54cdf0e10cSrcweir class SwFmtFtn;
55cdf0e10cSrcweir class XBookmark;
56cdf0e10cSrcweir class SwXReferenceMark;
57cdf0e10cSrcweir class SwSectionFmt;
58cdf0e10cSrcweir class SwFmtRefMark;
59cdf0e10cSrcweir class SwXReferenceMark;
60cdf0e10cSrcweir class SwXBookmark;
61cdf0e10cSrcweir /*-----------------11.03.98 11:19-------------------
62cdf0e10cSrcweir 
63cdf0e10cSrcweir --------------------------------------------------*/
64cdf0e10cSrcweir class SwUnoCollection
65cdf0e10cSrcweir {
66cdf0e10cSrcweir 	SwDoc* 		pDoc;
67cdf0e10cSrcweir 	sal_Bool	bObjectValid;
68cdf0e10cSrcweir 
69cdf0e10cSrcweir 	public:
SwUnoCollection(SwDoc * p)70cdf0e10cSrcweir 		SwUnoCollection(SwDoc* p) :
71cdf0e10cSrcweir 			pDoc(p),
72cdf0e10cSrcweir 			bObjectValid(sal_True){}
73cdf0e10cSrcweir 
74cdf0e10cSrcweir 	virtual void				Invalidate();
IsValid() const75cdf0e10cSrcweir 	sal_Bool 						IsValid() const {return bObjectValid;}
76cdf0e10cSrcweir 
77cdf0e10cSrcweir 
GetDoc() const78cdf0e10cSrcweir 	SwDoc* 			GetDoc() const {return pDoc;}
79cdf0e10cSrcweir };
80cdf0e10cSrcweir 
81cdf0e10cSrcweir /******************************************************************************
82cdf0e10cSrcweir  *
83cdf0e10cSrcweir  ******************************************************************************/
84cdf0e10cSrcweir #define SW_SERVICE_TYPE_TEXTTABLE						0
85cdf0e10cSrcweir #define SW_SERVICE_TYPE_TEXTFRAME						1
86cdf0e10cSrcweir #define SW_SERVICE_TYPE_GRAPHIC							2
87cdf0e10cSrcweir #define SW_SERVICE_TYPE_OLE								3
88cdf0e10cSrcweir #define SW_SERVICE_TYPE_BOOKMARK    					4
89cdf0e10cSrcweir #define SW_SERVICE_TYPE_FOOTNOTE    					5
90cdf0e10cSrcweir #define SW_SERVICE_TYPE_ENDNOTE     					6
91cdf0e10cSrcweir #define SW_SERVICE_TYPE_INDEXMARK   					7
92cdf0e10cSrcweir #define SW_SERVICE_TYPE_INDEX       					8
93cdf0e10cSrcweir #define SW_SERVICE_REFERENCE_MARK   					9
94cdf0e10cSrcweir #define SW_SERVICE_STYLE_CHARACTER_STYLE 				10
95cdf0e10cSrcweir #define SW_SERVICE_STYLE_PARAGRAPH_STYLE   				11
96cdf0e10cSrcweir #define SW_SERVICE_STYLE_FRAME_STYLE   					12
97cdf0e10cSrcweir #define SW_SERVICE_STYLE_PAGE_STYLE   					13
98cdf0e10cSrcweir #define SW_SERVICE_STYLE_NUMBERING_STYLE   				14
99cdf0e10cSrcweir #define SW_SERVICE_CONTENT_INDEX_MARK   				15
100cdf0e10cSrcweir #define SW_SERVICE_CONTENT_INDEX						16
101cdf0e10cSrcweir #define SW_SERVICE_USER_INDEX_MARK  					17
102cdf0e10cSrcweir #define SW_SERVICE_USER_INDEX							18
103cdf0e10cSrcweir #define SW_SERVICE_TEXT_SECTION   						19
104cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_DATETIME   				20
105cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_USER			        	21
106cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_SET_EXP    	        	22
107cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_GET_EXP		        	23
108cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_FILE_NAME            		24
109cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_PAGE_NUM    	        	25
110cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_AUTHOR      	        	26
111cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_CHAPTER    	        	27
112cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_DUMMY_0					28
113cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_GET_REFERENCE        		29
114cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_CONDITIONED_TEXT     		30
115cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_ANNOTATION           		31
116cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_INPUT       	        	32
117cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_MACRO       	        	33
118cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_DDE        	        	34
119cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_HIDDEN_PARA          		35
120cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_DOC_INFO             		36
121cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_TEMPLATE_NAME        		37
122cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_USER_EXT             		38
123cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_REF_PAGE_SET         		39
124cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_REF_PAGE_GET         		40
125cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_JUMP_EDIT            		41
126cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_SCRIPT      	        	42
127cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_DATABASE_NEXT_SET    		43
128cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_DATABASE_NUM_SET     		44
129cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_DATABASE_SET_NUM     		45
130cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_DATABASE		        	46
131cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_DATABASE_NAME        		47
132cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_TABLE_FORMULA              48
133cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_PAGE_COUNT                 49
134cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_PARAGRAPH_COUNT            50
135cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_WORD_COUNT                 51
136cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_CHARACTER_COUNT            52
137cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_TABLE_COUNT                53
138cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_GRAPHIC_OBJECT_COUNT       54
139cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_EMBEDDED_OBJECT_COUNT      55
140cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_DOCINFO_CHANGE_AUTHOR      56
141cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_DOCINFO_CHANGE_DATE_TIME   57
142cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_DOCINFO_EDIT_TIME          58
143cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_DOCINFO_DESCRIPTION        59
144cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_DOCINFO_CREATE_AUTHOR      60
145cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_DOCINFO_CREATE_DATE_TIME   61
146cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_DUMMY_O                    62
147cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_DUMMY_1                    63
148cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_DUMMY_2                    64
149cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_DUMMY_3                    65
150cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_DOCINFO_CUSTOM             66
151cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_DOCINFO_PRINT_AUTHOR       67
152cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_DOCINFO_PRINT_DATE_TIME    68
153cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_DOCINFO_KEY_WORDS          69
154cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_DOCINFO_SUBJECT            70
155cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_DOCINFO_TITLE              71
156cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_DOCINFO_REVISION           72
157cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_BIBLIOGRAPHY               73
158cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_COMBINED_CHARACTERS        74
159cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_DROPDOWN                   75
160cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_METAFIELD                  76
161cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_DUMMY_4                    77
162cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_DUMMY_5                    78
163cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_DUMMY_6                    79
164cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_DUMMY_7                    80
165cdf0e10cSrcweir #define SW_SERVICE_FIELDMASTER_USER						81
166cdf0e10cSrcweir #define SW_SERVICE_FIELDMASTER_DDE                      82
167cdf0e10cSrcweir #define SW_SERVICE_FIELDMASTER_SET_EXP                  83
168cdf0e10cSrcweir #define SW_SERVICE_FIELDMASTER_DATABASE                 84
169cdf0e10cSrcweir #define SW_SERVICE_FIELDMASTER_BIBLIOGRAPHY             85
170cdf0e10cSrcweir #define SW_SERVICE_FIELDMASTER_DUMMY2                   86
171cdf0e10cSrcweir #define SW_SERVICE_FIELDMASTER_DUMMY3                   87
172cdf0e10cSrcweir #define SW_SERVICE_FIELDMASTER_DUMMY4                   88
173cdf0e10cSrcweir #define SW_SERVICE_FIELDMASTER_DUMMY5                   89
174cdf0e10cSrcweir #define SW_SERVICE_INDEX_ILLUSTRATIONS					90
175cdf0e10cSrcweir #define SW_SERVICE_INDEX_OBJECTS                        91
176cdf0e10cSrcweir #define SW_SERVICE_INDEX_TABLES                         92
177cdf0e10cSrcweir #define SW_SERVICE_INDEX_BIBLIOGRAPHY                   93
178cdf0e10cSrcweir #define SW_SERVICE_PARAGRAPH                   			94
179cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_INPUT_USER    	        	95
180cdf0e10cSrcweir #define SW_SERVICE_FIELDTYPE_HIDDEN_TEXT          		96
181cdf0e10cSrcweir #define SW_SERVICE_STYLE_CONDITIONAL_PARAGRAPH_STYLE   	97
182cdf0e10cSrcweir #define SW_SERVICE_NUMBERING_RULES  					98
183cdf0e10cSrcweir #define SW_SERVICE_TEXT_COLUMNS  						99
184cdf0e10cSrcweir #define SW_SERVICE_INDEX_HEADER_SECTION					100
185cdf0e10cSrcweir #define SW_SERVICE_DEFAULTS					            101
186cdf0e10cSrcweir #define SW_SERVICE_IMAP_RECTANGLE                       102
187cdf0e10cSrcweir #define SW_SERVICE_IMAP_CIRCLE                          103
188cdf0e10cSrcweir #define SW_SERVICE_IMAP_POLYGON                         104
189cdf0e10cSrcweir #define SW_SERVICE_TYPE_TEXT_GRAPHIC                    105
190cdf0e10cSrcweir #define SW_SERVICE_CHART2_DATA_PROVIDER                 106
191cdf0e10cSrcweir #define SW_SERVICE_TYPE_FIELDMARK                       107
192cdf0e10cSrcweir #define SW_SERVICE_TYPE_FORMFIELDMARK                   108
193cdf0e10cSrcweir #define SW_SERVICE_TYPE_META                            109
194cdf0e10cSrcweir 
195cdf0e10cSrcweir #define SW_SERVICE_LAST                 SW_SERVICE_TYPE_META
196cdf0e10cSrcweir 
197cdf0e10cSrcweir #define SW_SERVICE_INVALID			USHRT_MAX
198cdf0e10cSrcweir 
199cdf0e10cSrcweir //
200cdf0e10cSrcweir // case-corrected versions of service-names (see #i67811)
201cdf0e10cSrcweir //
202cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_DATE_TIME                    "com.sun.star.text.textfield.DateTime"
203cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_USER                         "com.sun.star.text.textfield.User"
204cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_SET_EXPRESSION               "com.sun.star.text.textfield.SetExpression"
205cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_GET_EXPRESSION               "com.sun.star.text.textfield.GetExpression"
206cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_FILE_NAME                    "com.sun.star.text.textfield.FileName"
207cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_PAGE_NUMBER                  "com.sun.star.text.textfield.PageNumber"
208cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_AUTHOR                       "com.sun.star.text.textfield.Author"
209cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_CHAPTER                      "com.sun.star.text.textfield.Chapter"
210cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_GET_REFERENCE                "com.sun.star.text.textfield.GetReference"
211cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_CONDITIONAL_TEXT             "com.sun.star.text.textfield.ConditionalText"
212cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_ANNOTATION                   "com.sun.star.text.textfield.Annotation"
213cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_INPUT                        "com.sun.star.text.textfield.Input"
214cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_MACRO                        "com.sun.star.text.textfield.Macro"
215cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_DDE                          "com.sun.star.text.textfield.DDE"
216cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_HIDDEN_PARAGRAPH             "com.sun.star.text.textfield.HiddenParagraph"
217cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_TEMPLATE_NAME                "com.sun.star.text.textfield.TemplateName"
218cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_EXTENDED_USER                "com.sun.star.text.textfield.ExtendedUser"
219cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_REFERENCE_PAGE_SET           "com.sun.star.text.textfield.ReferencePageSet"
220cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_REFERENCE_PAGE_GET           "com.sun.star.text.textfield.ReferencePageGet"
221cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_JUMP_EDIT                    "com.sun.star.text.textfield.JumpEdit"
222cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_SCRIPT                       "com.sun.star.text.textfield.Script"
223cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_DATABASE_NEXT_SET            "com.sun.star.text.textfield.DatabaseNextSet"
224cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_DATABASE_NUMBER_OF_SET       "com.sun.star.text.textfield.DatabaseNumberOfSet"
225cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_DATABASE_SET_NUMBER          "com.sun.star.text.textfield.DatabaseSetNumber"
226cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_DATABASE                     "com.sun.star.text.textfield.Database"
227cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_DATABASE_NAME                "com.sun.star.text.textfield.DatabaseName"
228cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_TABLE_FORMULA                "com.sun.star.text.textfield.TableFormula"
229cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_PAGE_COUNT                   "com.sun.star.text.textfield.PageCount"
230cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_PARAGRAPH_COUNT              "com.sun.star.text.textfield.ParagraphCount"
231cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_WORD_COUNT                   "com.sun.star.text.textfield.WordCount"
232cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_CHARACTER_COUNT              "com.sun.star.text.textfield.CharacterCount"
233cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_TABLE_COUNT                  "com.sun.star.text.textfield.TableCount"
234cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_GRAPHIC_OBJECT_COUNT         "com.sun.star.text.textfield.GraphicObjectCount"
235cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_EMBEDDED_OBJECT_COUNT        "com.sun.star.text.textfield.EmbeddedObjectCount"
236cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_DOCINFO_CHANGE_AUTHOR        "com.sun.star.text.textfield.docinfo.ChangeAuthor"
237cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_DOCINFO_CHANGE_DATE_TIME     "com.sun.star.text.textfield.docinfo.ChangeDateTime"
238cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_DOCINFO_EDIT_TIME            "com.sun.star.text.textfield.docinfo.EditTime"
239cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_DOCINFO_DESCRIPTION          "com.sun.star.text.textfield.docinfo.Description"
240cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_DOCINFO_CREATE_AUTHOR        "com.sun.star.text.textfield.docinfo.CreateAuthor"
241cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_DOCINFO_CREATE_DATE_TIME     "com.sun.star.text.textfield.docinfo.CreateDateTime"
242cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_DOCINFO_PRINT_AUTHOR         "com.sun.star.text.textfield.docinfo.PrintAuthor"
243cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_DOCINFO_PRINT_DATE_TIME      "com.sun.star.text.textfield.docinfo.PrintDateTime"
244cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_DOCINFO_KEY_WORDS            "com.sun.star.text.textfield.docinfo.KeyWords"
245cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_DOCINFO_SUBJECT              "com.sun.star.text.textfield.docinfo.Subject"
246cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_DOCINFO_TITLE                "com.sun.star.text.textfield.docinfo.Title"
247cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_DOCINFO_REVISION             "com.sun.star.text.textfield.docinfo.Revision"
248cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_DOCINFO_CUSTOM               "com.sun.star.text.textfield.docinfo.Custom"
249cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_BIBLIOGRAPHY                 "com.sun.star.text.textfield.Bibliography"
250cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_COMBINED_CHARACTERS          "com.sun.star.text.textfield.CombinedCharacters"
251cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_DROP_DOWN                    "com.sun.star.text.textfield.DropDown"
252cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_INPUT_USER                   "com.sun.star.text.textfield.InputUser"
253cdf0e10cSrcweir #define CSS_TEXT_TEXTFIELD_HIDDEN_TEXT                  "com.sun.star.text.textfield.HiddenText"
254cdf0e10cSrcweir #define CSS_TEXT_FIELDMASTER_USER                       "com.sun.star.text.fieldmaster.User"
255cdf0e10cSrcweir #define CSS_TEXT_FIELDMASTER_DDE                        "com.sun.star.text.fieldmaster.DDE"
256cdf0e10cSrcweir #define CSS_TEXT_FIELDMASTER_SET_EXPRESSION             "com.sun.star.text.fieldmaster.SetExpression"
257cdf0e10cSrcweir #define CSS_TEXT_FIELDMASTER_DATABASE                   "com.sun.star.text.fieldmaster.Database"
258cdf0e10cSrcweir #define CSS_TEXT_FIELDMASTER_BIBLIOGRAPHY               "com.sun.star.text.fieldmaster.Bibliography"
259cdf0e10cSrcweir 
260cdf0e10cSrcweir 
261cdf0e10cSrcweir class SwXServiceProvider
262cdf0e10cSrcweir {
263cdf0e10cSrcweir public:
264cdf0e10cSrcweir 	static rtl::OUString		GetProviderName(sal_uInt16 nObjectType);
265cdf0e10cSrcweir 	static sal_uInt16			GetProviderType(const rtl::OUString& rServiceName);
266cdf0e10cSrcweir 	static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >  		MakeInstance(sal_uInt16 nObjectType, SwDoc* pDoc);
267cdf0e10cSrcweir 	static ::com::sun::star::uno::Sequence<rtl::OUString> 	GetAllServiceNames();
268cdf0e10cSrcweir 
269cdf0e10cSrcweir };
270cdf0e10cSrcweir /*-----------------11.12.97 09:38-------------------
271cdf0e10cSrcweir 
272cdf0e10cSrcweir --------------------------------------------------*/
273cdf0e10cSrcweir typedef
274cdf0e10cSrcweir cppu::WeakImplHelper3
275cdf0e10cSrcweir <
276cdf0e10cSrcweir 	::com::sun::star::container::XNameAccess,
277cdf0e10cSrcweir 	::com::sun::star::container::XIndexAccess,
278cdf0e10cSrcweir 	::com::sun::star::lang::XServiceInfo
279cdf0e10cSrcweir >
280cdf0e10cSrcweir SwCollectionBaseClass;
281cdf0e10cSrcweir class SW_DLLPUBLIC SwXTextTables : public SwCollectionBaseClass,
282cdf0e10cSrcweir 	public SwUnoCollection
283cdf0e10cSrcweir {
284cdf0e10cSrcweir protected:
285cdf0e10cSrcweir 	virtual ~SwXTextTables();
286cdf0e10cSrcweir public:
287cdf0e10cSrcweir 	SwXTextTables(SwDoc* pDoc);
288cdf0e10cSrcweir 
289cdf0e10cSrcweir 
290cdf0e10cSrcweir 	//XIndexAccess
291cdf0e10cSrcweir     virtual sal_Int32 SAL_CALL getCount(  ) throw(::com::sun::star::uno::RuntimeException);
292cdf0e10cSrcweir 	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 );
293cdf0e10cSrcweir 
294cdf0e10cSrcweir 	//XNameAccess
295cdf0e10cSrcweir 	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 );
296cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getElementNames(void) throw( ::com::sun::star::uno::RuntimeException );
297cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL hasByName(const rtl::OUString& Name) throw( ::com::sun::star::uno::RuntimeException );
298cdf0e10cSrcweir 
299cdf0e10cSrcweir 	//XElementAccess
300cdf0e10cSrcweir     virtual ::com::sun::star::uno::Type SAL_CALL getElementType(  ) throw(::com::sun::star::uno::RuntimeException);
301cdf0e10cSrcweir     virtual sal_Bool SAL_CALL hasElements(  ) throw(::com::sun::star::uno::RuntimeException);
302cdf0e10cSrcweir 
303cdf0e10cSrcweir 	//XServiceInfo
304cdf0e10cSrcweir virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException );
305cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException );
306cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException );
307cdf0e10cSrcweir 
308cdf0e10cSrcweir 	static ::com::sun::star::text::XTextTable* 			GetObject( SwFrmFmt& rFmt );
309cdf0e10cSrcweir };
310cdf0e10cSrcweir 
311cdf0e10cSrcweir typedef
312cdf0e10cSrcweir cppu::WeakImplHelper4
313cdf0e10cSrcweir <
314cdf0e10cSrcweir 	::com::sun::star::container::XEnumerationAccess,
315cdf0e10cSrcweir 	::com::sun::star::container::XNameAccess,
316cdf0e10cSrcweir 	::com::sun::star::container::XIndexAccess,
317cdf0e10cSrcweir 	::com::sun::star::lang::XServiceInfo
318cdf0e10cSrcweir > SwXFramesBaseClass;
319cdf0e10cSrcweir 
320cdf0e10cSrcweir class SwXFrames : public SwXFramesBaseClass,
321cdf0e10cSrcweir 	public SwUnoCollection
322cdf0e10cSrcweir {
323cdf0e10cSrcweir 	const FlyCntType 	eType;
324cdf0e10cSrcweir protected:
325cdf0e10cSrcweir 	virtual ~SwXFrames();
326cdf0e10cSrcweir public:
327cdf0e10cSrcweir 	SwXFrames(SwDoc* pDoc, FlyCntType eSet);
328cdf0e10cSrcweir 
329cdf0e10cSrcweir     //XEnumerationAccess
330cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XEnumeration > SAL_CALL createEnumeration(void) throw( ::com::sun::star::uno::RuntimeException );
331cdf0e10cSrcweir 
332cdf0e10cSrcweir 	//XIndexAccess
333cdf0e10cSrcweir 	virtual sal_Int32 SAL_CALL getCount(void) throw( ::com::sun::star::uno::RuntimeException );
334cdf0e10cSrcweir 	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 );
335cdf0e10cSrcweir 
336cdf0e10cSrcweir 	//XNameAccess
337cdf0e10cSrcweir 	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 );
338cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getElementNames(void) throw( ::com::sun::star::uno::RuntimeException );
339cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL hasByName(const rtl::OUString& Name) throw( ::com::sun::star::uno::RuntimeException );
340cdf0e10cSrcweir 
341cdf0e10cSrcweir 	//XElementAccess
342cdf0e10cSrcweir     virtual ::com::sun::star::uno::Type SAL_CALL getElementType(  ) throw(::com::sun::star::uno::RuntimeException);
343cdf0e10cSrcweir     virtual sal_Bool SAL_CALL hasElements(  ) throw(::com::sun::star::uno::RuntimeException);
344cdf0e10cSrcweir 
345cdf0e10cSrcweir 	//XServiceInfo
346cdf0e10cSrcweir 	virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException );
347cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException );
348cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException );
349cdf0e10cSrcweir 
GetType() const350cdf0e10cSrcweir     FlyCntType          GetType()const{return eType;}
351cdf0e10cSrcweir 	static SwXFrame* 	GetObject( SwFrmFmt& rFmt, FlyCntType eType );
352cdf0e10cSrcweir 
353cdf0e10cSrcweir };
354cdf0e10cSrcweir 
355cdf0e10cSrcweir /*-----------------20.02.98 10:51-------------------
356cdf0e10cSrcweir 
357cdf0e10cSrcweir --------------------------------------------------*/
358cdf0e10cSrcweir class SwXTextFrames : public SwXFrames
359cdf0e10cSrcweir {
360cdf0e10cSrcweir protected:
361cdf0e10cSrcweir 	virtual ~SwXTextFrames();
362cdf0e10cSrcweir public:
363cdf0e10cSrcweir 	SwXTextFrames(SwDoc* pDoc);
364cdf0e10cSrcweir 
365cdf0e10cSrcweir 
366cdf0e10cSrcweir //	SMART_UNO_DECLARATION( SwXTextFrames, UsrObject );
367cdf0e10cSrcweir 
368cdf0e10cSrcweir 	//XServiceInfo
369cdf0e10cSrcweir 	virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException );
370cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException );
371cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException );
372cdf0e10cSrcweir 
373cdf0e10cSrcweir };
374cdf0e10cSrcweir 
375cdf0e10cSrcweir /*-----------------20.02.98 10:55-------------------
376cdf0e10cSrcweir 
377cdf0e10cSrcweir --------------------------------------------------*/
378cdf0e10cSrcweir class SwXTextGraphicObjects : public SwXFrames
379cdf0e10cSrcweir {
380cdf0e10cSrcweir protected:
381cdf0e10cSrcweir 	virtual ~SwXTextGraphicObjects();
382cdf0e10cSrcweir public:
383cdf0e10cSrcweir 		SwXTextGraphicObjects(SwDoc* pDoc);
384cdf0e10cSrcweir 
385cdf0e10cSrcweir 
386cdf0e10cSrcweir //	SMART_UNO_DECLARATION( SwXTextGraphicObjects, UsrObject );
387cdf0e10cSrcweir 
388cdf0e10cSrcweir 	//XServiceInfo
389cdf0e10cSrcweir 	virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException );
390cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException );
391cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException );
392cdf0e10cSrcweir 
393cdf0e10cSrcweir };
394cdf0e10cSrcweir 
395cdf0e10cSrcweir /*-----------------20.02.98 10:57-------------------
396cdf0e10cSrcweir 
397cdf0e10cSrcweir --------------------------------------------------*/
398cdf0e10cSrcweir class SwXTextEmbeddedObjects :  public SwXFrames
399cdf0e10cSrcweir {
400cdf0e10cSrcweir protected:
401cdf0e10cSrcweir 	virtual ~SwXTextEmbeddedObjects();
402cdf0e10cSrcweir public:
403cdf0e10cSrcweir 	SwXTextEmbeddedObjects(SwDoc* pDoc);
404cdf0e10cSrcweir 
405cdf0e10cSrcweir 
406cdf0e10cSrcweir //	SMART_UNO_DECLARATION( SwXTextEmbeddedObjects, UsrObject );
407cdf0e10cSrcweir 
408cdf0e10cSrcweir 	//XServiceInfo
409cdf0e10cSrcweir 	virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException );
410cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException );
411cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException );
412cdf0e10cSrcweir 
413cdf0e10cSrcweir };
414cdf0e10cSrcweir 
415cdf0e10cSrcweir /*-----------------12.02.98 07:58-------------------
416cdf0e10cSrcweir 
417cdf0e10cSrcweir --------------------------------------------------*/
418cdf0e10cSrcweir class SwXTextSections : public SwCollectionBaseClass,
419cdf0e10cSrcweir                         public SwUnoCollection
420cdf0e10cSrcweir {
421cdf0e10cSrcweir protected:
422cdf0e10cSrcweir 	virtual ~SwXTextSections();
423cdf0e10cSrcweir public:
424cdf0e10cSrcweir 	SwXTextSections(SwDoc* pDoc);
425cdf0e10cSrcweir 
426cdf0e10cSrcweir 
427cdf0e10cSrcweir 	//XIndexAccess
428cdf0e10cSrcweir 	virtual sal_Int32 SAL_CALL getCount(void) throw( ::com::sun::star::uno::RuntimeException );
429cdf0e10cSrcweir 	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 );
430cdf0e10cSrcweir 
431cdf0e10cSrcweir 	//XNameAccess
432cdf0e10cSrcweir 	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 );
433cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getElementNames(void) throw( ::com::sun::star::uno::RuntimeException );
434cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL hasByName(const rtl::OUString& Name) throw( ::com::sun::star::uno::RuntimeException );
435cdf0e10cSrcweir 
436cdf0e10cSrcweir 	//XElementAccess
437cdf0e10cSrcweir     virtual ::com::sun::star::uno::Type SAL_CALL getElementType(  ) throw(::com::sun::star::uno::RuntimeException);
438cdf0e10cSrcweir     virtual sal_Bool SAL_CALL hasElements(  ) throw(::com::sun::star::uno::RuntimeException);
439cdf0e10cSrcweir 
440cdf0e10cSrcweir 	//XServiceInfo
441cdf0e10cSrcweir 	virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException );
442cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException );
443cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException );
444cdf0e10cSrcweir 
445cdf0e10cSrcweir     static ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextSection> GetObject( SwSectionFmt& rFmt );
446cdf0e10cSrcweir };
447cdf0e10cSrcweir /*-----------------12.02.98 07:51-------------------
448cdf0e10cSrcweir 
449cdf0e10cSrcweir --------------------------------------------------*/
450cdf0e10cSrcweir class SwXBookmarks : public SwCollectionBaseClass,
451cdf0e10cSrcweir 	public SwUnoCollection
452cdf0e10cSrcweir {
453cdf0e10cSrcweir     protected:
454cdf0e10cSrcweir         virtual ~SwXBookmarks();
455cdf0e10cSrcweir     public:
456cdf0e10cSrcweir         SwXBookmarks(SwDoc* pDoc);
457cdf0e10cSrcweir 
458cdf0e10cSrcweir 
459cdf0e10cSrcweir         //XIndexAccess
460cdf0e10cSrcweir         virtual sal_Int32 SAL_CALL getCount(void) throw( ::com::sun::star::uno::RuntimeException );
461cdf0e10cSrcweir         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 );
462cdf0e10cSrcweir 
463cdf0e10cSrcweir         //XNameAccess
464cdf0e10cSrcweir         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 );
465cdf0e10cSrcweir         virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getElementNames(void) throw( ::com::sun::star::uno::RuntimeException );
466cdf0e10cSrcweir         virtual sal_Bool SAL_CALL hasByName(const rtl::OUString& Name) throw( ::com::sun::star::uno::RuntimeException );
467cdf0e10cSrcweir 
468cdf0e10cSrcweir         //XElementAccess
469cdf0e10cSrcweir         virtual ::com::sun::star::uno::Type SAL_CALL getElementType(  ) throw(::com::sun::star::uno::RuntimeException);
470cdf0e10cSrcweir         virtual sal_Bool SAL_CALL hasElements(  ) throw(::com::sun::star::uno::RuntimeException);
471cdf0e10cSrcweir 
472cdf0e10cSrcweir         //XServiceInfo
473cdf0e10cSrcweir         virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException );
474cdf0e10cSrcweir         virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException );
475cdf0e10cSrcweir         virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException );
476cdf0e10cSrcweir 
477cdf0e10cSrcweir };
478cdf0e10cSrcweir 
479cdf0e10cSrcweir class SwXNumberingRulesCollection : public cppu::WeakImplHelper1
480cdf0e10cSrcweir <
481cdf0e10cSrcweir     ::com::sun::star::container::XIndexAccess
482cdf0e10cSrcweir >,
483cdf0e10cSrcweir     public SwUnoCollection
484cdf0e10cSrcweir {
485cdf0e10cSrcweir protected:
486cdf0e10cSrcweir     virtual ~SwXNumberingRulesCollection();
487cdf0e10cSrcweir 
488cdf0e10cSrcweir public:
489cdf0e10cSrcweir     SwXNumberingRulesCollection( SwDoc* pDoc );
490cdf0e10cSrcweir 
491cdf0e10cSrcweir     //XIndexAccess
492cdf0e10cSrcweir     virtual sal_Int32 SAL_CALL SAL_CALL getCount(void) throw( ::com::sun::star::uno::RuntimeException );
493cdf0e10cSrcweir     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 );
494cdf0e10cSrcweir 
495cdf0e10cSrcweir     //XElementAccess
496cdf0e10cSrcweir     virtual ::com::sun::star::uno::Type SAL_CALL getElementType(  ) throw(::com::sun::star::uno::RuntimeException);
497cdf0e10cSrcweir     virtual sal_Bool SAL_CALL hasElements(  ) throw(::com::sun::star::uno::RuntimeException);
498cdf0e10cSrcweir };
499cdf0e10cSrcweir 
500cdf0e10cSrcweir /*-----------------12.02.98 08:01-------------------
501cdf0e10cSrcweir 
502cdf0e10cSrcweir --------------------------------------------------*/
503cdf0e10cSrcweir 
504cdf0e10cSrcweir typedef
505cdf0e10cSrcweir cppu::WeakImplHelper2
506cdf0e10cSrcweir <
507cdf0e10cSrcweir     ::com::sun::star::container::XIndexAccess,
508cdf0e10cSrcweir     ::com::sun::star::lang::XServiceInfo
509cdf0e10cSrcweir >
510cdf0e10cSrcweir SwSimpleIndexAccessBaseClass;
511cdf0e10cSrcweir 
512cdf0e10cSrcweir class SwXFootnotes : public SwSimpleIndexAccessBaseClass,
513cdf0e10cSrcweir                      public SwUnoCollection
514cdf0e10cSrcweir {
515cdf0e10cSrcweir     const bool m_bEndnote;
516cdf0e10cSrcweir 
517cdf0e10cSrcweir protected:
518cdf0e10cSrcweir 	virtual ~SwXFootnotes();
519cdf0e10cSrcweir public:
520cdf0e10cSrcweir 	SwXFootnotes(sal_Bool bEnd, SwDoc* pDoc);
521cdf0e10cSrcweir 
522cdf0e10cSrcweir 	//XIndexAccess
523cdf0e10cSrcweir 	virtual sal_Int32 SAL_CALL SAL_CALL getCount(void) throw( ::com::sun::star::uno::RuntimeException );
524cdf0e10cSrcweir 	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 );
525cdf0e10cSrcweir 
526cdf0e10cSrcweir 	//XElementAccess
527cdf0e10cSrcweir     virtual ::com::sun::star::uno::Type SAL_CALL getElementType(  ) throw(::com::sun::star::uno::RuntimeException);
528cdf0e10cSrcweir     virtual sal_Bool SAL_CALL hasElements(  ) throw(::com::sun::star::uno::RuntimeException);
529cdf0e10cSrcweir 
530cdf0e10cSrcweir 	//XServiceInfo
531cdf0e10cSrcweir 	virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException );
532cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException );
533cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException );
534cdf0e10cSrcweir 
535cdf0e10cSrcweir 	static ::com::sun::star::uno::Reference< ::com::sun::star::text::XFootnote> GetObject( SwDoc& rDoc, const SwFmtFtn& rFmt );
536cdf0e10cSrcweir };
537cdf0e10cSrcweir 
538cdf0e10cSrcweir /* -----------------27.08.98 13:10-------------------
539cdf0e10cSrcweir  *
540cdf0e10cSrcweir  * --------------------------------------------------*/
541cdf0e10cSrcweir class SwXReferenceMarks : public SwCollectionBaseClass,
542cdf0e10cSrcweir 	public SwUnoCollection
543cdf0e10cSrcweir {
544cdf0e10cSrcweir protected:
545cdf0e10cSrcweir 	virtual ~SwXReferenceMarks();
546cdf0e10cSrcweir public:
547cdf0e10cSrcweir 	SwXReferenceMarks(SwDoc* pDoc);
548cdf0e10cSrcweir 
549cdf0e10cSrcweir 
550cdf0e10cSrcweir 	//XIndexAccess
551cdf0e10cSrcweir 	virtual sal_Int32 SAL_CALL getCount(void) throw( ::com::sun::star::uno::RuntimeException );
552cdf0e10cSrcweir 	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 );
553cdf0e10cSrcweir 
554cdf0e10cSrcweir 	//XNameAccess
555cdf0e10cSrcweir 	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 );
556cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getElementNames(void) throw( ::com::sun::star::uno::RuntimeException );
557cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL hasByName(const rtl::OUString& Name) throw( ::com::sun::star::uno::RuntimeException );
558cdf0e10cSrcweir 
559cdf0e10cSrcweir 	//XElementAccess
560cdf0e10cSrcweir     virtual ::com::sun::star::uno::Type SAL_CALL getElementType(  ) throw(::com::sun::star::uno::RuntimeException);
561cdf0e10cSrcweir     virtual sal_Bool SAL_CALL hasElements(  ) throw(::com::sun::star::uno::RuntimeException);
562cdf0e10cSrcweir 
563cdf0e10cSrcweir 	//XServiceInfo
564cdf0e10cSrcweir 	virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException );
565cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException );
566cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException );
567cdf0e10cSrcweir 
568cdf0e10cSrcweir 	static SwXReferenceMark* GetObject( SwDoc* pDoc, const SwFmtRefMark* pMark );
569cdf0e10cSrcweir };
570cdf0e10cSrcweir 
571cdf0e10cSrcweir #endif
572cdf0e10cSrcweir 
573cdf0e10cSrcweir 
574cdf0e10cSrcweir 
575cdf0e10cSrcweir 
576cdf0e10cSrcweir 
577cdf0e10cSrcweir 
578