1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 *   Licensed to the Apache Software Foundation (ASF) under one or more
12 *   contributor license agreements. See the NOTICE file distributed
13 *   with this work for additional information regarding copyright
14 *   ownership. The ASF licenses this file to you under the Apache
15 *   License, Version 2.0 (the "License"); you may not use this file
16 *   except in compliance with the License. You may obtain a copy of
17 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19#ifndef __ooo_vba_excel_XApplication_idl__
20#define __ooo_vba_excel_XApplication_idl__
21
22#include <com/sun/star/beans/XExactName.idl>
23#include <com/sun/star/script/XInvocation.idl>
24
25module ooo {  module vba {  module excel {
26
27interface XApplication
28{
29    // Application serves as WorksheetFunction object with little differences
30    interface ::com::sun::star::beans::XExactName;
31    interface ::com::sun::star::script::XInvocation;
32
33    interface XConnectable;
34
35//  interface ::ooo::vba::XHelperInterface;
36
37    [attribute, readonly] any Selection;
38    [attribute, readonly] XWorkbook ActiveWorkbook;
39    [attribute, readonly] XRange ActiveCell;
40    [attribute, readonly] XWindow ActiveWindow;
41    [attribute, readonly] XWorksheet ActiveSheet;
42    [attribute, readonly] ooo::vba::XAssistant Assistant;
43    [attribute] long Calculation;
44    [attribute, readonly] XWorkbook ThisWorkbook;
45    [attribute, readonly] string Name;
46    [attribute] boolean DisplayAlerts;
47    [attribute] boolean DisplayFormulaBar;
48    [attribute] any CutCopyMode;
49    [attribute] any StatusBar;
50    [attribute] long Cursor;
51    [attribute] boolean EnableEvents;
52    [attribute] boolean EnableCancelKey;
53    [attribute] boolean DisplayFullScreen;
54    [attribute] boolean DisplayScrollBars;
55    [attribute] boolean DisplayExcel4Menus;
56    [attribute] boolean DisplayNoteIndicator;
57    [attribute] boolean ShowWindowsInTaskbar;
58    [attribute] boolean Iteration;
59    [attribute, readonly] string LibraryPath;
60    [attribute, readonly] string TemplatesPath;
61    [attribute, readonly] string PathSeparator;
62    [attribute, readonly] string OperatingSystem;
63
64    void setDefaultFilePath([in] string DefaultFilePath) raises(com::sun::star::script::BasicErrorException);
65
66    string getDefaultFilePath() raises(com::sun::star::script::BasicErrorException);
67
68    any International( [in] long Index );
69    any Workbooks( [in] any Index );
70    any Worksheets( [in] any Index );
71    any Windows( [in] any Index );
72    any WorksheetFunction();
73    any Evaluate( [in] string Name );
74    any Dialogs( [in] any DialogIndex );
75    any Range( [in] any Cell1, [in] any Cell2 );
76    any Names( [in] any Index );
77    void GoTo( [in] any Reference, [in] any Scroll );
78    any FileDialog( [in] any DialogType );
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    double InchesToPoints( [in] double Inches );
87    void Volatile([in] any Volatile);
88    any Caller( [in] any Index );
89    any MenuBars( [in] any aIndex );
90    any Rows( [in] any aIndex );
91    void Undo();
92};
93
94}; }; };
95
96#endif
97
98/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
99