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_XPrintAreas_idl__
29 #define __com_sun_star_sheet_XPrintAreas_idl__
31 #ifndef __com_sun_star_uno_XInterface_idl__
32 #include
<com
/sun
/star
/uno
/XInterface.idl
>
35 #ifndef __com_sun_star_table_CellRangeAddress_idl__
36 #include
<com
/sun
/star
/table
/CellRangeAddress.idl
>
39 //=============================================================================
41 module com
{ module sun
{ module star
{ module sheet
{
43 //=============================================================================
45 /** represents a sheet which has print areas.
47 published
interface XPrintAreas
: com
::sun
::star
::uno
::XInterface
49 //-------------------------------------------------------------------------
51 /** returns a sequence containing all print areas of the sheet.
53 sequence
< com
::sun
::star
::table
::CellRangeAddress
> getPrintAreas
();
55 //-------------------------------------------------------------------------
57 /** sets the print areas of the sheet.
59 <p>If none of the sheets in a document have print areas,
60 the whole sheets are printed. If any sheet contains print areas,
61 other sheets without print areas are not printed.</p>
64 a sequence containing all print areas for this sheet.
66 void setPrintAreas
( [in] sequence
< com
::sun
::star
::table
::CellRangeAddress
> aPrintAreas
);
68 //-------------------------------------------------------------------------
70 /** returns, whether the title columns are repeated on all subsequent
71 print pages to the right.
73 boolean getPrintTitleColumns
();
75 //-------------------------------------------------------------------------
77 /** specifies whether the title columns are repeated on all subsequent
78 print pages to the right.
80 @param bPrintTitleColumns
81 if <TRUE/>, title columns are repeated on each page.
83 void setPrintTitleColumns
( [in] boolean bPrintTitleColumns
);
85 //-------------------------------------------------------------------------
87 /** returns the range that is specified as title columns range.
89 <p>Title columns can be automatically repeated on all subsequent
90 print pages to the right, using
91 <member>XPrintAreas::setPrintTitleColumns</member>.</p>
94 the range of columns that is specified as title columns range.
96 com
::sun
::star
::table
::CellRangeAddress getTitleColumns
();
98 //-------------------------------------------------------------------------
100 /** specifies a range of columns as title columns range.
102 <p>The rows of the passed range are ignored.</p>
104 <p>Title columns can be automatically repeated on all subsequent
105 print pages to the right, using
106 <member>XPrintAreas::setPrintTitleColumns</member>.</p>
109 the title columns range.
111 void setTitleColumns
( [in] com
::sun
::star
::table
::CellRangeAddress aTitleColumns
);
113 //-------------------------------------------------------------------------
115 /** returns, whether the title rows are repeated on all subsequent
116 print pages to the bottom.
118 boolean getPrintTitleRows
();
120 //-------------------------------------------------------------------------
122 /** specifies whether the title rows are repeated on all subsequent
123 print pages to the bottom.
125 @param bPrintTitleRows
126 if <TRUE/>, title rows are repeated on each page.
128 void setPrintTitleRows
( [in] boolean bPrintTitleRows
);
130 //-------------------------------------------------------------------------
132 /** returns the range that is specified as title rows range.
134 <p>Title rows can be automatically repeated on all subsequent
135 print pages to the bootom, using
136 <member>XPrintAreas::setPrintTitleRows</member>.</p>
139 the range of rows that is specified as title rows range.
141 com
::sun
::star
::table
::CellRangeAddress getTitleRows
();
143 //-------------------------------------------------------------------------
145 /** specifies a range of rows as title rows range.
147 <p>The columns of the passed range are ignored.</p>
149 <p>Title rows can be automatically repeated on all subsequent
150 print pages to the bottom, using
151 <member>XPrintAreas::setPrintTitleRows</member>.</p>
154 the title rows range.
156 void setTitleRows
( [in] com
::sun
::star
::table
::CellRangeAddress aTitleRows
);
160 //=============================================================================