1/************************************************************************* 2 * 3 * The Contents of this file are made available subject to the terms of 4 * the BSD license. 5 * 6 * Copyright 2000, 2010 Oracle and/or its affiliates. 7 * All rights reserved. 8 * 9 * Redistribution and use in source and binary forms, with or without 10 * modification, are permitted provided that the following conditions 11 * are met: 12 * 1. Redistributions of source code must retain the above copyright 13 * notice, this list of conditions and the following disclaimer. 14 * 2. Redistributions in binary form must reproduce the above copyright 15 * notice, this list of conditions and the following disclaimer in the 16 * documentation and/or other materials provided with the distribution. 17 * 3. Neither the name of Sun Microsystems, Inc. nor the names of its 18 * contributors may be used to endorse or promote products derived 19 * from this software without specific prior written permission. 20 * 21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 24 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 25 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 26 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 27 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 28 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 29 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR 30 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE 31 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 * 33 *************************************************************************/ 34#ifndef INCLUDED_ORG_OPENOFFICE_SHEET_ADDIN_XCALCADDIN_IDL 35#define INCLUDED_ORG_OPENOFFICE_SHEET_ADDIN_XCALCADDIN_IDL 36 37#include <com/sun/star/beans/XPropertySet.idl> 38#include <com/sun/star/sheet/AddIn.idl> 39 40 41module org { 42 module openoffice { 43 module sheet { 44 module addin { 45 /** Interface with your additional methods. 46 47 You may declare several methods. Each method may have 48 any number of arguments after xOptions. 49 Furthermore, you could replace the name of the service and 50 the interface, but only if you want to replace this name in all 51 your project files. This example will work with tNeccessaryhe default 52 names. 53 Interface names should start with an X prefix. 54 */ 55 interface XCalcAddins 56 { 57 /** Declare your methods: 58 This is where you could add the declarations of your methods. 59 If you want to learn more about 60 the IDL syntax including the base types, you could 61 visit the following web page: 62 http://www.openoffice.org/project/udk/common/man/idl_syntax.html . 63 */ 64 long getMyFirstValue( 65 /** Parameters: 66 You could insert further arguments after the 67 parameter xOptions. 68 */ 69 [in] com::sun::star::beans::XPropertySet xOptions 70 ); 71 72 long getMySecondValue( 73 /** Parameters: 74 You could insert further arguments after the 75 parameter xOptions. 76 */ 77 [in] com::sun::star::beans::XPropertySet xOptions, 78 [in] long intDummy 79 ); 80 }; 81 82 service CalcAddins 83 { 84 /** Exported interfaces: 85 This is where you put all interfaces that this service exports. The service 86 supports its main interface only. 87 */ 88 interface XCalcAddins; 89 90 /** Necessary base service. 91 All add-ins must implement this service 92 */ 93 service com::sun::star::sheet::AddIn; 94 }; 95 }; 96 }; 97 }; 98}; 99 100#endif 101