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