xref: /AOO41X/main/oovbaapi/ooo/vba/excel/XWorksheet.idl (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
1*cdf0e10cSrcweir/*************************************************************************
2*cdf0e10cSrcweir *
3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir *
5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir *
7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir *
9*cdf0e10cSrcweir * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir *
11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir *
15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir *
21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir *
26*cdf0e10cSrcweir ************************************************************************/
27*cdf0e10cSrcweir#ifndef __ooo_vba_excel_XWorksheet_idl__
28*cdf0e10cSrcweir#define __ooo_vba_excel_XWorksheet_idl__
29*cdf0e10cSrcweir
30*cdf0e10cSrcweir#ifndef __com_sun_star_uno_XInterface_idl__
31*cdf0e10cSrcweir#include <com/sun/star/uno/XInterface.idl>
32*cdf0e10cSrcweir#endif
33*cdf0e10cSrcweir
34*cdf0e10cSrcweir#ifndef __ooo_vba_XHelperInterface_idl__
35*cdf0e10cSrcweir#include <ooo/vba/XHelperInterface.idl>
36*cdf0e10cSrcweir#endif
37*cdf0e10cSrcweir
38*cdf0e10cSrcweir#ifndef __com_sun_star_script_XInvocation_idl__
39*cdf0e10cSrcweir#include <com/sun/star/script/XInvocation.idl>
40*cdf0e10cSrcweir#endif
41*cdf0e10cSrcweir
42*cdf0e10cSrcweir#ifndef __com_sun_star_container_XNamed_idl__
43*cdf0e10cSrcweir#include <com/sun/star/container/XNamed.idl>
44*cdf0e10cSrcweir#endif
45*cdf0e10cSrcweir//=============================================================================
46*cdf0e10cSrcweir
47*cdf0e10cSrcweirmodule ooo {  module vba {  module excel {
48*cdf0e10cSrcweir
49*cdf0e10cSrcweir//=============================================================================
50*cdf0e10cSrcweir
51*cdf0e10cSrcweirinterface XComments;
52*cdf0e10cSrcweirinterface XRange;
53*cdf0e10cSrcweirinterface XOutline;
54*cdf0e10cSrcweirinterface XPageSetup;
55*cdf0e10cSrcweirinterface XHPageBreaks;
56*cdf0e10cSrcweirinterface XVPageBreaks;
57*cdf0e10cSrcweirinterface XWorksheet
58*cdf0e10cSrcweir{
59*cdf0e10cSrcweir	interface ::ooo::vba::XHelperInterface;
60*cdf0e10cSrcweir	interface ::com::sun::star::script::XInvocation;
61*cdf0e10cSrcweir	interface ::com::sun::star::container::XNamed;
62*cdf0e10cSrcweir
63*cdf0e10cSrcweir	[attribute] long Visible;
64*cdf0e10cSrcweir	[attribute, readonly] long StandardHeight;
65*cdf0e10cSrcweir	[attribute, readonly] long StandardWidth;
66*cdf0e10cSrcweir	[attribute, readonly] boolean ProtectionMode;
67*cdf0e10cSrcweir	[attribute, readonly] boolean ProtectContents;
68*cdf0e10cSrcweir	[attribute, readonly] boolean ProtectDrawingObjects;
69*cdf0e10cSrcweir	[attribute, readonly] boolean ProtectScenarios;
70*cdf0e10cSrcweir	[attribute, readonly] XRange UsedRange;
71*cdf0e10cSrcweir	[attribute, readonly] XWorksheet Next;
72*cdf0e10cSrcweir	[attribute, readonly] XWorksheet Previous;
73*cdf0e10cSrcweir	[attribute, readonly] string CodeName;
74*cdf0e10cSrcweir 	[attribute, readonly] short Index;
75*cdf0e10cSrcweir 	[attribute] long EnableSelection;
76*cdf0e10cSrcweir	[attribute] boolean AutoFilterMode;
77*cdf0e10cSrcweir
78*cdf0e10cSrcweir	void Activate();
79*cdf0e10cSrcweir	void Calculate( );
80*cdf0e10cSrcweir	void Select();
81*cdf0e10cSrcweir	void Move([in] any Before,[in] any After );
82*cdf0e10cSrcweir	void Copy([in] any Before,[in] any After );
83*cdf0e10cSrcweir	void Paste([in] any Destination,[in] any Link);
84*cdf0e10cSrcweir	void Delete( );
85*cdf0e10cSrcweir	void Protect([in] any Password,[in] any DrawingObjects ,[in] any Contents,[in] any Scenarios,[in] any UserInterfaceOnly);
86*cdf0e10cSrcweir	void Unprotect([in] any Password );
87*cdf0e10cSrcweir	void CheckSpelling([in] any CustomDictionary,[in] any IgnoreUppercase, [in] any AlwaysSuggest,[in] any SpellingLang );
88*cdf0e10cSrcweir	void ShowDataForm();
89*cdf0e10cSrcweir
90*cdf0e10cSrcweir	XRange Range([in] any Cell1, [in] any Cell2 );
91*cdf0e10cSrcweir	any ChartObjects([in] any Index);
92*cdf0e10cSrcweir	any PivotTables([in] any Index);
93*cdf0e10cSrcweir	any Comments([in] any Index);
94*cdf0e10cSrcweir	XOutline Outline();
95*cdf0e10cSrcweir	XPageSetup PageSetup();
96*cdf0e10cSrcweir	any HPageBreaks([in] any Index);
97*cdf0e10cSrcweir	any VPageBreaks([in] any Index);
98*cdf0e10cSrcweir	any OLEObjects([in] any Index);
99*cdf0e10cSrcweir	any Shapes([in] any Index);
100*cdf0e10cSrcweir
101*cdf0e10cSrcweir    /*  The following form control related symbols do not refer to ActiveX form
102*cdf0e10cSrcweir        controls embedded in the sheet, but to the old-style drawing controls
103*cdf0e10cSrcweir        of Excel. This is an Excel-only feature. */
104*cdf0e10cSrcweir    any Buttons( [in] any Index );
105*cdf0e10cSrcweir    any CheckBoxes( [in] any Index );
106*cdf0e10cSrcweir    any DropDowns( [in] any Index );
107*cdf0e10cSrcweir    any GroupBoxes( [in] any Index );
108*cdf0e10cSrcweir    any Labels( [in] any Index );
109*cdf0e10cSrcweir    any ListBoxes( [in] any Index );
110*cdf0e10cSrcweir    any OptionButtons( [in] any Index );
111*cdf0e10cSrcweir    any ScrollBars( [in] any Index );
112*cdf0e10cSrcweir    any Spinners( [in] any Index );
113*cdf0e10cSrcweir
114*cdf0e10cSrcweir// FIXME: should prolly inherit from Range somehow...
115*cdf0e10cSrcweir	XRange Cells( [in] any RowIndex, [in] any ColumnIndex );
116*cdf0e10cSrcweir	XRange Rows( [in] any Index );
117*cdf0e10cSrcweir	XRange Columns( [in] any Index );
118*cdf0e10cSrcweir    any Hyperlinks( [in] any Index );
119*cdf0e10cSrcweir	any Names( [in] any Index );
120*cdf0e10cSrcweir
121*cdf0e10cSrcweir	any Evaluate( [in] string Name );
122*cdf0e10cSrcweir
123*cdf0e10cSrcweir	void setEnableCalculation( [in] boolean EnableCalculation ) raises(com::sun::star::script::BasicErrorException);
124*cdf0e10cSrcweir	boolean getEnableCalculation() raises(com::sun::star::script::BasicErrorException);
125*cdf0e10cSrcweir	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 );
126*cdf0e10cSrcweir};
127*cdf0e10cSrcweir
128*cdf0e10cSrcweir//=============================================================================
129*cdf0e10cSrcweir
130*cdf0e10cSrcweir}; }; };
131*cdf0e10cSrcweir
132*cdf0e10cSrcweir#endif
133