1*41b4bf98SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3*41b4bf98SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*41b4bf98SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5*41b4bf98SAndrew Rist * distributed with this work for additional information
6*41b4bf98SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7*41b4bf98SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*41b4bf98SAndrew Rist * "License"); you may not use this file except in compliance
9*41b4bf98SAndrew Rist * with the License.  You may obtain a copy of the License at
10*41b4bf98SAndrew Rist *
11*41b4bf98SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12*41b4bf98SAndrew Rist *
13*41b4bf98SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*41b4bf98SAndrew Rist * software distributed under the License is distributed on an
15*41b4bf98SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*41b4bf98SAndrew Rist * KIND, either express or implied.  See the License for the
17*41b4bf98SAndrew Rist * specific language governing permissions and limitations
18*41b4bf98SAndrew Rist * under the License.
19*41b4bf98SAndrew Rist *
20*41b4bf98SAndrew Rist *************************************************************/
21*41b4bf98SAndrew Rist
22*41b4bf98SAndrew Rist
23cdf0e10cSrcweir#ifndef __ooo_vba_excel_XWorksheet_idl__
24cdf0e10cSrcweir#define __ooo_vba_excel_XWorksheet_idl__
25cdf0e10cSrcweir
26cdf0e10cSrcweir#ifndef __com_sun_star_uno_XInterface_idl__
27cdf0e10cSrcweir#include <com/sun/star/uno/XInterface.idl>
28cdf0e10cSrcweir#endif
29cdf0e10cSrcweir
30cdf0e10cSrcweir#ifndef __ooo_vba_XHelperInterface_idl__
31cdf0e10cSrcweir#include <ooo/vba/XHelperInterface.idl>
32cdf0e10cSrcweir#endif
33cdf0e10cSrcweir
34cdf0e10cSrcweir#ifndef __com_sun_star_script_XInvocation_idl__
35cdf0e10cSrcweir#include <com/sun/star/script/XInvocation.idl>
36cdf0e10cSrcweir#endif
37cdf0e10cSrcweir
38cdf0e10cSrcweir#ifndef __com_sun_star_container_XNamed_idl__
39cdf0e10cSrcweir#include <com/sun/star/container/XNamed.idl>
40cdf0e10cSrcweir#endif
41cdf0e10cSrcweir//=============================================================================
42cdf0e10cSrcweir
43cdf0e10cSrcweirmodule ooo {  module vba {  module excel {
44cdf0e10cSrcweir
45cdf0e10cSrcweir//=============================================================================
46cdf0e10cSrcweir
47cdf0e10cSrcweirinterface XComments;
48cdf0e10cSrcweirinterface XRange;
49cdf0e10cSrcweirinterface XOutline;
50cdf0e10cSrcweirinterface XPageSetup;
51cdf0e10cSrcweirinterface XHPageBreaks;
52cdf0e10cSrcweirinterface XVPageBreaks;
53cdf0e10cSrcweirinterface XWorksheet
54cdf0e10cSrcweir{
55cdf0e10cSrcweir	interface ::ooo::vba::XHelperInterface;
56cdf0e10cSrcweir	interface ::com::sun::star::script::XInvocation;
57cdf0e10cSrcweir	interface ::com::sun::star::container::XNamed;
58cdf0e10cSrcweir
59cdf0e10cSrcweir	[attribute] long Visible;
60cdf0e10cSrcweir	[attribute, readonly] long StandardHeight;
61cdf0e10cSrcweir	[attribute, readonly] long StandardWidth;
62cdf0e10cSrcweir	[attribute, readonly] boolean ProtectionMode;
63cdf0e10cSrcweir	[attribute, readonly] boolean ProtectContents;
64cdf0e10cSrcweir	[attribute, readonly] boolean ProtectDrawingObjects;
65cdf0e10cSrcweir	[attribute, readonly] boolean ProtectScenarios;
66cdf0e10cSrcweir	[attribute, readonly] XRange UsedRange;
67cdf0e10cSrcweir	[attribute, readonly] XWorksheet Next;
68cdf0e10cSrcweir	[attribute, readonly] XWorksheet Previous;
69cdf0e10cSrcweir	[attribute, readonly] string CodeName;
70cdf0e10cSrcweir 	[attribute, readonly] short Index;
71cdf0e10cSrcweir 	[attribute] long EnableSelection;
72cdf0e10cSrcweir	[attribute] boolean AutoFilterMode;
73cdf0e10cSrcweir
74cdf0e10cSrcweir	void Activate();
75cdf0e10cSrcweir	void Calculate( );
76cdf0e10cSrcweir	void Select();
77cdf0e10cSrcweir	void Move([in] any Before,[in] any After );
78cdf0e10cSrcweir	void Copy([in] any Before,[in] any After );
79cdf0e10cSrcweir	void Paste([in] any Destination,[in] any Link);
80cdf0e10cSrcweir	void Delete( );
81cdf0e10cSrcweir	void Protect([in] any Password,[in] any DrawingObjects ,[in] any Contents,[in] any Scenarios,[in] any UserInterfaceOnly);
82cdf0e10cSrcweir	void Unprotect([in] any Password );
83cdf0e10cSrcweir	void CheckSpelling([in] any CustomDictionary,[in] any IgnoreUppercase, [in] any AlwaysSuggest,[in] any SpellingLang );
84cdf0e10cSrcweir	void ShowDataForm();
85cdf0e10cSrcweir
86cdf0e10cSrcweir	XRange Range([in] any Cell1, [in] any Cell2 );
87cdf0e10cSrcweir	any ChartObjects([in] any Index);
88cdf0e10cSrcweir	any PivotTables([in] any Index);
89cdf0e10cSrcweir	any Comments([in] any Index);
90cdf0e10cSrcweir	XOutline Outline();
91cdf0e10cSrcweir	XPageSetup PageSetup();
92cdf0e10cSrcweir	any HPageBreaks([in] any Index);
93cdf0e10cSrcweir	any VPageBreaks([in] any Index);
94cdf0e10cSrcweir	any OLEObjects([in] any Index);
95cdf0e10cSrcweir	any Shapes([in] any Index);
96cdf0e10cSrcweir
97cdf0e10cSrcweir    /*  The following form control related symbols do not refer to ActiveX form
98cdf0e10cSrcweir        controls embedded in the sheet, but to the old-style drawing controls
99cdf0e10cSrcweir        of Excel. This is an Excel-only feature. */
100cdf0e10cSrcweir    any Buttons( [in] any Index );
101cdf0e10cSrcweir    any CheckBoxes( [in] any Index );
102cdf0e10cSrcweir    any DropDowns( [in] any Index );
103cdf0e10cSrcweir    any GroupBoxes( [in] any Index );
104cdf0e10cSrcweir    any Labels( [in] any Index );
105cdf0e10cSrcweir    any ListBoxes( [in] any Index );
106cdf0e10cSrcweir    any OptionButtons( [in] any Index );
107cdf0e10cSrcweir    any ScrollBars( [in] any Index );
108cdf0e10cSrcweir    any Spinners( [in] any Index );
109cdf0e10cSrcweir
110cdf0e10cSrcweir// FIXME: should prolly inherit from Range somehow...
111cdf0e10cSrcweir	XRange Cells( [in] any RowIndex, [in] any ColumnIndex );
112cdf0e10cSrcweir	XRange Rows( [in] any Index );
113cdf0e10cSrcweir	XRange Columns( [in] any Index );
114cdf0e10cSrcweir    any Hyperlinks( [in] any Index );
115cdf0e10cSrcweir	any Names( [in] any Index );
116cdf0e10cSrcweir
117cdf0e10cSrcweir	any Evaluate( [in] string Name );
118cdf0e10cSrcweir
119cdf0e10cSrcweir	void setEnableCalculation( [in] boolean EnableCalculation ) raises(com::sun::star::script::BasicErrorException);
120cdf0e10cSrcweir	boolean getEnableCalculation() raises(com::sun::star::script::BasicErrorException);
121cdf0e10cSrcweir	void PrintOut( [in] any From, [in] any To, [in] any Copies, [in] any Preview, [in] any ActivePrinter, [in] any PrintToFile, [in] any Collate, [in] any PrToFileName, [in] any IgnorePrintAreas );
122cdf0e10cSrcweir};
123cdf0e10cSrcweir
124cdf0e10cSrcweir//=============================================================================
125cdf0e10cSrcweir
126cdf0e10cSrcweir}; }; };
127cdf0e10cSrcweir
128cdf0e10cSrcweir#endif
129