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