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_document_DocumentInfo_idl__
28 #define __com_sun_star_document_DocumentInfo_idl__
30 #ifndef __com_sun_star_document_XDocumentInfo_idl__
31 #include
<com
/sun
/star
/document
/XDocumentInfo.idl
>
34 #ifndef __com_sun_star_lang_XComponent_idl__
35 #include
<com
/sun
/star
/lang
/XComponent.idl
>
38 #ifndef __com_sun_star_beans_XPropertySet_idl__
39 #include
<com
/sun
/star
/beans
/XPropertySet.idl
>
42 #ifndef __com_sun_star_beans_XFastPropertySet_idl__
43 #include
<com
/sun
/star
/beans
/XFastPropertySet.idl
>
46 #ifndef __com_sun_star_beans_XPropertyContainer_idl__
47 #include
<com
/sun
/star
/beans
/XPropertyContainer.idl
>
50 #ifndef __com_sun_star_beans_NamedValue_idl__
51 #include
<com
/sun
/star
/beans
/NamedValue.idl
>
53 #ifndef __com_sun_star_util_DateTime_idl__
54 #include
<com
/sun
/star
/util
/DateTime.idl
>
57 #ifndef __com_sun_star_lang_Locale_idl__
58 #include
<com
/sun
/star
/lang
/Locale.idl
>
61 //=============================================================================
63 module com
{ module sun
{ module star
{ module document
{
65 //=============================================================================
66 /** this service provides document-specific information like the
67 author, creation date and user fields
70 Contrary to the service <type>StandaloneDocumentInfo</type> the document - which
71 contains such informations - must be loaded completly. As a result of that this
72 DocumengInfo service is available on an open document via the interface
73 <type>XDocumentInfoSupplier</type> only.
76 @deprecated Use <type>DocumentProperties</type> instead.
78 @see StandaloneDocumentInfo
79 @see XDocumentInfoSupplier
81 published service DocumentInfo
83 //-------------------------------------------------------------------------
84 /** provides access to the user fields for the information regarding the
88 These fields are additional to normal properties.
92 interface XDocumentInfo
;
94 //-------------------------------------------------------------------------
95 /** neccessary to support normal properties
97 interface com
::sun
::star
::beans
::XPropertySet
;
99 //-------------------------------------------------------------------------
100 /** supports faster access on well known properties by using index
102 interface com
::sun
::star
::beans
::XFastPropertySet
;
104 //-------------------------------------------------------------------------
105 /** provides access to the user fields, which (instead to the user fields set
106 by the interface XDocumentInfo) will be typesafe.
109 These fields are additional to normal properties (see below) and
110 additional to the user fields set by the interface XDocumentInfo (see before).
113 [optional] interface com
::sun
::star
::beans
::XPropertyContainer
;
115 //-------------------------------------------------------------------------
116 /** contains the intial author of the document
118 [property
] string Author
;
120 //-------------------------------------------------------------------------
123 [property
] boolean AutoloadEnabled
;
125 //-------------------------------------------------------------------------
126 /** contains the number of seconds after which a specified
127 URL is to be loaded after the document is loaded into a desktop
130 [property
] long AutoloadSecs
;
132 //-------------------------------------------------------------------------
133 /** contains the URL to load automatically after a
134 specified time after the document is loaded into a desktop frame
136 [property
] string AutoloadURL
;
138 //-------------------------------------------------------------------------
139 /** contains the date and time of the first time the
142 [property
] com
::sun
::star
::util
::DateTime CreationDate
;
144 //-------------------------------------------------------------------------
145 /** contains the name of the default frame into which
146 links should be loaded if no target is specified
149 This applies to the autoload feature too, but to others as well.
152 [property
] string DefaultTarget
;
154 //-------------------------------------------------------------------------
155 /** contains a multi-line comment of the document
158 Line delimiters can be UNIX, Macintosh or DOS style.
161 [property
] string Description
;
163 //-------------------------------------------------------------------------
164 /** contains some statistics about the document
167 The exact name and type of the values depends on the document type
170 [property
] sequence
< com
::sun
::star
::beans
::NamedValue
> DocumentStatistic
;
172 //-------------------------------------------------------------------------
173 /** describes how often the document was edited and saved
175 [property
] short EditingCycles
;
177 //-------------------------------------------------------------------------
178 /** contains the net time of editing the document (in seconds)
180 [property
] long EditingDuration
;
182 //-------------------------------------------------------------------------
183 /** identifies application was used to create or last modify the document
185 [property
] string Generator
;
187 //-------------------------------------------------------------------------
188 /** contains a comma separated list of keywords for
191 [property
] string Keywords
;
193 //-------------------------------------------------------------------------
194 /** contains the MIME-type of the document's resource
197 The MIME-type is neither stored in the document information nor in
198 the document; it is sent within a protocol header or is
199 detected, thus it cannot be changed.
202 [readonly, property
] string MIMEType
;
204 //-------------------------------------------------------------------------
205 /** default language of the document
207 [property
] com
::sun
::star
::lang
::Locale Language
;
209 //-------------------------------------------------------------------------
210 /** contains the name of the editor who was the last
211 person to store this document
213 [property
] string ModifiedBy
;
215 //-------------------------------------------------------------------------
216 /** contains the date and time of the last time the
219 [property
] com
::sun
::star
::util
::DateTime ModifyDate
;
221 //-------------------------------------------------------------------------
222 /** contains the date and time of when the document was
225 [property
] com
::sun
::star
::util
::DateTime PrintDate
;
227 //-------------------------------------------------------------------------
228 /** contains the name of the editor who was the last
229 person to print the document
231 [property
] string PrintedBy
;
233 //-------------------------------------------------------------------------
234 /** subject of document
236 [property
] string Subject
;
238 //-------------------------------------------------------------------------
239 /** contains logical name of the template from
240 which the document was created
243 The value is an empty string if the document was not created
244 from a template or if it was detached from the template.
247 [property
] string Template
;
249 //-------------------------------------------------------------------------
250 /** contains the file path name of the template from
251 which the document was created
253 [property
] string TemplateFileName
;
255 //-------------------------------------------------------------------------
256 /** contains the date and time of when the document
257 was created or updated from the template
259 [property
] com
::sun
::star
::util
::DateTime TemplateDate
;
261 //-------------------------------------------------------------------------
262 /** contains the title of the document
264 [property
] string Title
;
268 //=============================================================================