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_document_DocumentInfo_idl__ 28*cdf0e10cSrcweir#define __com_sun_star_document_DocumentInfo_idl__ 29*cdf0e10cSrcweir 30*cdf0e10cSrcweir#ifndef __com_sun_star_document_XDocumentInfo_idl__ 31*cdf0e10cSrcweir#include <com/sun/star/document/XDocumentInfo.idl> 32*cdf0e10cSrcweir#endif 33*cdf0e10cSrcweir 34*cdf0e10cSrcweir#ifndef __com_sun_star_lang_XComponent_idl__ 35*cdf0e10cSrcweir#include <com/sun/star/lang/XComponent.idl> 36*cdf0e10cSrcweir#endif 37*cdf0e10cSrcweir 38*cdf0e10cSrcweir#ifndef __com_sun_star_beans_XPropertySet_idl__ 39*cdf0e10cSrcweir#include <com/sun/star/beans/XPropertySet.idl> 40*cdf0e10cSrcweir#endif 41*cdf0e10cSrcweir 42*cdf0e10cSrcweir#ifndef __com_sun_star_beans_XFastPropertySet_idl__ 43*cdf0e10cSrcweir#include <com/sun/star/beans/XFastPropertySet.idl> 44*cdf0e10cSrcweir#endif 45*cdf0e10cSrcweir 46*cdf0e10cSrcweir#ifndef __com_sun_star_beans_XPropertyContainer_idl__ 47*cdf0e10cSrcweir#include <com/sun/star/beans/XPropertyContainer.idl> 48*cdf0e10cSrcweir#endif 49*cdf0e10cSrcweir 50*cdf0e10cSrcweir#ifndef __com_sun_star_beans_NamedValue_idl__ 51*cdf0e10cSrcweir#include <com/sun/star/beans/NamedValue.idl> 52*cdf0e10cSrcweir#endif 53*cdf0e10cSrcweir#ifndef __com_sun_star_util_DateTime_idl__ 54*cdf0e10cSrcweir#include <com/sun/star/util/DateTime.idl> 55*cdf0e10cSrcweir#endif 56*cdf0e10cSrcweir 57*cdf0e10cSrcweir#ifndef __com_sun_star_lang_Locale_idl__ 58*cdf0e10cSrcweir#include <com/sun/star/lang/Locale.idl> 59*cdf0e10cSrcweir#endif 60*cdf0e10cSrcweir 61*cdf0e10cSrcweir//============================================================================= 62*cdf0e10cSrcweir 63*cdf0e10cSrcweir module com { module sun { module star { module document { 64*cdf0e10cSrcweir 65*cdf0e10cSrcweir//============================================================================= 66*cdf0e10cSrcweir/** this service provides document-specific information like the 67*cdf0e10cSrcweir author, creation date and user fields 68*cdf0e10cSrcweir 69*cdf0e10cSrcweir <p> 70*cdf0e10cSrcweir Contrary to the service <type>StandaloneDocumentInfo</type> the document - which 71*cdf0e10cSrcweir contains such informations - must be loaded completly. As a result of that this 72*cdf0e10cSrcweir DocumengInfo service is available on an open document via the interface 73*cdf0e10cSrcweir <type>XDocumentInfoSupplier</type> only. 74*cdf0e10cSrcweir </p> 75*cdf0e10cSrcweir 76*cdf0e10cSrcweir @deprecated Use <type>DocumentProperties</type> instead. 77*cdf0e10cSrcweir 78*cdf0e10cSrcweir @see StandaloneDocumentInfo 79*cdf0e10cSrcweir @see XDocumentInfoSupplier 80*cdf0e10cSrcweir */ 81*cdf0e10cSrcweirpublished service DocumentInfo 82*cdf0e10cSrcweir{ 83*cdf0e10cSrcweir //------------------------------------------------------------------------- 84*cdf0e10cSrcweir /** provides access to the user fields for the information regarding the 85*cdf0e10cSrcweir document 86*cdf0e10cSrcweir 87*cdf0e10cSrcweir <p> 88*cdf0e10cSrcweir These fields are additional to normal properties. 89*cdf0e10cSrcweir (see below) 90*cdf0e10cSrcweir </p> 91*cdf0e10cSrcweir */ 92*cdf0e10cSrcweir interface XDocumentInfo; 93*cdf0e10cSrcweir 94*cdf0e10cSrcweir //------------------------------------------------------------------------- 95*cdf0e10cSrcweir /** neccessary to support normal properties 96*cdf0e10cSrcweir */ 97*cdf0e10cSrcweir interface com::sun::star::beans::XPropertySet; 98*cdf0e10cSrcweir 99*cdf0e10cSrcweir //------------------------------------------------------------------------- 100*cdf0e10cSrcweir /** supports faster access on well known properties by using index 101*cdf0e10cSrcweir */ 102*cdf0e10cSrcweir interface com::sun::star::beans::XFastPropertySet; 103*cdf0e10cSrcweir 104*cdf0e10cSrcweir //------------------------------------------------------------------------- 105*cdf0e10cSrcweir /** provides access to the user fields, which (instead to the user fields set 106*cdf0e10cSrcweir by the interface XDocumentInfo) will be typesafe. 107*cdf0e10cSrcweir 108*cdf0e10cSrcweir <p> 109*cdf0e10cSrcweir These fields are additional to normal properties (see below) and 110*cdf0e10cSrcweir additional to the user fields set by the interface XDocumentInfo (see before). 111*cdf0e10cSrcweir </p> 112*cdf0e10cSrcweir */ 113*cdf0e10cSrcweir [optional] interface com::sun::star::beans::XPropertyContainer; 114*cdf0e10cSrcweir 115*cdf0e10cSrcweir //------------------------------------------------------------------------- 116*cdf0e10cSrcweir /** contains the intial author of the document 117*cdf0e10cSrcweir */ 118*cdf0e10cSrcweir [property] string Author; 119*cdf0e10cSrcweir 120*cdf0e10cSrcweir //------------------------------------------------------------------------- 121*cdf0e10cSrcweir /** @deprecated 122*cdf0e10cSrcweir */ 123*cdf0e10cSrcweir [property] boolean AutoloadEnabled; 124*cdf0e10cSrcweir 125*cdf0e10cSrcweir //------------------------------------------------------------------------- 126*cdf0e10cSrcweir /** contains the number of seconds after which a specified 127*cdf0e10cSrcweir URL is to be loaded after the document is loaded into a desktop 128*cdf0e10cSrcweir frame 129*cdf0e10cSrcweir */ 130*cdf0e10cSrcweir [property] long AutoloadSecs; 131*cdf0e10cSrcweir 132*cdf0e10cSrcweir //------------------------------------------------------------------------- 133*cdf0e10cSrcweir /** contains the URL to load automatically after a 134*cdf0e10cSrcweir specified time after the document is loaded into a desktop frame 135*cdf0e10cSrcweir */ 136*cdf0e10cSrcweir [property] string AutoloadURL; 137*cdf0e10cSrcweir 138*cdf0e10cSrcweir //------------------------------------------------------------------------- 139*cdf0e10cSrcweir /** contains the date and time of the first time the 140*cdf0e10cSrcweir document was stored 141*cdf0e10cSrcweir */ 142*cdf0e10cSrcweir [property] com::sun::star::util::DateTime CreationDate; 143*cdf0e10cSrcweir 144*cdf0e10cSrcweir //------------------------------------------------------------------------- 145*cdf0e10cSrcweir /** contains the name of the default frame into which 146*cdf0e10cSrcweir links should be loaded if no target is specified 147*cdf0e10cSrcweir 148*cdf0e10cSrcweir <p> 149*cdf0e10cSrcweir This applies to the autoload feature too, but to others as well. 150*cdf0e10cSrcweir </p> 151*cdf0e10cSrcweir */ 152*cdf0e10cSrcweir [property] string DefaultTarget; 153*cdf0e10cSrcweir 154*cdf0e10cSrcweir //------------------------------------------------------------------------- 155*cdf0e10cSrcweir /** contains a multi-line comment of the document 156*cdf0e10cSrcweir 157*cdf0e10cSrcweir <p> 158*cdf0e10cSrcweir Line delimiters can be UNIX, Macintosh or DOS style. 159*cdf0e10cSrcweir </p> 160*cdf0e10cSrcweir */ 161*cdf0e10cSrcweir [property] string Description; 162*cdf0e10cSrcweir 163*cdf0e10cSrcweir //------------------------------------------------------------------------- 164*cdf0e10cSrcweir /** contains some statistics about the document 165*cdf0e10cSrcweir 166*cdf0e10cSrcweir <p> 167*cdf0e10cSrcweir The exact name and type of the values depends on the document type 168*cdf0e10cSrcweir </p> 169*cdf0e10cSrcweir */ 170*cdf0e10cSrcweir [property] sequence< com::sun::star::beans::NamedValue > DocumentStatistic; 171*cdf0e10cSrcweir 172*cdf0e10cSrcweir //------------------------------------------------------------------------- 173*cdf0e10cSrcweir /** describes how often the document was edited and saved 174*cdf0e10cSrcweir */ 175*cdf0e10cSrcweir [property] short EditingCycles; 176*cdf0e10cSrcweir 177*cdf0e10cSrcweir //------------------------------------------------------------------------- 178*cdf0e10cSrcweir /** contains the net time of editing the document (in seconds) 179*cdf0e10cSrcweir */ 180*cdf0e10cSrcweir [property] long EditingDuration; 181*cdf0e10cSrcweir 182*cdf0e10cSrcweir //------------------------------------------------------------------------- 183*cdf0e10cSrcweir /** identifies application was used to create or last modify the document 184*cdf0e10cSrcweir */ 185*cdf0e10cSrcweir [property] string Generator; 186*cdf0e10cSrcweir 187*cdf0e10cSrcweir //------------------------------------------------------------------------- 188*cdf0e10cSrcweir /** contains a comma separated list of keywords for 189*cdf0e10cSrcweir the document 190*cdf0e10cSrcweir */ 191*cdf0e10cSrcweir [property] string Keywords; 192*cdf0e10cSrcweir 193*cdf0e10cSrcweir //------------------------------------------------------------------------- 194*cdf0e10cSrcweir /** contains the MIME-type of the document's resource 195*cdf0e10cSrcweir 196*cdf0e10cSrcweir <p> 197*cdf0e10cSrcweir The MIME-type is neither stored in the document information nor in 198*cdf0e10cSrcweir the document; it is sent within a protocol header or is 199*cdf0e10cSrcweir detected, thus it cannot be changed. 200*cdf0e10cSrcweir </p> 201*cdf0e10cSrcweir */ 202*cdf0e10cSrcweir [readonly, property] string MIMEType; 203*cdf0e10cSrcweir 204*cdf0e10cSrcweir //------------------------------------------------------------------------- 205*cdf0e10cSrcweir /** default language of the document 206*cdf0e10cSrcweir */ 207*cdf0e10cSrcweir [property] com::sun::star::lang::Locale Language; 208*cdf0e10cSrcweir 209*cdf0e10cSrcweir //------------------------------------------------------------------------- 210*cdf0e10cSrcweir /** contains the name of the editor who was the last 211*cdf0e10cSrcweir person to store this document 212*cdf0e10cSrcweir */ 213*cdf0e10cSrcweir [property] string ModifiedBy; 214*cdf0e10cSrcweir 215*cdf0e10cSrcweir //------------------------------------------------------------------------- 216*cdf0e10cSrcweir /** contains the date and time of the last time the 217*cdf0e10cSrcweir document was stored 218*cdf0e10cSrcweir */ 219*cdf0e10cSrcweir [property] com::sun::star::util::DateTime ModifyDate; 220*cdf0e10cSrcweir 221*cdf0e10cSrcweir //------------------------------------------------------------------------- 222*cdf0e10cSrcweir /** contains the date and time of when the document was 223*cdf0e10cSrcweir last printed 224*cdf0e10cSrcweir */ 225*cdf0e10cSrcweir [property] com::sun::star::util::DateTime PrintDate; 226*cdf0e10cSrcweir 227*cdf0e10cSrcweir //------------------------------------------------------------------------- 228*cdf0e10cSrcweir /** contains the name of the editor who was the last 229*cdf0e10cSrcweir person to print the document 230*cdf0e10cSrcweir */ 231*cdf0e10cSrcweir [property] string PrintedBy; 232*cdf0e10cSrcweir 233*cdf0e10cSrcweir //------------------------------------------------------------------------- 234*cdf0e10cSrcweir /** subject of document 235*cdf0e10cSrcweir */ 236*cdf0e10cSrcweir [property] string Subject; 237*cdf0e10cSrcweir 238*cdf0e10cSrcweir //------------------------------------------------------------------------- 239*cdf0e10cSrcweir /** contains logical name of the template from 240*cdf0e10cSrcweir which the document was created 241*cdf0e10cSrcweir 242*cdf0e10cSrcweir <p> 243*cdf0e10cSrcweir The value is an empty string if the document was not created 244*cdf0e10cSrcweir from a template or if it was detached from the template. 245*cdf0e10cSrcweir </p> 246*cdf0e10cSrcweir */ 247*cdf0e10cSrcweir [property] string Template; 248*cdf0e10cSrcweir 249*cdf0e10cSrcweir //------------------------------------------------------------------------- 250*cdf0e10cSrcweir /** contains the file path name of the template from 251*cdf0e10cSrcweir which the document was created 252*cdf0e10cSrcweir */ 253*cdf0e10cSrcweir [property] string TemplateFileName; 254*cdf0e10cSrcweir 255*cdf0e10cSrcweir //------------------------------------------------------------------------- 256*cdf0e10cSrcweir /** contains the date and time of when the document 257*cdf0e10cSrcweir was created or updated from the template 258*cdf0e10cSrcweir */ 259*cdf0e10cSrcweir [property] com::sun::star::util::DateTime TemplateDate; 260*cdf0e10cSrcweir 261*cdf0e10cSrcweir //------------------------------------------------------------------------- 262*cdf0e10cSrcweir /** contains the title of the document 263*cdf0e10cSrcweir */ 264*cdf0e10cSrcweir [property] string Title; 265*cdf0e10cSrcweir 266*cdf0e10cSrcweir}; 267*cdf0e10cSrcweir 268*cdf0e10cSrcweir//============================================================================= 269*cdf0e10cSrcweir 270*cdf0e10cSrcweir}; }; }; }; 271*cdf0e10cSrcweir 272*cdf0e10cSrcweir#endif 273