1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23#ifndef INCLUDED_ORG_OPENOFFICE_SHEET_ADDIN_XCALCADDIN_IDL
24#define INCLUDED_ORG_OPENOFFICE_SHEET_ADDIN_XCALCADDIN_IDL
25
26#include <com/sun/star/beans/XPropertySet.idl>
27#include <com/sun/star/sheet/AddIn.idl>
28
29
30module org {
31  module openoffice {
32      module sheet {
33        module addin {
34	  /** Interface with your additional methods.
35
36              You may declare several methods. Each method may have
37              any number of arguments after xOptions.
38              Furthermore, you could replace the name of the service and
39              the interface, but only if you want to replace this name in all
40              your project files. This example will work with tNeccessaryhe default
41              names.
42              Interface names should start with an X prefix.
43           */
44	  interface XCalcAddins
45	  {
46            /** Declare your methods:
47                This is where you could add the declarations of your methods.
48                If you want to learn more about
49                the IDL syntax including the base types, you could
50                visit the following web page:
51                http://www.openoffice.org/project/udk/common/man/idl_syntax.html .
52             */
53            long getMyFirstValue(
54                 /** Parameters:
55                     You could insert further arguments after the
56                     parameter xOptions.
57                  */
58                 [in] com::sun::star::beans::XPropertySet xOptions
59            );
60
61            long getMySecondValue(
62                 /** Parameters:
63                     You could insert further arguments after the
64                     parameter xOptions.
65                  */
66                 [in] com::sun::star::beans::XPropertySet xOptions,
67                 [in] long intDummy
68            );
69       };
70
71       service CalcAddins
72	   {
73            /** Exported interfaces:
74                This is where you put all interfaces that this service exports. The service
75                supports its main interface only.
76             */
77           interface XCalcAddins;
78
79           /** Necessary base service.
80               All add-ins must implement this service
81            */
82           service com::sun::star::sheet::AddIn;
83       };
84        };
85      };
86    };
87};
88
89#endif
90