1/************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27#ifndef __ooo_vba_excel_XApplication_idl__ 28#define __ooo_vba_excel_XApplication_idl__ 29 30#include <com/sun/star/beans/XExactName.idl> 31#include <com/sun/star/script/XInvocation.idl> 32#include <ooo/vba/XHelperInterface.idl> 33#include <ooo/vba/XAssistant.idl> 34 35module ooo { module vba { module excel { 36 37interface XRange; 38interface XWorkbook; 39interface XWorkbooks; 40interface XWorksheets; 41interface XWorksheetFunction; 42interface XWindow; 43interface XWorksheet; 44 45interface XApplication 46{ 47 // Application serves as WorksheetFunction object with little differences 48 interface ::com::sun::star::beans::XExactName; 49 interface ::com::sun::star::script::XInvocation; 50 51// interface ::ooo::vba::XHelperInterface; 52 53 [attribute, readonly] any Selection; 54 [attribute, readonly] XWorkbook ActiveWorkbook; 55 [attribute, readonly] XRange ActiveCell; 56 [attribute, readonly] XWindow ActiveWindow; 57 [attribute, readonly] XWorksheet ActiveSheet; 58 [attribute, readonly] ooo::vba::XAssistant Assistant; 59 [attribute] long Calculation; 60 [attribute, readonly] XWorkbook ThisWorkbook; 61 [attribute, readonly] string Name; 62 [attribute] boolean DisplayAlerts; 63 [attribute] boolean DisplayFormulaBar; 64 [attribute] any CutCopyMode; 65 [attribute] any StatusBar; 66 [attribute] long Cursor; 67 [attribute] boolean EnableEvents; 68 [attribute] string DefaultFilePath; 69 [attribute, readonly] string LibraryPath; 70 [attribute, readonly] string TemplatesPath; 71 [attribute, readonly] string PathSeparator; 72 73 //any CommandBars( [in] any Index ); 74 any Workbooks( [in] any Index ); 75 any Worksheets( [in] any Index ); 76 any Windows( [in] any Index ); 77 any WorksheetFunction(); 78 any Evaluate( [in] string Name ); 79 any Dialogs( [in] any DialogIndex ); 80 any Range( [in] any Cell1, [in] any Cell2 ); 81 any Names( [in] any Index ); 82 void GoTo( [in] any Reference, [in] any Scroll ); 83 84 void wait( [in] double time ); 85 void Calculate() raises(com::sun::star::script::BasicErrorException); 86 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) 87 raises(com::sun::star::script::BasicErrorException); 88 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) 89 raises(com::sun::star::script::BasicErrorException); 90 void Volatile([in] any Volatile); 91 void DoEvents(); 92 any Caller( [in] any Index ); 93 any GetOpenFilename( [in] any FileFilter, [in] any FilterIndex, [in] any Title, [in] any ButtonText, [in] any MultiSelect ); 94 any GetSaveAsFilename( [in] any InitialFileName, [in] any FileFilter, [in] any FilterIndex, [in] any Title, [in] any ButtonText ); 95}; 96 97}; }; }; 98 99#endif 100