1d1766043SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3d1766043SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4d1766043SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5d1766043SAndrew Rist * distributed with this work for additional information
6d1766043SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7d1766043SAndrew Rist * to you under the Apache License, Version 2.0 (the
8d1766043SAndrew Rist * "License"); you may not use this file except in compliance
9d1766043SAndrew Rist * with the License.  You may obtain a copy of the License at
10d1766043SAndrew Rist *
11d1766043SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12d1766043SAndrew Rist *
13d1766043SAndrew Rist * Unless required by applicable law or agreed to in writing,
14d1766043SAndrew Rist * software distributed under the License is distributed on an
15d1766043SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16d1766043SAndrew Rist * KIND, either express or implied.  See the License for the
17d1766043SAndrew Rist * specific language governing permissions and limitations
18d1766043SAndrew Rist * under the License.
19d1766043SAndrew Rist *
20d1766043SAndrew Rist *************************************************************/
21d1766043SAndrew Rist
22d1766043SAndrew Rist
23cdf0e10cSrcweir#ifndef __com_sun_star_text_GenericTextDocument_idl__
24cdf0e10cSrcweir#define __com_sun_star_text_GenericTextDocument_idl__
25cdf0e10cSrcweir
26cdf0e10cSrcweir#ifndef __com_sun_star_document_OfficeDocument_idl__
27cdf0e10cSrcweir#include <com/sun/star/document/OfficeDocument.idl>
28cdf0e10cSrcweir#endif
29cdf0e10cSrcweir
30cdf0e10cSrcweir#ifndef __com_sun_star_text_XTextDocument_idl__
31cdf0e10cSrcweir#include <com/sun/star/text/XTextDocument.idl>
32cdf0e10cSrcweir#endif
33cdf0e10cSrcweir
34cdf0e10cSrcweir#ifndef __com_sun_star_util_XSearchable_idl__
35cdf0e10cSrcweir#include <com/sun/star/util/XSearchable.idl>
36cdf0e10cSrcweir#endif
37cdf0e10cSrcweir
38cdf0e10cSrcweir#ifndef _com_sun_star_util_XRefreshable_idl_
39cdf0e10cSrcweir#include <com/sun/star/util/XRefreshable.idl>
40cdf0e10cSrcweir#endif
41cdf0e10cSrcweir
42cdf0e10cSrcweir#ifndef __com_sun_star_text_XFootnotesSupplier_idl__
43cdf0e10cSrcweir#include <com/sun/star/text/XFootnotesSupplier.idl>
44cdf0e10cSrcweir#endif
45cdf0e10cSrcweir
46cdf0e10cSrcweir#ifndef __com_sun_star_text_XEndnotesSupplier_idl__
47cdf0e10cSrcweir#include <com/sun/star/text/XEndnotesSupplier.idl>
48cdf0e10cSrcweir#endif
49cdf0e10cSrcweir
50cdf0e10cSrcweir#ifndef __com_sun_star_util_XReplaceable_idl__
51cdf0e10cSrcweir#include <com/sun/star/util/XReplaceable.idl>
52cdf0e10cSrcweir#endif
53cdf0e10cSrcweir
54cdf0e10cSrcweir#ifndef __com_sun_star_text_XPagePrintable_idl__
55cdf0e10cSrcweir#include <com/sun/star/text/XPagePrintable.idl>
56cdf0e10cSrcweir#endif
57cdf0e10cSrcweir
58cdf0e10cSrcweir#ifndef __com_sun_star_text_XReferenceMarksSupplier_idl__
59cdf0e10cSrcweir#include <com/sun/star/text/XReferenceMarksSupplier.idl>
60cdf0e10cSrcweir#endif
61cdf0e10cSrcweir
62cdf0e10cSrcweir#ifndef __com_sun_star_text_XLineNumberingSupplier_idl__
63cdf0e10cSrcweir#include <com/sun/star/text/XLineNumberingSupplier.idl>
64cdf0e10cSrcweir#endif
65cdf0e10cSrcweir
66cdf0e10cSrcweir#ifndef __com_sun_star_text_XChapterNumberingSupplier_idl__
67cdf0e10cSrcweir#include <com/sun/star/text/XChapterNumberingSupplier.idl>
68cdf0e10cSrcweir#endif
69cdf0e10cSrcweir
70cdf0e10cSrcweir#ifndef __com_sun_star_text_XTextGraphicObjectsSupplier_idl__
71cdf0e10cSrcweir#include <com/sun/star/text/XTextGraphicObjectsSupplier.idl>
72cdf0e10cSrcweir#endif
73cdf0e10cSrcweir
74cdf0e10cSrcweir#ifndef __com_sun_star_text_XTextEmbeddedObjectsSupplier_idl__
75cdf0e10cSrcweir#include <com/sun/star/text/XTextEmbeddedObjectsSupplier.idl>
76cdf0e10cSrcweir#endif
77cdf0e10cSrcweir
78cdf0e10cSrcweir#ifndef __com_sun_star_text_XTextTablesSupplier_idl__
79cdf0e10cSrcweir#include <com/sun/star/text/XTextTablesSupplier.idl>
80cdf0e10cSrcweir#endif
81cdf0e10cSrcweir
82cdf0e10cSrcweir#ifndef __com_sun_star_style_XStyleFamiliesSupplier_idl__
83cdf0e10cSrcweir#include <com/sun/star/style/XStyleFamiliesSupplier.idl>
84cdf0e10cSrcweir#endif
85cdf0e10cSrcweir
86cdf0e10cSrcweir#ifndef __com_sun_star_util_XNumberFormatsSupplier_idl__
87cdf0e10cSrcweir#include <com/sun/star/util/XNumberFormatsSupplier.idl>
88cdf0e10cSrcweir#endif
89cdf0e10cSrcweir
90cdf0e10cSrcweir#ifndef __com_sun_star_text_XBookmarksSupplier_idl__
91cdf0e10cSrcweir#include <com/sun/star/text/XBookmarksSupplier.idl>
92cdf0e10cSrcweir#endif
93cdf0e10cSrcweir
94cdf0e10cSrcweir#ifndef __com_sun_star_text_XDocumentIndexesSupplier_idl__
95cdf0e10cSrcweir#include <com/sun/star/text/XDocumentIndexesSupplier.idl>
96cdf0e10cSrcweir#endif
97cdf0e10cSrcweir
98cdf0e10cSrcweir#ifndef __com_sun_star_text_XTextFieldsSupplier_idl__
99cdf0e10cSrcweir#include <com/sun/star/text/XTextFieldsSupplier.idl>
100cdf0e10cSrcweir#endif
101cdf0e10cSrcweir
102cdf0e10cSrcweir#ifndef __com_sun_star_text_XTextFramesSupplier_idl__
103cdf0e10cSrcweir#include <com/sun/star/text/XTextFramesSupplier.idl>
104cdf0e10cSrcweir#endif
105cdf0e10cSrcweir
106cdf0e10cSrcweir#ifndef __com_sun_star_text_XTextSectionsSupplier_idl__
107cdf0e10cSrcweir#include <com/sun/star/text/XTextSectionsSupplier.idl>
108cdf0e10cSrcweir#endif
109cdf0e10cSrcweir
110cdf0e10cSrcweir#ifndef __com_sun_star_lang_XMultiServiceFactory_idl__
111cdf0e10cSrcweir#include <com/sun/star/lang/XMultiServiceFactory.idl>
112cdf0e10cSrcweir#endif
113cdf0e10cSrcweir
114cdf0e10cSrcweir#ifndef __com_sun_star_lang_Locale_idl__
115cdf0e10cSrcweir#include <com/sun/star/lang/Locale.idl>
116cdf0e10cSrcweir#endif
117cdf0e10cSrcweir
118cdf0e10cSrcweir//=============================================================================
119cdf0e10cSrcweir
120cdf0e10cSrcweir module com {  module sun {  module star {  module text {
121cdf0e10cSrcweir
122cdf0e10cSrcweir//=============================================================================
123cdf0e10cSrcweir
124cdf0e10cSrcweir/** A text document is a model component which contains text
125cdf0e10cSrcweir	structured by paragraphs.
126cdf0e10cSrcweir
127cdf0e10cSrcweir	<p>Each paragraph and each portion of text can be fitted with
128cdf0e10cSrcweir    some attributes (technically properties).</p>
129cdf0e10cSrcweir
130cdf0e10cSrcweir    <p>Its declared as generic text document, because its function is
131cdf0e10cSrcweir    needed by different derived services (TextDocument/WebDocument/GlobalDocument).</p>
132cdf0e10cSrcweir
133cdf0e10cSrcweir	<p>In addition, all text objects can be searched.</p>
134cdf0e10cSrcweir */
135cdf0e10cSrcweirpublished service GenericTextDocument
136cdf0e10cSrcweir{
137cdf0e10cSrcweir	service com::sun::star::document::OfficeDocument;
138cdf0e10cSrcweir
139cdf0e10cSrcweir	/** provides methods to create instances of several text document
140cdf0e10cSrcweir		services.
141cdf0e10cSrcweir		A text document provides several services which need the context
142cdf0e10cSrcweir		of a text document and these text document dependent services are
143cdf0e10cSrcweir		created at the text document directly and not over the global service
144cdf0e10cSrcweir		manager.
145cdf0e10cSrcweir	 */
146cdf0e10cSrcweir	interface com::sun::star::lang::XMultiServiceFactory;
147cdf0e10cSrcweir
148cdf0e10cSrcweir	interface com::sun::star::text::XTextDocument;
149cdf0e10cSrcweir
150cdf0e10cSrcweir	interface com::sun::star::util::XSearchable;
151cdf0e10cSrcweir
152cdf0e10cSrcweir	interface com::sun::star::util::XRefreshable;
153cdf0e10cSrcweir
154cdf0e10cSrcweir	[optional] interface com::sun::star::text::XFootnotesSupplier;
155cdf0e10cSrcweir
156cdf0e10cSrcweir	[optional] interface com::sun::star::text::XEndnotesSupplier;
157cdf0e10cSrcweir
158cdf0e10cSrcweir	[optional] interface com::sun::star::util::XReplaceable;
159cdf0e10cSrcweir
160cdf0e10cSrcweir	[optional] interface com::sun::star::text::XPagePrintable;
161cdf0e10cSrcweir
162cdf0e10cSrcweir	[optional] interface com::sun::star::text::XReferenceMarksSupplier;
163cdf0e10cSrcweir
164cdf0e10cSrcweir	[optional] interface com::sun::star::text::XLineNumberingSupplier;
165cdf0e10cSrcweir
166cdf0e10cSrcweir	[optional] interface com::sun::star::text::XChapterNumberingSupplier;
167cdf0e10cSrcweir
168cdf0e10cSrcweir	[optional] interface com::sun::star::beans::XPropertySet;
169cdf0e10cSrcweir
170cdf0e10cSrcweir	[optional] interface com::sun::star::text::XTextGraphicObjectsSupplier;
171cdf0e10cSrcweir
172cdf0e10cSrcweir	[optional] interface com::sun::star::text::XTextEmbeddedObjectsSupplier;
173cdf0e10cSrcweir
174cdf0e10cSrcweir	[optional] interface com::sun::star::text::XTextTablesSupplier;
175cdf0e10cSrcweir
176cdf0e10cSrcweir	[optional] interface com::sun::star::style::XStyleFamiliesSupplier;
177cdf0e10cSrcweir
178*2a413f17SJürgen Schmidt	/** @since OpenOffice 1.1.2
179cdf0e10cSrcweir	 */
180cdf0e10cSrcweir	[optional] interface com::sun::star::text::XBookmarksSupplier;
181cdf0e10cSrcweir
182*2a413f17SJürgen Schmidt	/** @since OpenOffice 1.1.2
183cdf0e10cSrcweir	 */
184cdf0e10cSrcweir	[optional] interface com::sun::star::text::XDocumentIndexesSupplier;
185cdf0e10cSrcweir
186*2a413f17SJürgen Schmidt	/** @since OpenOffice 1.1.2
187cdf0e10cSrcweir	 */
188cdf0e10cSrcweir	[optional] interface com::sun::star::text::XTextFieldsSupplier;
189cdf0e10cSrcweir
190*2a413f17SJürgen Schmidt	/** @since OpenOffice 1.1.2
191cdf0e10cSrcweir	 */
192cdf0e10cSrcweir	[optional] interface com::sun::star::text::XTextFramesSupplier;
193cdf0e10cSrcweir
194*2a413f17SJürgen Schmidt	/** @since OpenOffice 1.1.2
195cdf0e10cSrcweir	 */
196cdf0e10cSrcweir	[optional] interface com::sun::star::text::XTextSectionsSupplier;
197cdf0e10cSrcweir
198*2a413f17SJürgen Schmidt	/** @since OpenOffice 1.1.2
199cdf0e10cSrcweir	 */
200cdf0e10cSrcweir	[optional] interface com::sun::star::util::XNumberFormatsSupplier;
201cdf0e10cSrcweir    //-------------------------------------------------------------------------
202cdf0e10cSrcweir
203cdf0e10cSrcweir	/** contains the identifier of the default locale of the document.
204cdf0e10cSrcweir	 */
205cdf0e10cSrcweir	[optional, property] com::sun::star::lang::Locale CharLocale;
206cdf0e10cSrcweir
207cdf0e10cSrcweir	//-------------------------------------------------------------------------
208cdf0e10cSrcweir
209cdf0e10cSrcweir	/** contains the count of all characters in the document.
210cdf0e10cSrcweir	 */
211cdf0e10cSrcweir	[optional, readonly, property] long CharacterCount;
212cdf0e10cSrcweir
213cdf0e10cSrcweir
214cdf0e10cSrcweir	//-------------------------------------------------------------------------
215cdf0e10cSrcweir
216cdf0e10cSrcweir	/** contains the count of all paragraphs in the document.
217cdf0e10cSrcweir	 */
218cdf0e10cSrcweir	[optional, readonly, property] long ParagraphCount;
219cdf0e10cSrcweir
220cdf0e10cSrcweir	//-------------------------------------------------------------------------
221cdf0e10cSrcweir
222cdf0e10cSrcweir	/** contains the count of all words in the document.@see WordSeparator
223cdf0e10cSrcweir	 */
224cdf0e10cSrcweir	[optional, readonly, property] long WordCount;
225cdf0e10cSrcweir
226cdf0e10cSrcweir	//-------------------------------------------------------------------------
227cdf0e10cSrcweir
228cdf0e10cSrcweir	/** contains a string that consists of characters that mark the
229cdf0e10cSrcweir		separation of words in counting the words in a document.
230cdf0e10cSrcweir
231cdf0e10cSrcweir
232cdf0e10cSrcweir
233cdf0e10cSrcweir		<p> I.e. slash and backslash. Whitespaces (tab stop,
234cdf0e10cSrcweir		space, paragraph break, line break) always separate
235cdf0e10cSrcweir		words.</p>@see WordCount
236cdf0e10cSrcweir	 */
237cdf0e10cSrcweir	[optional, property] string WordSeparator;
238cdf0e10cSrcweir
239cdf0e10cSrcweir        //-------------------------------------------------------------------------
240cdf0e10cSrcweir        /** specifies the concordance file taken into account when
241cdf0e10cSrcweir         *  creating an index.
242cdf0e10cSrcweir         *
243cdf0e10cSrcweir         *  When no concordance file should be used the string is empty.
244cdf0e10cSrcweir         *  Used for text documents only.
245cdf0e10cSrcweir	 *
246*2a413f17SJürgen Schmidt	 *  @since OpenOffice 1.1.2
247cdf0e10cSrcweir         */
248cdf0e10cSrcweir        [optional, property] string IndexAutoMarkFileURL;
249cdf0e10cSrcweir
250cdf0e10cSrcweir        //-------------------------------------------------------------------------
251cdf0e10cSrcweir        /** specifies if change recording is active.
252cdf0e10cSrcweir	 *
253*2a413f17SJürgen Schmidt	 *  @since OpenOffice 1.1.2
254cdf0e10cSrcweir         */
255cdf0e10cSrcweir        [optional, property] boolean RecordChanges;
256cdf0e10cSrcweir
257cdf0e10cSrcweir        //-------------------------------------------------------------------------
258cdf0e10cSrcweir        /** specifies the first 4 digit year to be used when years
259cdf0e10cSrcweir         *  are given in 2 digits.
260cdf0e10cSrcweir         *
261cdf0e10cSrcweir         *  Example: if set to 1930
262cdf0e10cSrcweir         *    Oct-12-29 will be interpreted as Oct-12-2029
263cdf0e10cSrcweir         *    Oct-12-30 will be interpreted as Oct-12-1930
264cdf0e10cSrcweir         *    Oct-12-02 will be interpreted as Oct-12-2002
265cdf0e10cSrcweir	 *
266*2a413f17SJürgen Schmidt	 *  @since OpenOffice 1.1.2
267cdf0e10cSrcweir         */
268cdf0e10cSrcweir        [optional, property] short TwoDigitYear;
269cdf0e10cSrcweir};
270cdf0e10cSrcweir
271cdf0e10cSrcweir//=============================================================================
272cdf0e10cSrcweir
273cdf0e10cSrcweir}; }; }; };
274cdf0e10cSrcweir
275cdf0e10cSrcweir#endif
276