merged tag ooo/OOO330_m14
[LibreOffice.git] / offapi / com / sun / star / sheet / Spreadsheet.idl
blob0b21a050d09961000d9ae126f5bcbdf6f2042aae
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
28 #ifndef __com_sun_star_sheet_Spreadsheet_idl__
29 #define __com_sun_star_sheet_Spreadsheet_idl__
31 #ifndef __com_sun_star_sheet_SheetCellRange_idl__
32 #include <com/sun/star/sheet/SheetCellRange.idl>
33 #endif
35 #ifndef __com_sun_star_sheet_XSpreadsheet_idl__
36 #include <com/sun/star/sheet/XSpreadsheet.idl>
37 #endif
39 #ifndef __com_sun_star_container_XNamed_idl__
40 #include <com/sun/star/container/XNamed.idl>
41 #endif
43 #ifndef __com_sun_star_util_XProtectable_idl__
44 #include <com/sun/star/util/XProtectable.idl>
45 #endif
47 #ifndef __com_sun_star_sheet_XDataPilotTablesSupplier_idl__
48 #include <com/sun/star/sheet/XDataPilotTablesSupplier.idl>
49 #endif
51 #ifndef __com_sun_star_sheet_XScenariosSupplier_idl__
52 #include <com/sun/star/sheet/XScenariosSupplier.idl>
53 #endif
55 #ifndef __com_sun_star_sheet_XSheetAnnotationsSupplier_idl__
56 #include <com/sun/star/sheet/XSheetAnnotationsSupplier.idl>
57 #endif
59 #ifndef __com_sun_star_drawing_XDrawPageSupplier_idl__
60 #include <com/sun/star/drawing/XDrawPageSupplier.idl>
61 #endif
63 #ifndef __com_sun_star_table_XTableChartsSupplier_idl__
64 #include <com/sun/star/table/XTableChartsSupplier.idl>
65 #endif
67 #ifndef __com_sun_star_sheet_XCellRangeMovement_idl__
68 #include <com/sun/star/sheet/XCellRangeMovement.idl>
69 #endif
71 #ifndef __com_sun_star_sheet_XPrintAreas_idl__
72 #include <com/sun/star/sheet/XPrintAreas.idl>
73 #endif
75 #ifndef __com_sun_star_sheet_XSheetPageBreak_idl__
76 #include <com/sun/star/sheet/XSheetPageBreak.idl>
77 #endif
79 #ifndef __com_sun_star_sheet_XSheetOutline_idl__
80 #include <com/sun/star/sheet/XSheetOutline.idl>
81 #endif
83 #ifndef __com_sun_star_sheet_XSheetAuditing_idl__
84 #include <com/sun/star/sheet/XSheetAuditing.idl>
85 #endif
87 #ifndef __com_sun_star_sheet_XSheetLinkable_idl__
88 #include <com/sun/star/sheet/XSheetLinkable.idl>
89 #endif
91 #ifndef __com_sun_star_sheet_Scenario_idl__
92 #include <com/sun/star/sheet/Scenario.idl>
93 #endif
95 #ifndef __com_sun_star_sheet_XExternalSheetName_idl__
96 #include <com/sun/star/sheet/XExternalSheetName.idl>
97 #endif
99 #include <com/sun/star/util/Color.idl>
101 //=============================================================================
103 module com { module sun { module star { module sheet {
105 //=============================================================================
107 /** represents a complete spreadsheet in a spreadsheet document.
109 <p>This service extents the service SheetCellRange. A spreadsheet is
110 nothing else than a cell range with extended functionality.</p>
112 @see com::sun::star::sheet::SpreadsheetDocument
114 service Spreadsheet
116 //-------------------------------------------------------------------------
118 /** provides functionality for cell range handling.
120 service com::sun::star::sheet::SheetCellRange;
122 //=========================================================================
124 service com::sun::star::sheet::Scenario;
126 //=========================================================================
128 /** provides methods to create a cell cursor.
130 interface com::sun::star::sheet::XSpreadsheet;
132 //-------------------------------------------------------------------------
134 /** provides accessing the spreadsheet name.
136 interface com::sun::star::container::XNamed;
138 //-------------------------------------------------------------------------
140 /** provides methods to protect and unprotect the sheet contents.
142 interface com::sun::star::util::XProtectable;
144 //-------------------------------------------------------------------------
146 /** provides access to the collection of DataPilot tables.
148 interface com::sun::star::sheet::XDataPilotTablesSupplier;
150 //-------------------------------------------------------------------------
152 /** provides access to the collection of scenarios.
154 interface com::sun::star::sheet::XScenariosSupplier;
156 //-------------------------------------------------------------------------
158 /** provides access to the collection of annotations.
160 interface com::sun::star::sheet::XSheetAnnotationsSupplier;
162 //-------------------------------------------------------------------------
164 /** provides access to the draw page of this spreadsheet.
166 interface com::sun::star::drawing::XDrawPageSupplier;
168 //-------------------------------------------------------------------------
170 /** provides access to the collection of chart objects.
172 interface com::sun::star::table::XTableChartsSupplier;
174 //-------------------------------------------------------------------------
176 /** provides methods to move cell ranges inside the spreadsheet or to
177 other spreadsheets in this document.
179 interface com::sun::star::sheet::XCellRangeMovement;
181 //-------------------------------------------------------------------------
183 /** provides access to the print area settings of this sheet.
185 interface com::sun::star::sheet::XPrintAreas;
187 //-------------------------------------------------------------------------
189 /** provides access to the page breaks of this sheet.
191 interface com::sun::star::sheet::XSheetPageBreak;
193 //-------------------------------------------------------------------------
195 /** provides access to row and column outline settings.
197 interface com::sun::star::sheet::XSheetOutline;
199 //-------------------------------------------------------------------------
201 /** provides access to the auditing (detective) functionality.
203 interface com::sun::star::sheet::XSheetAuditing;
205 //-------------------------------------------------------------------------
207 /** provides methods for a linked sheet.
209 interface com::sun::star::sheet::XSheetLinkable;
211 //-------------------------------------------------------------------------
213 /** provides a method to set an external name at the sheet.
215 @since OOo 3.0
217 [optional] interface com::sun::star::sheet::XExternalSheetName;
219 //=========================================================================
221 /** specifies if the sheet is visible.
223 [property] boolean IsVisible;
225 //-------------------------------------------------------------------------
227 /** specifies the page style of the sheet.
229 [property] string PageStyle;
231 //-------------------------------------------------------------------------
233 /** specifies the direction of the columns in the spreadsheet.
235 <p>Possible values are com::sun::star::text::WritingMode2::LR_TB to
236 order the columns from left to right, and
237 com::sun::star::text::WritingMode2::RL_TB to order the columns from
238 right to left.</p>
240 @see com::sun::star::text::WritingMode2
242 [optional, property] short TableLayout;
244 //-------------------------------------------------------------------------
246 /** specifies whether the sheet has an automatic print area.
248 <p> The automatic print area is used to print a sheet without
249 explicit print areas, also if other sheets have print areas.</p>
251 <p> If the property is true, and there are print areas on other sheets,
252 the used area of this sheet is also printed.</p>
254 <p> If the property is false, and there are print areas on other sheets,
255 only these specified print areas are printed.</p>
257 <p> If there are no print areas on the other sheets it does not matter
258 whether property is true or false.</p>
260 <p> This property can only be true, if there are no print areas given
261 on this sheet. If the property is set to true the print areas of
262 this sheet will be removed.</p>
264 @see XPrintAreas
267 [optional, property] boolean AutomaticPrintArea;
269 /** specifies the color of the sheet tab, if any.
271 [optional, property] com::sun::star::util::Color TabColor;
274 //=============================================================================
276 }; }; }; };
278 #endif