1*6fbb7301SAndrew Rist/************************************************************** 2cdf0e10cSrcweir * 3*6fbb7301SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*6fbb7301SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*6fbb7301SAndrew Rist * distributed with this work for additional information 6*6fbb7301SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*6fbb7301SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*6fbb7301SAndrew Rist * "License"); you may not use this file except in compliance 9*6fbb7301SAndrew Rist * with the License. You may obtain a copy of the License at 10*6fbb7301SAndrew Rist * 11*6fbb7301SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*6fbb7301SAndrew Rist * 13*6fbb7301SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*6fbb7301SAndrew Rist * software distributed under the License is distributed on an 15*6fbb7301SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*6fbb7301SAndrew Rist * KIND, either express or implied. See the License for the 17*6fbb7301SAndrew Rist * specific language governing permissions and limitations 18*6fbb7301SAndrew Rist * under the License. 19*6fbb7301SAndrew Rist * 20*6fbb7301SAndrew Rist *************************************************************/ 21*6fbb7301SAndrew Rist 22*6fbb7301SAndrew Rist 23cdf0e10cSrcweir#ifndef __ooo_vba_excel_XApplication_idl__ 24cdf0e10cSrcweir#define __ooo_vba_excel_XApplication_idl__ 25cdf0e10cSrcweir 26cdf0e10cSrcweir#include <com/sun/star/beans/XExactName.idl> 27cdf0e10cSrcweir#include <com/sun/star/script/XInvocation.idl> 28cdf0e10cSrcweir#include <ooo/vba/XHelperInterface.idl> 29cdf0e10cSrcweir#include <ooo/vba/XAssistant.idl> 30cdf0e10cSrcweir 31cdf0e10cSrcweirmodule ooo { module vba { module excel { 32cdf0e10cSrcweir 33cdf0e10cSrcweirinterface XRange; 34cdf0e10cSrcweirinterface XWorkbook; 35cdf0e10cSrcweirinterface XWorkbooks; 36cdf0e10cSrcweirinterface XWorksheets; 37cdf0e10cSrcweirinterface XWorksheetFunction; 38cdf0e10cSrcweirinterface XWindow; 39cdf0e10cSrcweirinterface XWorksheet; 40cdf0e10cSrcweir 41cdf0e10cSrcweirinterface XApplication 42cdf0e10cSrcweir{ 43cdf0e10cSrcweir // Application serves as WorksheetFunction object with little differences 44cdf0e10cSrcweir interface ::com::sun::star::beans::XExactName; 45cdf0e10cSrcweir interface ::com::sun::star::script::XInvocation; 46cdf0e10cSrcweir 47cdf0e10cSrcweir// interface ::ooo::vba::XHelperInterface; 48cdf0e10cSrcweir 49cdf0e10cSrcweir [attribute, readonly] any Selection; 50cdf0e10cSrcweir [attribute, readonly] XWorkbook ActiveWorkbook; 51cdf0e10cSrcweir [attribute, readonly] XRange ActiveCell; 52cdf0e10cSrcweir [attribute, readonly] XWindow ActiveWindow; 53cdf0e10cSrcweir [attribute, readonly] XWorksheet ActiveSheet; 54cdf0e10cSrcweir [attribute, readonly] ooo::vba::XAssistant Assistant; 55cdf0e10cSrcweir [attribute] long Calculation; 56cdf0e10cSrcweir [attribute, readonly] XWorkbook ThisWorkbook; 57cdf0e10cSrcweir [attribute, readonly] string Name; 58cdf0e10cSrcweir [attribute] boolean DisplayAlerts; 59cdf0e10cSrcweir [attribute] boolean DisplayFormulaBar; 60cdf0e10cSrcweir [attribute] any CutCopyMode; 61cdf0e10cSrcweir [attribute] any StatusBar; 62cdf0e10cSrcweir [attribute] long Cursor; 63cdf0e10cSrcweir [attribute] boolean EnableEvents; 64cdf0e10cSrcweir [attribute] string DefaultFilePath; 65cdf0e10cSrcweir [attribute, readonly] string LibraryPath; 66cdf0e10cSrcweir [attribute, readonly] string TemplatesPath; 67cdf0e10cSrcweir [attribute, readonly] string PathSeparator; 68cdf0e10cSrcweir 69cdf0e10cSrcweir //any CommandBars( [in] any Index ); 70cdf0e10cSrcweir any Workbooks( [in] any Index ); 71cdf0e10cSrcweir any Worksheets( [in] any Index ); 72cdf0e10cSrcweir any Windows( [in] any Index ); 73cdf0e10cSrcweir any WorksheetFunction(); 74cdf0e10cSrcweir any Evaluate( [in] string Name ); 75cdf0e10cSrcweir any Dialogs( [in] any DialogIndex ); 76cdf0e10cSrcweir any Range( [in] any Cell1, [in] any Cell2 ); 77cdf0e10cSrcweir any Names( [in] any Index ); 78cdf0e10cSrcweir void GoTo( [in] any Reference, [in] any Scroll ); 79cdf0e10cSrcweir 80cdf0e10cSrcweir void wait( [in] double time ); 81cdf0e10cSrcweir void Calculate() raises(com::sun::star::script::BasicErrorException); 82cdf0e10cSrcweir 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) 83cdf0e10cSrcweir raises(com::sun::star::script::BasicErrorException); 84cdf0e10cSrcweir 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) 85cdf0e10cSrcweir raises(com::sun::star::script::BasicErrorException); 86cdf0e10cSrcweir void Volatile([in] any Volatile); 87cdf0e10cSrcweir void DoEvents(); 88cdf0e10cSrcweir any Caller( [in] any Index ); 89cdf0e10cSrcweir any GetOpenFilename( [in] any FileFilter, [in] any FilterIndex, [in] any Title, [in] any ButtonText, [in] any MultiSelect ); 90cdf0e10cSrcweir any GetSaveAsFilename( [in] any InitialFileName, [in] any FileFilter, [in] any FilterIndex, [in] any Title, [in] any ButtonText ); 91cdf0e10cSrcweir}; 92cdf0e10cSrcweir 93cdf0e10cSrcweir}; }; }; 94cdf0e10cSrcweir 95cdf0e10cSrcweir#endif 96