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