1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24#ifndef __com_sun_star_sheet_TableAutoFormat_idl__ 25#define __com_sun_star_sheet_TableAutoFormat_idl__ 26 27#ifndef __com_sun_star_container_XIndexAccess_idl__ 28#include <com/sun/star/container/XIndexAccess.idl> 29#endif 30 31#ifndef __com_sun_star_container_XEnumerationAccess_idl__ 32#include <com/sun/star/container/XEnumerationAccess.idl> 33#endif 34 35#ifndef __com_sun_star_container_XNamed_idl__ 36#include <com/sun/star/container/XNamed.idl> 37#endif 38 39#ifndef __com_sun_star_beans_XPropertySet_idl__ 40#include <com/sun/star/beans/XPropertySet.idl> 41#endif 42 43//============================================================================= 44 45module com { module sun { module star { module sheet { 46 47//============================================================================= 48 49/** represents an AutoFormat, containing exactly 16 AutoFormat fields. 50 51 <p>Each of the 16 fields contain formatting properties for a table 52 cell at a specific position in the AutoFormat range. The rows of the 53 range are divided into a header row, a footer row and 2 data rows 54 (repeated in turn between header and footer row). The columns are 55 divided similar. This results in 16 different types of cells in the 56 range. The AutoFormats are numbered row by row, then column by column.</p> 57 58 @see com::sun::star::sheet::TableAutoFormatField 59 */ 60published service TableAutoFormat 61{ 62 //------------------------------------------------------------------------- 63 64//! service com::sun::star::beans::PropertySet; 65 /** provides access to the properties. 66 */ 67 interface com::sun::star::beans::XPropertySet; 68 69 //========================================================================= 70 71 /** provides methods to access the AutoFormat fields via index. 72 73 @see com::sun::star::sheet::TableAutoFormatField 74 */ 75 interface com::sun::star::container::XIndexAccess; 76 77 //------------------------------------------------------------------------- 78 79 /** creates an enumeration of all 16 AutoFormat fields. 80 81 @see com::sun::star::sheet::TableAutoFormatEnumeration 82 */ 83 interface com::sun::star::container::XEnumerationAccess; 84 85 //------------------------------------------------------------------------- 86 87 /** provides methods to access the name of the AutoFormat. 88 */ 89 interface com::sun::star::container::XNamed; 90 91 //========================================================================= 92 93 /** specifies whether the font settings from the fields are used. 94 */ 95 [property] boolean IncludeFont; 96 97 //------------------------------------------------------------------------- 98 99 /** specifies whether the justification settings from the fields 100 are used. 101 */ 102 [property] boolean IncludeJustify; 103 104 //------------------------------------------------------------------------- 105 106 /** specifies whether the border settings from the fields are used. 107 */ 108 [property] boolean IncludeBorder; 109 110 //------------------------------------------------------------------------- 111 112 /** specifies whether the background settings from the fields are used. 113 */ 114 [property] boolean IncludeBackground; 115 116 //------------------------------------------------------------------------- 117 118 /** specifies whether the number format settings from the fields 119 are used. 120 */ 121 [property] boolean IncludeNumberFormat; 122 123 //------------------------------------------------------------------------- 124 125 /** specifies whether the column widths and row heights should be 126 updated after applying the format. 127 */ 128 [property] boolean IncludeWidthAndHeight; 129 130}; 131 132//============================================================================= 133 134}; }; }; }; 135 136#endif 137 138