Version 4.0.2.1, tag libreoffice-4.0.2.1
[LibreOffice.git] / oovbaapi / ooo / vba / XDocumentProperty.idl
blobcb36aeec849f0a544f4051d105afba6362af471b
1 /*
2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 * This file incorporates work covered by the following license notice:
10 * Licensed to the Apache Software Foundation (ASF) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License, Version 2.0 (the "License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef __ooo_vba_XDocumentProperty_idl__
20 #define __ooo_vba_XDocumentProperty_idl__
22 #include <com/sun/star/script/BasicErrorException.idl>
23 #include <com/sun/star/script/XDefaultProperty.idl>
24 #include <ooo/vba/XHelperInterface.idl>
26 module ooo { module vba {
28 /**
29 * Specific built-in document property. Use CustomDocumentProperties(index),
30 * where index is the name or index number of the custom document property,
31 * to return a DocumentProperty object that represents a specific custom document property.
33 interface XDocumentProperty
36 interface com::sun::star::script::XDefaultProperty;
37 interface ooo::vba::XHelperInterface;
39 void Delete()
40 raises (com::sun::star::script::BasicErrorException);
42 /** Required String. The name of the property.
44 string getName()
45 raises (com::sun::star::script::BasicErrorException);
47 void setName([in] string Name)
48 raises (com::sun::star::script::BasicErrorException);
50 /** The data type of the property.
51 * Can be one of the following MsoDocProperties constants:
52 * msoPropertyTypeBoolean, msoPropertyTypeDate, msoPropertyTypeFloat,
53 * msoPropertyTypeNumber, or msoPropertyTypeString.
55 byte getType()
56 raises (com::sun::star::script::BasicErrorException);
58 void setType([in] byte Type)
59 raises (com::sun::star::script::BasicErrorException);
61 /** If true, then LinkSource has a valid value. */
62 boolean getLinkToContent()
63 raises (com::sun::star::script::BasicErrorException);
65 void setLinkToContent([in] boolean LinkToContent)
66 raises (com::sun::star::script::BasicErrorException);
68 /** If LinkToContent is false, then this contains the value of the property
69 * The data type of the value will match the Type property.
71 any getValue()
72 raises (com::sun::star::script::BasicErrorException);
74 void setValue([in] any Value)
75 raises (com::sun::star::script::BasicErrorException);
77 /** If LinkToContent is false, then this contains the value of the property */
78 string getLinkSource()
79 raises (com::sun::star::script::BasicErrorException);
81 void setLinkSource([in] string LinkSource)
82 raises (com::sun::star::script::BasicErrorException);
85 }; };
87 #endif