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: Spreadsheet.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 ************************************************************************/
31 #ifndef __com_sun_star_sheet_Spreadsheet_idl__
32 #define __com_sun_star_sheet_Spreadsheet_idl__
34 #ifndef __com_sun_star_sheet_SheetCellRange_idl__
35 #include
<com
/sun
/star
/sheet
/SheetCellRange.idl
>
38 #ifndef __com_sun_star_sheet_XSpreadsheet_idl__
39 #include
<com
/sun
/star
/sheet
/XSpreadsheet.idl
>
42 #ifndef __com_sun_star_container_XNamed_idl__
43 #include
<com
/sun
/star
/container
/XNamed.idl
>
46 #ifndef __com_sun_star_util_XProtectable_idl__
47 #include
<com
/sun
/star
/util
/XProtectable.idl
>
50 #ifndef __com_sun_star_sheet_XDataPilotTablesSupplier_idl__
51 #include
<com
/sun
/star
/sheet
/XDataPilotTablesSupplier.idl
>
54 #ifndef __com_sun_star_sheet_XScenariosSupplier_idl__
55 #include
<com
/sun
/star
/sheet
/XScenariosSupplier.idl
>
58 #ifndef __com_sun_star_sheet_XSheetAnnotationsSupplier_idl__
59 #include
<com
/sun
/star
/sheet
/XSheetAnnotationsSupplier.idl
>
62 #ifndef __com_sun_star_drawing_XDrawPageSupplier_idl__
63 #include
<com
/sun
/star
/drawing
/XDrawPageSupplier.idl
>
66 #ifndef __com_sun_star_table_XTableChartsSupplier_idl__
67 #include
<com
/sun
/star
/table
/XTableChartsSupplier.idl
>
70 #ifndef __com_sun_star_sheet_XCellRangeMovement_idl__
71 #include
<com
/sun
/star
/sheet
/XCellRangeMovement.idl
>
74 #ifndef __com_sun_star_sheet_XPrintAreas_idl__
75 #include
<com
/sun
/star
/sheet
/XPrintAreas.idl
>
78 #ifndef __com_sun_star_sheet_XSheetPageBreak_idl__
79 #include
<com
/sun
/star
/sheet
/XSheetPageBreak.idl
>
82 #ifndef __com_sun_star_sheet_XSheetOutline_idl__
83 #include
<com
/sun
/star
/sheet
/XSheetOutline.idl
>
86 #ifndef __com_sun_star_sheet_XSheetAuditing_idl__
87 #include
<com
/sun
/star
/sheet
/XSheetAuditing.idl
>
90 #ifndef __com_sun_star_sheet_XSheetLinkable_idl__
91 #include
<com
/sun
/star
/sheet
/XSheetLinkable.idl
>
94 #ifndef __com_sun_star_sheet_Scenario_idl__
95 #include
<com
/sun
/star
/sheet
/Scenario.idl
>
98 #ifndef __com_sun_star_sheet_XExternalSheetName_idl__
99 #include
<com
/sun
/star
/sheet
/XExternalSheetName.idl
>
102 //=============================================================================
104 module com
{ module sun
{ module star
{ module sheet
{
106 //=============================================================================
108 /** represents a complete spreadsheet in a spreadsheet document.
110 <p>This service extents the service SheetCellRange. A spreadsheet is
111 nothing else than a cell range with extended functionality.</p>
113 @see com::sun::star::sheet::SpreadsheetDocument
117 //-------------------------------------------------------------------------
119 /** provides functionality for cell range handling.
121 service com
::sun
::star
::sheet
::SheetCellRange
;
123 //=========================================================================
125 service com
::sun
::star
::sheet
::Scenario
;
127 //=========================================================================
129 /** provides methods to create a cell cursor.
131 interface com
::sun
::star
::sheet
::XSpreadsheet
;
133 //-------------------------------------------------------------------------
135 /** provides accessing the spreadsheet name.
137 interface com
::sun
::star
::container
::XNamed
;
139 //-------------------------------------------------------------------------
141 /** provides methods to protect and unprotect the sheet contents.
143 interface com
::sun
::star
::util
::XProtectable
;
145 //-------------------------------------------------------------------------
147 /** provides access to the collection of DataPilot tables.
149 interface com
::sun
::star
::sheet
::XDataPilotTablesSupplier
;
151 //-------------------------------------------------------------------------
153 /** provides access to the collection of scenarios.
155 interface com
::sun
::star
::sheet
::XScenariosSupplier
;
157 //-------------------------------------------------------------------------
159 /** provides access to the collection of annotations.
161 interface com
::sun
::star
::sheet
::XSheetAnnotationsSupplier
;
163 //-------------------------------------------------------------------------
165 /** provides access to the draw page of this spreadsheet.
167 interface com
::sun
::star
::drawing
::XDrawPageSupplier
;
169 //-------------------------------------------------------------------------
171 /** provides access to the collection of chart objects.
173 interface com
::sun
::star
::table
::XTableChartsSupplier
;
175 //-------------------------------------------------------------------------
177 /** provides methods to move cell ranges inside the spreadsheet or to
178 other spreadsheets in this document.
180 interface com
::sun
::star
::sheet
::XCellRangeMovement
;
182 //-------------------------------------------------------------------------
184 /** provides access to the print area settings of this sheet.
186 interface com
::sun
::star
::sheet
::XPrintAreas
;
188 //-------------------------------------------------------------------------
190 /** provides access to the page breaks of this sheet.
192 interface com
::sun
::star
::sheet
::XSheetPageBreak
;
194 //-------------------------------------------------------------------------
196 /** provides access to row and column outline settings.
198 interface com
::sun
::star
::sheet
::XSheetOutline
;
200 //-------------------------------------------------------------------------
202 /** provides access to the auditing (detective) functionality.
204 interface com
::sun
::star
::sheet
::XSheetAuditing
;
206 //-------------------------------------------------------------------------
208 /** provides methods for a linked sheet.
210 interface com
::sun
::star
::sheet
::XSheetLinkable
;
212 //-------------------------------------------------------------------------
214 /** provides a method to set an external name at the sheet.
218 [optional] interface com
::sun
::star
::sheet
::XExternalSheetName
;
220 //=========================================================================
222 /** specifies if the sheet is visible.
224 [property
] boolean IsVisible
;
226 //-------------------------------------------------------------------------
228 /** specifies the page style of the sheet.
230 [property
] string PageStyle
;
232 //-------------------------------------------------------------------------
234 /** specifies the direction of the columns in the spreadsheet.
236 <p>Possible values are com::sun::star::text::WritingMode2::LR_TB to
237 order the columns from left to right, and
238 com::sun::star::text::WritingMode2::RL_TB to order the columns from
241 @see com::sun::star::text::WritingMode2
243 [optional, property
] short TableLayout
;
245 //-------------------------------------------------------------------------
247 /** specifies whether the sheet has an automatic print area.
249 <p> The automatic print area is used to print a sheet without
250 explicit print areas, also if other sheets have print areas.</p>
252 <p> If the property is true, and there are print areas on other sheets,
253 the used area of this sheet is also printed.</p>
255 <p> If the property is false, and there are print areas on other sheets,
256 only these specified print areas are printed.</p>
258 <p> If there are no print areas on the other sheets it does not matter
259 whether property is true or false.</p>
261 <p> This property can only be true, if there are no print areas given
262 on this sheet. If the property is set to true the print areas of
263 this sheet will be removed.</p>
268 [optional, property
] boolean AutomaticPrintArea
;
272 //=============================================================================