1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XWorksheet.idl,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __ooo_vba_excel_XWorksheet_idl__
31 #define __ooo_vba_excel_XWorksheet_idl__
33 #ifndef __com_sun_star_uno_XInterface_idl__
34 #include
<com
/sun
/star
/uno
/XInterface.idl
>
37 #ifndef __ooo_vba_XHelperInterface_idl__
38 #include
<ooo
/vba
/XHelperInterface.idl
>
41 #ifndef __com_sun_star_script_XInvocation_idl__
42 #include
<com
/sun
/star
/script
/XInvocation.idl
>
45 #ifndef __com_sun_star_container_XNamed_idl__
46 #include
<com
/sun
/star
/container
/XNamed.idl
>
48 //=============================================================================
50 module ooo
{ module vba
{ module excel
{
52 //=============================================================================
58 interface XHPageBreaks
;
59 interface XVPageBreaks
;
62 interface ::ooo
::vba
::XHelperInterface
;
63 interface ::com
::sun
::star
::script
::XInvocation
;
64 interface ::com
::sun
::star
::container
::XNamed
;
66 [attribute
] boolean Visible
;
67 [attribute
, readonly] long StandardHeight
;
68 [attribute
, readonly] long StandardWidth
;
69 [attribute
, readonly] boolean ProtectionMode
;
70 [attribute
, readonly] boolean ProtectContents
;
71 [attribute
, readonly] boolean ProtectDrawingObjects
;
72 [attribute
, readonly] XRange UsedRange
;
73 [attribute
, readonly] XWorksheet Next
;
74 [attribute
, readonly] XWorksheet Previous
;
75 [attribute
, readonly] string CodeName
;
76 [attribute
, readonly] short Index
;
77 [attribute
] long EnableSelection
;
82 void Move
([in] any Before
,[in] any After
);
83 void Copy
([in] any Before
,[in] any After
);
84 void Paste
([in] any Destination
,[in] any Link
);
86 void Protect
([in] any Password
,[in] any DrawingObjects
,[in] any Contents
,[in] any Scenarios
,[in] any UserInterfaceOnly
);
87 void Unprotect
([in] any Password
);
88 void CheckSpelling
([in] any CustomDictionary
,[in] any IgnoreUppercase
, [in] any AlwaysSuggest
,[in] any SpellingLang
);
89 XRange
Range([in] any Cell1
, [in] any Cell2
);
90 any ChartObjects
([in] any Index
);
91 any PivotTables
([in] any Index
);
92 any Comments
([in] any Index
);
94 XPageSetup PageSetup
();
95 any HPageBreaks
([in] any Index
);
96 any VPageBreaks
([in] any Index
);
97 any OLEObjects
([in] any Index
);
99 any Shapes
([in] any Index
);
102 // FIXME: should prolly inherit from Range somehow...
103 XRange Cells
([in] any RowIndex
, [in] any ColumnIndex
);
104 XRange Rows
([in] any aIndex
);
105 XRange Columns
([in] any aIndex
);
107 any Evaluate
( [in] string Name
);
110 void setEnableCalculation
([in] boolean EnableCalculation
) raises
(com
::sun
::star
::script
::BasicErrorException
);
111 boolean getEnableCalculation
() raises
(com
::sun
::star
::script
::BasicErrorException
);
112 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
);
117 //=============================================================================