1*ad7bc010SAndrew Rist/************************************************************** 2cdf0e10cSrcweir * 3*ad7bc010SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*ad7bc010SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*ad7bc010SAndrew Rist * distributed with this work for additional information 6*ad7bc010SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*ad7bc010SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*ad7bc010SAndrew Rist * "License"); you may not use this file except in compliance 9*ad7bc010SAndrew Rist * with the License. You may obtain a copy of the License at 10*ad7bc010SAndrew Rist * 11*ad7bc010SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*ad7bc010SAndrew Rist * 13*ad7bc010SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*ad7bc010SAndrew Rist * software distributed under the License is distributed on an 15*ad7bc010SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*ad7bc010SAndrew Rist * KIND, either express or implied. See the License for the 17*ad7bc010SAndrew Rist * specific language governing permissions and limitations 18*ad7bc010SAndrew Rist * under the License. 19*ad7bc010SAndrew Rist * 20*ad7bc010SAndrew Rist *************************************************************/ 21*ad7bc010SAndrew Rist 22*ad7bc010SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir#ifndef __ooo_vba_XDocumentProperty_idl__ 25cdf0e10cSrcweir#define __ooo_vba_XDocumentProperty_idl__ 26cdf0e10cSrcweir 27cdf0e10cSrcweir#ifndef __com_sun_star_script_BasicErrorException_idl__ 28cdf0e10cSrcweir#include <com/sun/star/script/BasicErrorException.idl> 29cdf0e10cSrcweir#endif 30cdf0e10cSrcweir#ifndef __com_sun_star_script_XDefaultProperty_idl__ 31cdf0e10cSrcweir#include <com/sun/star/script/XDefaultProperty.idl> 32cdf0e10cSrcweir#endif 33cdf0e10cSrcweir#ifndef __ooo_vba_XHelperInterface_idl__ 34cdf0e10cSrcweir#include <ooo/vba/XHelperInterface.idl> 35cdf0e10cSrcweir#endif 36cdf0e10cSrcweir 37cdf0e10cSrcweirmodule ooo { module vba { 38cdf0e10cSrcweir 39cdf0e10cSrcweir/** 40cdf0e10cSrcweir * Specific built-in document property. Use CustomDocumentProperties(index), 41cdf0e10cSrcweir * where index is the name or index number of the custom document property, 42cdf0e10cSrcweir * to return a DocumentProperty object that represents a specific custom document property. 43cdf0e10cSrcweir */ 44cdf0e10cSrcweirinterface XDocumentProperty 45cdf0e10cSrcweir{ 46cdf0e10cSrcweir 47cdf0e10cSrcweir interface com::sun::star::script::XDefaultProperty; 48cdf0e10cSrcweir interface ooo::vba::XHelperInterface; 49cdf0e10cSrcweir 50cdf0e10cSrcweir void Delete() 51cdf0e10cSrcweir raises (com::sun::star::script::BasicErrorException); 52cdf0e10cSrcweir 53cdf0e10cSrcweir /** Required String. The name of the property. 54cdf0e10cSrcweir */ 55cdf0e10cSrcweir string getName() 56cdf0e10cSrcweir raises (com::sun::star::script::BasicErrorException); 57cdf0e10cSrcweir 58cdf0e10cSrcweir void setName([in] string Name) 59cdf0e10cSrcweir raises (com::sun::star::script::BasicErrorException); 60cdf0e10cSrcweir 61cdf0e10cSrcweir /** The data type of the property. 62cdf0e10cSrcweir * Can be one of the following MsoDocProperties constants: 63cdf0e10cSrcweir * msoPropertyTypeBoolean, msoPropertyTypeDate, msoPropertyTypeFloat, 64cdf0e10cSrcweir * msoPropertyTypeNumber, or msoPropertyTypeString. 65cdf0e10cSrcweir */ 66cdf0e10cSrcweir byte getType() 67cdf0e10cSrcweir raises (com::sun::star::script::BasicErrorException); 68cdf0e10cSrcweir 69cdf0e10cSrcweir void setType([in] byte Type) 70cdf0e10cSrcweir raises (com::sun::star::script::BasicErrorException); 71cdf0e10cSrcweir 72cdf0e10cSrcweir /** If true, then LinkSource has a valid value. */ 73cdf0e10cSrcweir boolean getLinkToContent() 74cdf0e10cSrcweir raises (com::sun::star::script::BasicErrorException); 75cdf0e10cSrcweir 76cdf0e10cSrcweir void setLinkToContent([in] boolean LinkToContent) 77cdf0e10cSrcweir raises (com::sun::star::script::BasicErrorException); 78cdf0e10cSrcweir 79cdf0e10cSrcweir /** If LinkToContent is false, then this contains the value of the property 80cdf0e10cSrcweir * The data type of the value will match the Type property. 81cdf0e10cSrcweir */ 82cdf0e10cSrcweir any getValue() 83cdf0e10cSrcweir raises (com::sun::star::script::BasicErrorException); 84cdf0e10cSrcweir 85cdf0e10cSrcweir void setValue([in] any Value) 86cdf0e10cSrcweir raises (com::sun::star::script::BasicErrorException); 87cdf0e10cSrcweir 88cdf0e10cSrcweir /** If LinkToContent is false, then this contains the value of the property */ 89cdf0e10cSrcweir string getLinkSource() 90cdf0e10cSrcweir raises (com::sun::star::script::BasicErrorException); 91cdf0e10cSrcweir 92cdf0e10cSrcweir void setLinkSource([in] string LinkSource) 93cdf0e10cSrcweir raises (com::sun::star::script::BasicErrorException); 94cdf0e10cSrcweir}; 95cdf0e10cSrcweir 96cdf0e10cSrcweir}; }; 97cdf0e10cSrcweir 98cdf0e10cSrcweir#endif 99cdf0e10cSrcweir 100