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: TableAutoFormat.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_TableAutoFormat_idl__
32 #define __com_sun_star_sheet_TableAutoFormat_idl__
34 #ifndef __com_sun_star_container_XIndexAccess_idl__
35 #include
<com
/sun
/star
/container
/XIndexAccess.idl
>
38 #ifndef __com_sun_star_container_XEnumerationAccess_idl__
39 #include
<com
/sun
/star
/container
/XEnumerationAccess.idl
>
42 #ifndef __com_sun_star_container_XNamed_idl__
43 #include
<com
/sun
/star
/container
/XNamed.idl
>
46 #ifndef __com_sun_star_beans_XPropertySet_idl__
47 #include
<com
/sun
/star
/beans
/XPropertySet.idl
>
50 //=============================================================================
52 module com
{ module sun
{ module star
{ module sheet
{
54 //=============================================================================
56 /** represents an AutoFormat, containing exactly 16 AutoFormat fields.
58 <p>Each of the 16 fields contain formatting properties for a table
59 cell at a specific position in the AutoFormat range. The rows of the
60 range are divided into a header row, a footer row and 2 data rows
61 (repeated in turn between header and footer row). The columns are
62 divided similar. This results in 16 different types of cells in the
63 range. The AutoFormats are numbered row by row, then column by column.</p>
65 @see com::sun::star::sheet::TableAutoFormatField
67 published service TableAutoFormat
69 //-------------------------------------------------------------------------
71 //! service com::sun::star::beans::PropertySet;
72 /** provides access to the properties.
74 interface com
::sun
::star
::beans
::XPropertySet
;
76 //=========================================================================
78 /** provides methods to access the AutoFormat fields via index.
80 @see com::sun::star::sheet::TableAutoFormatField
82 interface com
::sun
::star
::container
::XIndexAccess
;
84 //-------------------------------------------------------------------------
86 /** creates an enumeration of all 16 AutoFormat fields.
88 @see com::sun::star::sheet::TableAutoFormatEnumeration
90 interface com
::sun
::star
::container
::XEnumerationAccess
;
92 //-------------------------------------------------------------------------
94 /** provides methods to access the name of the AutoFormat.
96 interface com
::sun
::star
::container
::XNamed
;
98 //=========================================================================
100 /** specifies whether the font settings from the fields are used.
102 [property
] boolean IncludeFont
;
104 //-------------------------------------------------------------------------
106 /** specifies whether the justification settings from the fields
109 [property
] boolean IncludeJustify
;
111 //-------------------------------------------------------------------------
113 /** specifies whether the border settings from the fields are used.
115 [property
] boolean IncludeBorder
;
117 //-------------------------------------------------------------------------
119 /** specifies whether the background settings from the fields are used.
121 [property
] boolean IncludeBackground
;
123 //-------------------------------------------------------------------------
125 /** specifies whether the number format settings from the fields
128 [property
] boolean IncludeNumberFormat
;
130 //-------------------------------------------------------------------------
132 /** specifies whether the column widths and row heights should be
133 updated after applying the format.
135 [property
] boolean IncludeWidthAndHeight
;
139 //=============================================================================