merged tag ooo/OOO330_m14
[LibreOffice.git] / offapi / com / sun / star / sheet / XSheetOutline.idl
blob0f3de869d9802ab71ffe823d24e7acd8e32048e0
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_XSheetOutline_idl__
29 #define __com_sun_star_sheet_XSheetOutline_idl__
31 #ifndef __com_sun_star_uno_XInterface_idl__
32 #include <com/sun/star/uno/XInterface.idl>
33 #endif
35 #ifndef __com_sun_star_table_CellRangeAddress_idl__
36 #include <com/sun/star/table/CellRangeAddress.idl>
37 #endif
39 #ifndef __com_sun_star_table_TableOrientation_idl__
40 #include <com/sun/star/table/TableOrientation.idl>
41 #endif
43 //=============================================================================
45 module com { module sun { module star { module sheet {
47 //=============================================================================
49 /** provides methods to access the outlines of a sheet.
51 published interface XSheetOutline: com::sun::star::uno::XInterface
53 //-------------------------------------------------------------------------
55 /** creates an outline group.
57 @param aRange
58 contains the range of rows or columns, depending on
59 the parameter nOrientation.
61 @param nOrientation
62 the orientation of the new outline (columns or rows).
64 void group(
65 [in] com::sun::star::table::CellRangeAddress aRange,
66 [in] com::sun::star::table::TableOrientation nOrientation );
68 //-------------------------------------------------------------------------
70 /** removes outline groups.
72 <p>In the specified range, all outline groups on the innermost
73 level are removed.</p>
75 @param aRange
76 contains the range of rows or columns, depending on
77 the parameter nOrientation.
79 @param nOrientation
80 the orientation of the outlines to remove (columns or rows).
82 void ungroup(
83 [in] com::sun::star::table::CellRangeAddress aRange,
84 [in] com::sun::star::table::TableOrientation nOrientation );
86 //-------------------------------------------------------------------------
88 /** creates outline groups from formula references in a range.
90 @param aRange
91 the cell range for which outlines are generated.
93 void autoOutline( [in] com::sun::star::table::CellRangeAddress aRange );
95 //-------------------------------------------------------------------------
97 /** removes all outline groups from the sheet.
99 void clearOutline();
101 //-------------------------------------------------------------------------
103 /** collapses an outline group.
105 @param aRange
106 the cell range for which the outlines are collapsed.
108 void hideDetail( [in] com::sun::star::table::CellRangeAddress aRange );
110 //-------------------------------------------------------------------------
112 /** reopens an outline group.
114 @param aRange
115 the cell range for which the outlines are reopened.
117 void showDetail( [in] com::sun::star::table::CellRangeAddress aRange );
119 //-------------------------------------------------------------------------
121 /** shows all outlined groups below a specific level.
123 @param nLevel
124 all outline levels from 1 to this value will be opened and
125 the higher levels will be closed.
127 @param nOrientation
128 the orientation of the outlines (columns or rows).
130 void showLevel(
131 [in] short nLevel,
132 [in] com::sun::star::table::TableOrientation nOrientation );
136 //=============================================================================
138 }; }; }; };
140 #endif