1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 module ooo
{ module vba
{ module excel
{
22 interface XApplication
24 // Application serves as WorksheetFunction object with little differences
25 interface ::com
::sun
::star
::beans
::XExactName
;
26 interface ::com
::sun
::star
::script
::XInvocation
;
28 interface XConnectable
;
30 // interface ::ooo::vba::XHelperInterface;
32 [attribute
, readonly] any Selection
;
33 [attribute
, readonly] XWorkbook ActiveWorkbook
;
34 [attribute
, readonly] XRange ActiveCell
;
35 [attribute
, readonly] XWindow ActiveWindow
;
36 [attribute
, readonly] XWorksheet ActiveSheet
;
37 [attribute
, readonly] ooo
::vba
::XAssistant Assistant
;
38 [attribute
] long Calculation
;
39 [attribute
, readonly] XWorkbook ThisWorkbook
;
40 [attribute
, readonly] string Name
;
41 [attribute
] boolean DisplayAlerts
;
42 [attribute
] boolean DisplayFormulaBar
;
43 [attribute
] any CutCopyMode
;
44 [attribute
] any StatusBar
;
45 [attribute
] any WindowState
;
46 [attribute
] long Cursor
;
47 [attribute
] boolean EnableEvents
;
48 [attribute
] boolean EnableCancelKey
;
49 [attribute
] boolean DisplayFullScreen
;
50 [attribute
] boolean DisplayScrollBars
;
51 [attribute
] boolean DisplayExcel4Menus
;
52 [attribute
] boolean DisplayNoteIndicator
;
53 [attribute
] boolean ShowWindowsInTaskbar
;
54 [attribute
] boolean Iteration
;
55 [attribute
, readonly] string LibraryPath
;
56 [attribute
, readonly] string TemplatesPath
;
57 [attribute
, readonly] string PathSeparator
;
58 [attribute
, readonly] string OperatingSystem
;
60 void setDefaultFilePath
([in] string DefaultFilePath
) raises
(com
::sun
::star
::script
::BasicErrorException
);
62 string getDefaultFilePath
() raises
(com
::sun
::star
::script
::BasicErrorException
);
64 // Opens the file dialog and returns the selected file
66 // Title: title of the file dialog
67 // MultiSelect: true if multi selection is allowed (false by default)
69 // false - if file dialog was canceled
70 // filename - if "MultiSelect" is false
71 // array of filename - if "MultiSelect" is true
72 any GetOpenFilename
([in] any FileFilter
, [in] any FilterIndex
, [in] any Title
, [in] any ButtonText
, [in] any MultiSelect
);
74 any International
( [in] long Index
);
75 any Workbooks
( [in] any Index
);
76 any Worksheets
( [in] any Index
);
77 any Windows
( [in] any Index
);
78 any WorksheetFunction
();
79 any Evaluate
( [in] string Name
);
80 any Dialogs
( [in] any DialogIndex
);
81 any
Range( [in] any Cell1
, [in] any Cell2
);
82 any Names
( [in] any Index
);
83 void GoTo
( [in] any Reference
, [in] any Scroll
);
84 any FileDialog
( [in] any DialogType
);
86 void wait
( [in] double time
);
87 void Calculate
() raises
(com
::sun
::star
::script
::BasicErrorException
);
88 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
)
89 raises
(com
::sun
::star
::script
::BasicErrorException
);
90 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
)
91 raises
(com
::sun
::star
::script
::BasicErrorException
);
92 double CentimetersToPoints
([in] double Centimeters
);
93 double InchesToPoints
( [in] double Inches
);
94 void Volatile
([in] any Volatile
);
95 any Caller
( [in] any Index
);
96 any MenuBars
( [in] any aIndex
);
97 any Rows
( [in] any aIndex
);
103 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */