1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XApplication.idl,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __ooo_vba_excel_XApplication_idl__
31 #define __ooo_vba_excel_XApplication_idl__
33 #ifndef __com_sun_star_uno_XInterface_idl__
34 #include
<com
/sun
/star
/uno
/XInterface.idl
>
37 #ifndef __ooo_vba_XHelperInterface_idl__
38 #include
<ooo
/vba
/XHelperInterface.idl
>
41 #ifndef __ooo_vba_XAssistant_idl__
42 #include
<ooo
/vba
/XAssistant.idl
>
45 module ooo
{ module vba
{ module excel
{
50 interface XWorksheets
;
51 interface XWorksheetFunction
;
55 interface XApplication
: com
::sun
::star
::uno
::XInterface
58 // interface ::ooo::vba::XHelperInterface;
60 [attribute
, readonly] any Selection
;
61 [attribute
, readonly] XWorkbook ActiveWorkbook
;
62 [attribute
, readonly] XRange ActiveCell
;
63 [attribute
, readonly] XWindow ActiveWindow
;
64 [attribute
, readonly] XWorksheet ActiveSheet
;
65 [attribute
, readonly] ooo
::vba
::XAssistant Assistant
;
66 [attribute
] long Calculation
;
67 //#TODO #FIXME this is more of a placeholder, will return
68 // the value of activeworkbook, in xl 'ThisWorkbook' should return the
69 // workbook in which the 'calling' macro is running. Should be possible
71 [attribute
, readonly] XWorkbook ThisWorkbook
;
72 [attribute
, readonly] string Name
;
73 [attribute
] boolean DisplayAlerts
;
74 [attribute
] boolean DisplayFormulaBar
;
75 [attribute
] any CutCopyMode
;
76 [attribute
] any StatusBar
;
77 [attribute
] long Cursor
;
79 void setDefaultFilePath
([in] string DefaultFilePath
) raises
(com
::sun
::star
::script
::BasicErrorException
);
81 string getDefaultFilePath
() raises
(com
::sun
::star
::script
::BasicErrorException
);
83 string LibraryPath
() raises
(com
::sun
::star
::script
::BasicErrorException
);
84 string TemplatesPath
() raises
(com
::sun
::star
::script
::BasicErrorException
);
85 string PathSeparator
() raises
(com
::sun
::star
::script
::BasicErrorException
);
86 //any CommandBars( [in] any aIndex );
87 any Workbooks
( [in] any aIndex
);
88 any Worksheets
( [in] any aIndex
);
89 any Windows
( [in] any aIndex
);
90 any WorksheetFunction
();
91 any Evaluate
( [in] string Name
);
92 any Dialogs
( [in] any DialogIndex
);
93 any
Range( [in] any Cell1
, [in] any Cell2
);
94 any Names
( [in] any Index
);
95 void GoTo
( [in] any Reference
, [in] any Scroll
);
96 // #FIXME #TODO up to 30 args needed
97 double CountA
( [in] any arg1
);
98 void wait
( [in] double time
);
99 void Calculate
() raises
(com
::sun
::star
::script
::BasicErrorException
);
100 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
)
101 raises
(com
::sun
::star
::script
::BasicErrorException
);
102 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
)
103 raises
(com
::sun
::star
::script
::BasicErrorException
);
104 void Volatile
([in] any Volatile
);
105 any Caller
( [in] any aIndex
);
106 any MenuBars
( [in] any aIndex
);