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 __ooo_vba_excel_XApplication_idl__
24#define __ooo_vba_excel_XApplication_idl__
25
26#include <com/sun/star/beans/XExactName.idl>
27#include <com/sun/star/script/XInvocation.idl>
28#include <ooo/vba/XHelperInterface.idl>
29#include <ooo/vba/XAssistant.idl>
30
31module ooo {  module vba {  module excel {
32
33interface XRange;
34interface XWorkbook;
35interface XWorkbooks;
36interface XWorksheets;
37interface XWorksheetFunction;
38interface XWindow;
39interface XWorksheet;
40
41interface XApplication
42{
43    // Application serves as WorksheetFunction object with little differences
44    interface ::com::sun::star::beans::XExactName;
45    interface ::com::sun::star::script::XInvocation;
46
47//	interface ::ooo::vba::XHelperInterface;
48
49	[attribute, readonly] any Selection;
50	[attribute, readonly] XWorkbook ActiveWorkbook;
51	[attribute, readonly] XRange ActiveCell;
52	[attribute, readonly] XWindow ActiveWindow;
53	[attribute, readonly] XWorksheet ActiveSheet;
54    [attribute, readonly] ooo::vba::XAssistant Assistant;
55	[attribute] long Calculation;
56	[attribute, readonly] XWorkbook ThisWorkbook;
57	[attribute, readonly] string Name;
58	[attribute] boolean DisplayAlerts;
59	[attribute] boolean DisplayFormulaBar;
60	[attribute] any CutCopyMode;
61	[attribute] any StatusBar;
62	[attribute] long Cursor;
63    [attribute] boolean EnableEvents;
64    [attribute] string DefaultFilePath;
65    [attribute, readonly] string LibraryPath;
66    [attribute, readonly] string TemplatesPath;
67    [attribute, readonly] string PathSeparator;
68
69    //any CommandBars( [in] any Index );
70	any Workbooks( [in] any Index );
71	any Worksheets( [in] any Index );
72	any Windows( [in] any Index );
73	any WorksheetFunction();
74	any Evaluate( [in] string Name );
75	any Dialogs( [in] any DialogIndex );
76	any Range( [in] any Cell1, [in] any Cell2 );
77	any Names( [in] any Index );
78	void GoTo( [in] any Reference, [in] any Scroll );
79
80	void wait( [in] double time );
81	void Calculate() raises(com::sun::star::script::BasicErrorException);
82	XRange Intersect([in] XRange Arg1, [in] XRange Arg2, [in] /*Optional*/ any Arg3, [in] /*Optional*/ any Arg4, [in] /*Optional*/ any Arg5, [in] /*Optional*/ any Arg6, [in] /*Optional*/ any Arg7, [in] /*Optional*/ any Arg8, [in] /*Optional*/ any Arg9, [in] /*Optional*/ any Arg10, [in] /*Optional*/ any Arg11, [in] /*Optional*/ any Arg12, [in] /*Optional*/ any Arg13, [in] /*Optional*/ any Arg14, [in] /*Optional*/ any Arg15, [in] /*Optional*/ any Arg16, [in] /*Optional*/ any Arg17, [in] /*Optional*/ any Arg18, [in] /*Optional*/ any Arg19, [in] /*Optional*/ any Arg20, [in] /*Optional*/ any Arg21, [in] /*Optional*/ any Arg22, [in] /*Optional*/ any Arg23, [in] /*Optional*/ any Arg24, [in] /*Optional*/ any Arg25, [in] /*Optional*/ any Arg26, [in] /*Optional*/ any Arg27, [in] /*Optional*/ any Arg28, [in] /*Optional*/ any Arg29, [in] /*Optional*/ any Arg30)
83        raises(com::sun::star::script::BasicErrorException);
84	XRange Union([in] XRange Arg1, [in] XRange Arg2, [in] /*Optional*/ any Arg3, [in] /*Optional*/ any Arg4, [in] /*Optional*/ any Arg5, [in] /*Optional*/ any Arg6, [in] /*Optional*/ any Arg7, [in] /*Optional*/ any Arg8, [in] /*Optional*/ any Arg9, [in] /*Optional*/ any Arg10, [in] /*Optional*/ any Arg11, [in] /*Optional*/ any Arg12, [in] /*Optional*/ any Arg13, [in] /*Optional*/ any Arg14, [in] /*Optional*/ any Arg15, [in] /*Optional*/ any Arg16, [in] /*Optional*/ any Arg17, [in] /*Optional*/ any Arg18, [in] /*Optional*/ any Arg19, [in] /*Optional*/ any Arg20, [in] /*Optional*/ any Arg21, [in] /*Optional*/ any Arg22, [in] /*Optional*/ any Arg23, [in] /*Optional*/ any Arg24, [in] /*Optional*/ any Arg25, [in] /*Optional*/ any Arg26, [in] /*Optional*/ any Arg27, [in] /*Optional*/ any Arg28, [in] /*Optional*/ any Arg29, [in] /*Optional*/ any Arg30)
85        raises(com::sun::star::script::BasicErrorException);
86	void Volatile([in] any Volatile);
87	void DoEvents();
88	any Caller( [in] any Index );
89	any GetOpenFilename( [in] any FileFilter, [in] any FilterIndex, [in] any Title, [in] any ButtonText, [in] any MultiSelect );
90	any GetSaveAsFilename( [in] any InitialFileName, [in] any FileFilter, [in] any FilterIndex, [in] any Title, [in] any ButtonText );
91};
92
93}; }; };
94
95#endif
96