1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
27 #ifndef __com_sun_star_text_GenericTextDocument_idl__
28 #define __com_sun_star_text_GenericTextDocument_idl__
30 #ifndef __com_sun_star_document_OfficeDocument_idl__
31 #include
<com
/sun
/star
/document
/OfficeDocument.idl
>
34 #ifndef __com_sun_star_text_XTextDocument_idl__
35 #include
<com
/sun
/star
/text
/XTextDocument.idl
>
38 #ifndef __com_sun_star_util_XSearchable_idl__
39 #include
<com
/sun
/star
/util
/XSearchable.idl
>
42 #ifndef _com_sun_star_util_XRefreshable_idl_
43 #include
<com
/sun
/star
/util
/XRefreshable.idl
>
46 #ifndef __com_sun_star_text_XFootnotesSupplier_idl__
47 #include
<com
/sun
/star
/text
/XFootnotesSupplier.idl
>
50 #ifndef __com_sun_star_text_XEndnotesSupplier_idl__
51 #include
<com
/sun
/star
/text
/XEndnotesSupplier.idl
>
54 #ifndef __com_sun_star_util_XReplaceable_idl__
55 #include
<com
/sun
/star
/util
/XReplaceable.idl
>
58 #ifndef __com_sun_star_text_XPagePrintable_idl__
59 #include
<com
/sun
/star
/text
/XPagePrintable.idl
>
62 #ifndef __com_sun_star_text_XReferenceMarksSupplier_idl__
63 #include
<com
/sun
/star
/text
/XReferenceMarksSupplier.idl
>
66 #ifndef __com_sun_star_text_XLineNumberingSupplier_idl__
67 #include
<com
/sun
/star
/text
/XLineNumberingSupplier.idl
>
70 #ifndef __com_sun_star_text_XChapterNumberingSupplier_idl__
71 #include
<com
/sun
/star
/text
/XChapterNumberingSupplier.idl
>
74 #ifndef __com_sun_star_text_XTextGraphicObjectsSupplier_idl__
75 #include
<com
/sun
/star
/text
/XTextGraphicObjectsSupplier.idl
>
78 #ifndef __com_sun_star_text_XTextEmbeddedObjectsSupplier_idl__
79 #include
<com
/sun
/star
/text
/XTextEmbeddedObjectsSupplier.idl
>
82 #ifndef __com_sun_star_text_XTextTablesSupplier_idl__
83 #include
<com
/sun
/star
/text
/XTextTablesSupplier.idl
>
86 #ifndef __com_sun_star_style_XStyleFamiliesSupplier_idl__
87 #include
<com
/sun
/star
/style
/XStyleFamiliesSupplier.idl
>
90 #ifndef __com_sun_star_util_XNumberFormatsSupplier_idl__
91 #include
<com
/sun
/star
/util
/XNumberFormatsSupplier.idl
>
94 #ifndef __com_sun_star_text_XBookmarksSupplier_idl__
95 #include
<com
/sun
/star
/text
/XBookmarksSupplier.idl
>
98 #ifndef __com_sun_star_text_XDocumentIndexesSupplier_idl__
99 #include
<com
/sun
/star
/text
/XDocumentIndexesSupplier.idl
>
102 #ifndef __com_sun_star_text_XTextFieldsSupplier_idl__
103 #include
<com
/sun
/star
/text
/XTextFieldsSupplier.idl
>
106 #ifndef __com_sun_star_text_XTextFramesSupplier_idl__
107 #include
<com
/sun
/star
/text
/XTextFramesSupplier.idl
>
110 #ifndef __com_sun_star_text_XTextSectionsSupplier_idl__
111 #include
<com
/sun
/star
/text
/XTextSectionsSupplier.idl
>
114 #ifndef __com_sun_star_lang_XMultiServiceFactory_idl__
115 #include
<com
/sun
/star
/lang
/XMultiServiceFactory.idl
>
118 #ifndef __com_sun_star_lang_Locale_idl__
119 #include
<com
/sun
/star
/lang
/Locale.idl
>
122 //=============================================================================
124 module com
{ module sun
{ module star
{ module text
{
126 //=============================================================================
128 /** A text document is a model component which contains text
129 structured by paragraphs.
131 <p>Each paragraph and each portion of text can be fitted with
132 some attributes (technically properties).</p>
134 <p>Its declared as generic text document, because its function is
135 needed by different derived services (TextDocument/WebDocument/GlobalDocument).</p>
137 <p>In addition, all text objects can be searched.</p>
139 published service GenericTextDocument
141 service com
::sun
::star
::document
::OfficeDocument
;
143 /** provides methods to create instances of several text document
145 A text document provides several services which need the context
146 of a text document and these text document dependent services are
147 created at the text document directly and not over the global service
150 interface com
::sun
::star
::lang
::XMultiServiceFactory
;
152 interface com
::sun
::star
::text
::XTextDocument
;
154 interface com
::sun
::star
::util
::XSearchable
;
156 interface com
::sun
::star
::util
::XRefreshable
;
158 [optional] interface com
::sun
::star
::text
::XFootnotesSupplier
;
160 [optional] interface com
::sun
::star
::text
::XEndnotesSupplier
;
162 [optional] interface com
::sun
::star
::util
::XReplaceable
;
164 [optional] interface com
::sun
::star
::text
::XPagePrintable
;
166 [optional] interface com
::sun
::star
::text
::XReferenceMarksSupplier
;
168 [optional] interface com
::sun
::star
::text
::XLineNumberingSupplier
;
170 [optional] interface com
::sun
::star
::text
::XChapterNumberingSupplier
;
172 [optional] interface com
::sun
::star
::beans
::XPropertySet
;
174 [optional] interface com
::sun
::star
::text
::XTextGraphicObjectsSupplier
;
176 [optional] interface com
::sun
::star
::text
::XTextEmbeddedObjectsSupplier
;
178 [optional] interface com
::sun
::star
::text
::XTextTablesSupplier
;
180 [optional] interface com
::sun
::star
::style
::XStyleFamiliesSupplier
;
183 [optional] interface com
::sun
::star
::text
::XBookmarksSupplier
;
186 [optional] interface com
::sun
::star
::text
::XDocumentIndexesSupplier
;
189 [optional] interface com
::sun
::star
::text
::XTextFieldsSupplier
;
192 [optional] interface com
::sun
::star
::text
::XTextFramesSupplier
;
195 [optional] interface com
::sun
::star
::text
::XTextSectionsSupplier
;
198 [optional] interface com
::sun
::star
::util
::XNumberFormatsSupplier
;
199 //-------------------------------------------------------------------------
201 /** contains the identifier of the default locale of the document.
203 [optional, property
] com
::sun
::star
::lang
::Locale CharLocale
;
205 //-------------------------------------------------------------------------
207 /** contains the count of all characters in the document.
209 [optional, readonly, property
] long CharacterCount
;
212 //-------------------------------------------------------------------------
214 /** contains the count of all paragraphs in the document.
216 [optional, readonly, property
] long ParagraphCount
;
218 //-------------------------------------------------------------------------
220 /** contains the count of all words in the document.@see WordSeparator
222 [optional, readonly, property
] long WordCount
;
224 //-------------------------------------------------------------------------
226 /** contains a string that consists of characters that mark the
227 separation of words in counting the words in a document.
231 <p> I.e. slash and backslash. Whitespaces (tab stop,
232 space, paragraph break, line break) always separate
233 words.</p>@see WordCount
235 [optional, property
] string WordSeparator
;
237 //-------------------------------------------------------------------------
238 /** specifies the concordance file taken into account when
241 * When no concordance file should be used the string is empty.
242 * Used for text documents only.
246 [optional, property
] string IndexAutoMarkFileURL
;
248 //-------------------------------------------------------------------------
249 /** specifies if change recording is active.
253 [optional, property
] boolean RecordChanges
;
255 //-------------------------------------------------------------------------
256 /** specifies the first 4 digit year to be used when years
257 * are given in 2 digits.
259 * Example: if set to 1930
260 * Oct-12-29 will be interpreted as Oct-12-2029
261 * Oct-12-30 will be interpreted as Oct-12-1930
262 * Oct-12-02 will be interpreted as Oct-12-2002
266 [optional, property
] short TwoDigitYear
;
269 //=============================================================================