merge the formfield patch from ooo-build
[ooovba.git] / offapi / com / sun / star / text / GenericTextDocument.idl
blobc4648a077b7300a89b4d1476334420ccfe0ea89c
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: GenericTextDocument.idl,v $
10 * $Revision: 1.8 $
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 __com_sun_star_text_GenericTextDocument_idl__
31 #define __com_sun_star_text_GenericTextDocument_idl__
33 #ifndef __com_sun_star_document_OfficeDocument_idl__
34 #include <com/sun/star/document/OfficeDocument.idl>
35 #endif
37 #ifndef __com_sun_star_text_XTextDocument_idl__
38 #include <com/sun/star/text/XTextDocument.idl>
39 #endif
41 #ifndef __com_sun_star_util_XSearchable_idl__
42 #include <com/sun/star/util/XSearchable.idl>
43 #endif
45 #ifndef _com_sun_star_util_XRefreshable_idl_
46 #include <com/sun/star/util/XRefreshable.idl>
47 #endif
49 #ifndef __com_sun_star_text_XFootnotesSupplier_idl__
50 #include <com/sun/star/text/XFootnotesSupplier.idl>
51 #endif
53 #ifndef __com_sun_star_text_XEndnotesSupplier_idl__
54 #include <com/sun/star/text/XEndnotesSupplier.idl>
55 #endif
57 #ifndef __com_sun_star_util_XReplaceable_idl__
58 #include <com/sun/star/util/XReplaceable.idl>
59 #endif
61 #ifndef __com_sun_star_text_XPagePrintable_idl__
62 #include <com/sun/star/text/XPagePrintable.idl>
63 #endif
65 #ifndef __com_sun_star_text_XReferenceMarksSupplier_idl__
66 #include <com/sun/star/text/XReferenceMarksSupplier.idl>
67 #endif
69 #ifndef __com_sun_star_text_XLineNumberingSupplier_idl__
70 #include <com/sun/star/text/XLineNumberingSupplier.idl>
71 #endif
73 #ifndef __com_sun_star_text_XChapterNumberingSupplier_idl__
74 #include <com/sun/star/text/XChapterNumberingSupplier.idl>
75 #endif
77 #ifndef __com_sun_star_text_XTextGraphicObjectsSupplier_idl__
78 #include <com/sun/star/text/XTextGraphicObjectsSupplier.idl>
79 #endif
81 #ifndef __com_sun_star_text_XTextEmbeddedObjectsSupplier_idl__
82 #include <com/sun/star/text/XTextEmbeddedObjectsSupplier.idl>
83 #endif
85 #ifndef __com_sun_star_text_XTextTablesSupplier_idl__
86 #include <com/sun/star/text/XTextTablesSupplier.idl>
87 #endif
89 #ifndef __com_sun_star_style_XStyleFamiliesSupplier_idl__
90 #include <com/sun/star/style/XStyleFamiliesSupplier.idl>
91 #endif
93 #ifndef __com_sun_star_util_XNumberFormatsSupplier_idl__
94 #include <com/sun/star/util/XNumberFormatsSupplier.idl>
95 #endif
97 #ifndef __com_sun_star_text_XBookmarksSupplier_idl__
98 #include <com/sun/star/text/XBookmarksSupplier.idl>
99 #endif
101 #ifndef __com_sun_star_text_XDocumentIndexesSupplier_idl__
102 #include <com/sun/star/text/XDocumentIndexesSupplier.idl>
103 #endif
105 #ifndef __com_sun_star_text_XTextFieldsSupplier_idl__
106 #include <com/sun/star/text/XTextFieldsSupplier.idl>
107 #endif
109 #ifndef __com_sun_star_text_XTextFramesSupplier_idl__
110 #include <com/sun/star/text/XTextFramesSupplier.idl>
111 #endif
113 #ifndef __com_sun_star_text_XTextSectionsSupplier_idl__
114 #include <com/sun/star/text/XTextSectionsSupplier.idl>
115 #endif
117 #ifndef __com_sun_star_lang_XMultiServiceFactory_idl__
118 #include <com/sun/star/lang/XMultiServiceFactory.idl>
119 #endif
121 #ifndef __com_sun_star_lang_Locale_idl__
122 #include <com/sun/star/lang/Locale.idl>
123 #endif
125 //=============================================================================
127 module com { module sun { module star { module text {
129 //=============================================================================
131 /** A text document is a model component which contains text
132 structured by paragraphs.
134 <p>Each paragraph and each portion of text can be fitted with
135 some attributes (technically properties).</p>
137 <p>Its declared as generic text document, because its function is
138 needed by different derived services (TextDocument/WebDocument/GlobalDocument).</p>
140 <p>In addition, all text objects can be searched.</p>
142 published service GenericTextDocument
144 service com::sun::star::document::OfficeDocument;
146 /** provides methods to create instances of several text document
147 services.
148 A text document provides several services which need the context
149 of a text document and these text document dependent services are
150 created at the text document directly and not over the global service
151 manager.
153 interface com::sun::star::lang::XMultiServiceFactory;
155 interface com::sun::star::text::XTextDocument;
157 interface com::sun::star::util::XSearchable;
159 interface com::sun::star::util::XRefreshable;
161 [optional] interface com::sun::star::text::XFootnotesSupplier;
163 [optional] interface com::sun::star::text::XEndnotesSupplier;
165 [optional] interface com::sun::star::util::XReplaceable;
167 [optional] interface com::sun::star::text::XPagePrintable;
169 [optional] interface com::sun::star::text::XReferenceMarksSupplier;
171 [optional] interface com::sun::star::text::XLineNumberingSupplier;
173 [optional] interface com::sun::star::text::XChapterNumberingSupplier;
175 [optional] interface com::sun::star::beans::XPropertySet;
177 [optional] interface com::sun::star::text::XTextGraphicObjectsSupplier;
179 [optional] interface com::sun::star::text::XTextEmbeddedObjectsSupplier;
181 [optional] interface com::sun::star::text::XTextTablesSupplier;
183 [optional] interface com::sun::star::style::XStyleFamiliesSupplier;
185 /// @since OOo 1.1.2
186 [optional] interface com::sun::star::text::XBookmarksSupplier;
188 /// @since OOo 1.1.2
189 [optional] interface com::sun::star::text::XDocumentIndexesSupplier;
191 /// @since OOo 1.1.2
192 [optional] interface com::sun::star::text::XTextFieldsSupplier;
194 /// @since OOo 1.1.2
195 [optional] interface com::sun::star::text::XTextFramesSupplier;
197 /// @since OOo 1.1.2
198 [optional] interface com::sun::star::text::XTextSectionsSupplier;
200 /// @since OOo 1.1.2
201 [optional] interface com::sun::star::util::XNumberFormatsSupplier;
202 //-------------------------------------------------------------------------
204 /** contains the identifier of the default locale of the document.
206 [optional, property] com::sun::star::lang::Locale CharLocale;
208 //-------------------------------------------------------------------------
210 /** contains the count of all characters in the document.
212 [optional, readonly, property] long CharacterCount;
215 //-------------------------------------------------------------------------
217 /** contains the count of all paragraphs in the document.
219 [optional, readonly, property] long ParagraphCount;
221 //-------------------------------------------------------------------------
223 /** contains the count of all words in the document.@see WordSeparator
225 [optional, readonly, property] long WordCount;
227 //-------------------------------------------------------------------------
229 /** contains a string that consists of characters that mark the
230 separation of words in counting the words in a document.
234 <p> I.e. slash and backslash. Whitespaces (tab stop,
235 space, paragraph break, line break) always separate
236 words.</p>@see WordCount
238 [optional, property] string WordSeparator;
240 //-------------------------------------------------------------------------
241 /** specifies the concordance file taken into account when
242 * creating an index.
244 * When no concordance file should be used the string is empty.
245 * Used for text documents only.
247 * @since OOo 1.1.2
249 [optional, property] string IndexAutoMarkFileURL;
251 //-------------------------------------------------------------------------
252 /** specifies if change recording is active.
254 * @since OOo 1.1.2
256 [optional, property] boolean RecordChanges;
258 //-------------------------------------------------------------------------
259 /** specifies the first 4 digit year to be used when years
260 * are given in 2 digits.
262 * Example: if set to 1930
263 * Oct-12-29 will be interpreted as Oct-12-2029
264 * Oct-12-30 will be interpreted as Oct-12-1930
265 * Oct-12-02 will be interpreted as Oct-12-2002
267 * @since OOo 1.1.2
269 [optional, property] short TwoDigitYear;
272 //=============================================================================
274 }; }; }; };
276 #endif