1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XDocumentInfo.idl,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_document_XDocumentInfo_idl__
31 #define __com_sun_star_document_XDocumentInfo_idl__
33 #ifndef __com_sun_star_uno_XInterface_idl__
34 #include
<com
/sun
/star
/uno
/XInterface.idl
>
37 #ifndef __com_sun_star_lang_ArrayIndexOutOfBoundsException_idl__
38 #include
<com
/sun
/star
/lang
/ArrayIndexOutOfBoundsException.idl
>
41 //=============================================================================
43 module com
{ module sun
{ module star
{ module document
{
45 //=============================================================================
46 /** provides access to the user fields for the information regarding the
50 These fields are special one of the set of available document properties.
51 Other ones are accessed as properties (by using the interface
52 <type scope="com::sun::star::beans">XPropertySet</type>) of service
53 <type>DocumentInfo</type>.
56 @deprecated Use <type>XDocumentProperties</type> instead.
59 @see StandaloneDocumentInfo
60 @see com::sun::star::beans::XPropertySet
62 published
interface XDocumentInfo
: com
::sun
::star
::uno
::XInterface
64 //-------------------------------------------------------------------------
65 /** provides information about count of available fields
68 This count marks the top range of possible requests for get/set
69 any of these fields. Range = [0..count-1]
75 short getUserFieldCount
();
77 //-------------------------------------------------------------------------
78 /** returns the name of an user field
81 specifies the position of requested field
85 the name of the requested field
87 @throws com::sun::star::lang::ArrayIndexOutOfBoundsException
88 if <var>Index</var> don't fit range of [0..count-1]
90 string getUserFieldName
( [in] short Index
)
91 raises
( com
::sun
::star
::lang
::ArrayIndexOutOfBoundsException
);
93 //-------------------------------------------------------------------------
94 /** returns the value of an user field
97 specifies the position of requested field
101 the value of the requested field
103 @throws com::sun::star::lang::ArrayIndexOutOfBoundsException
104 if <var>Index</var> don't fit range of [0..count-1]
106 string getUserFieldValue
( [in] short Index
)
107 raises
( com
::sun
::star
::lang
::ArrayIndexOutOfBoundsException
);
109 //-------------------------------------------------------------------------
110 /** changes the name of one of the user fields
113 specifies the position of requested field
117 the new name for this field to be set
119 @throws com::sun::star::lang::ArrayIndexOutOfBoundsException
120 if <var>Index</var> don't fit range of [0..count-1]
122 void setUserFieldName
(
125 raises
( com
::sun
::star
::lang
::ArrayIndexOutOfBoundsException
);
127 //-------------------------------------------------------------------------
128 /** changes the value of one of the user fields
131 specifies the position of requested field
135 the new value for this field to be set
137 @throws com::sun::star::lang::ArrayIndexOutOfBoundsException
138 if <var>Index</var> don't fit range of [0..count-1]
140 void setUserFieldValue
(
143 raises
( com
::sun
::star
::lang
::ArrayIndexOutOfBoundsException
);
146 //=============================================================================