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: XDocument.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 ************************************************************************/
31 #ifndef __ooo_vba_XDocumentProperty_idl__
32 #define __ooo_vba_XDocumentProperty_idl__
34 #ifndef __com_sun_star_script_BasicErrorException_idl__
35 #include
<com
/sun
/star
/script
/BasicErrorException.idl
>
37 #ifndef __com_sun_star_script_XDefaultProperty_idl__
38 #include
<com
/sun
/star
/script
/XDefaultProperty.idl
>
40 #ifndef __ooo_vba_XHelperInterface_idl__
41 #include
<ooo
/vba
/XHelperInterface.idl
>
44 module ooo
{ module vba
{
47 * Specific built-in document property. Use CustomDocumentProperties(index),
48 * where index is the name or index number of the custom document property,
49 * to return a DocumentProperty object that represents a specific custom document property.
51 interface XDocumentProperty
54 interface com
::sun
::star
::script
::XDefaultProperty
;
55 interface ooo
::vba
::XHelperInterface
;
58 raises
(com
::sun
::star
::script
::BasicErrorException
);
60 /** Required String. The name of the property.
63 raises
(com
::sun
::star
::script
::BasicErrorException
);
65 void setName
([in] string Name
)
66 raises
(com
::sun
::star
::script
::BasicErrorException
);
68 /** The data type of the property.
69 * Can be one of the following MsoDocProperties constants:
70 * msoPropertyTypeBoolean, msoPropertyTypeDate, msoPropertyTypeFloat,
71 * msoPropertyTypeNumber, or msoPropertyTypeString.
74 raises
(com
::sun
::star
::script
::BasicErrorException
);
76 void setType
([in] byte Type
)
77 raises
(com
::sun
::star
::script
::BasicErrorException
);
79 /** If true, then LinkSource has a valid value. */
80 boolean getLinkToContent
()
81 raises
(com
::sun
::star
::script
::BasicErrorException
);
83 void setLinkToContent
([in] boolean LinkToContent
)
84 raises
(com
::sun
::star
::script
::BasicErrorException
);
86 /** If LinkToContent is false, then this contains the value of the property
87 * The data type of the value will match the Type property.
90 raises
(com
::sun
::star
::script
::BasicErrorException
);
92 void setValue
([in] any Value
)
93 raises
(com
::sun
::star
::script
::BasicErrorException
);
95 /** If LinkToContent is false, then this contains the value of the property */
96 string getLinkSource
()
97 raises
(com
::sun
::star
::script
::BasicErrorException
);
99 void setLinkSource
([in] string LinkSource
)
100 raises
(com
::sun
::star
::script
::BasicErrorException
);