1*cdf0e10cSrcweir/************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir#ifndef __com_sun_star_table_CellProperties_idl__ 29*cdf0e10cSrcweir#define __com_sun_star_table_CellProperties_idl__ 30*cdf0e10cSrcweir 31*cdf0e10cSrcweir#ifndef __com_sun_star_util_Color_idl__ 32*cdf0e10cSrcweir#include <com/sun/star/util/Color.idl> 33*cdf0e10cSrcweir#endif 34*cdf0e10cSrcweir 35*cdf0e10cSrcweir#ifndef __com_sun_star_beans_XPropertySet_idl__ 36*cdf0e10cSrcweir#include <com/sun/star/beans/XPropertySet.idl> 37*cdf0e10cSrcweir#endif 38*cdf0e10cSrcweir 39*cdf0e10cSrcweir#ifndef __com_sun_star_table_ShadowFormat_idl__ 40*cdf0e10cSrcweir#include <com/sun/star/table/ShadowFormat.idl> 41*cdf0e10cSrcweir#endif 42*cdf0e10cSrcweir 43*cdf0e10cSrcweir#ifndef __com_sun_star_table_CellHoriJustify_idl__ 44*cdf0e10cSrcweir#include <com/sun/star/table/CellHoriJustify.idl> 45*cdf0e10cSrcweir#endif 46*cdf0e10cSrcweir 47*cdf0e10cSrcweir#ifndef __com_sun_star_table_CellVertJustify_idl__ 48*cdf0e10cSrcweir#include <com/sun/star/table/CellVertJustify.idl> 49*cdf0e10cSrcweir#endif 50*cdf0e10cSrcweir 51*cdf0e10cSrcweir#ifndef __com_sun_star_table_CellOrientation_idl__ 52*cdf0e10cSrcweir#include <com/sun/star/table/CellOrientation.idl> 53*cdf0e10cSrcweir#endif 54*cdf0e10cSrcweir 55*cdf0e10cSrcweir#ifndef __com_sun_star_util_CellProtection_idl__ 56*cdf0e10cSrcweir#include <com/sun/star/util/CellProtection.idl> 57*cdf0e10cSrcweir#endif 58*cdf0e10cSrcweir 59*cdf0e10cSrcweir#ifndef __com_sun_star_table_TableBorder_idl__ 60*cdf0e10cSrcweir#include <com/sun/star/table/TableBorder.idl> 61*cdf0e10cSrcweir#endif 62*cdf0e10cSrcweir 63*cdf0e10cSrcweir#ifndef __com_sun_star_table_BorderLine_idl__ 64*cdf0e10cSrcweir#include <com/sun/star/table/BorderLine.idl> 65*cdf0e10cSrcweir#endif 66*cdf0e10cSrcweir 67*cdf0e10cSrcweir#ifndef __com_sun_star_container_XNameContainer_idl__ 68*cdf0e10cSrcweir#include <com/sun/star/container/XNameContainer.idl> 69*cdf0e10cSrcweir#endif 70*cdf0e10cSrcweir 71*cdf0e10cSrcweir//============================================================================= 72*cdf0e10cSrcweir 73*cdf0e10cSrcweirmodule com { module sun { module star { module table { 74*cdf0e10cSrcweir 75*cdf0e10cSrcweir//============================================================================= 76*cdf0e10cSrcweir 77*cdf0e10cSrcweir/** contains the properties of a table cell. 78*cdf0e10cSrcweir 79*cdf0e10cSrcweir @see com::sun::star::table::Cell 80*cdf0e10cSrcweir @see com::sun::star::table::CellRange 81*cdf0e10cSrcweir */ 82*cdf0e10cSrcweirpublished service CellProperties 83*cdf0e10cSrcweir{ 84*cdf0e10cSrcweir //------------------------------------------------------------------------- 85*cdf0e10cSrcweir 86*cdf0e10cSrcweir//!published service PropertySet 87*cdf0e10cSrcweir /** provides access to the properties. 88*cdf0e10cSrcweir */ 89*cdf0e10cSrcweir interface com::sun::star::beans::XPropertySet; 90*cdf0e10cSrcweir 91*cdf0e10cSrcweir //========================================================================= 92*cdf0e10cSrcweir 93*cdf0e10cSrcweir /** contains the name of the style of the cell. 94*cdf0e10cSrcweir */ 95*cdf0e10cSrcweir [optional, property] string CellStyle; 96*cdf0e10cSrcweir 97*cdf0e10cSrcweir //------------------------------------------------------------------------- 98*cdf0e10cSrcweir 99*cdf0e10cSrcweir /** contains the cell background color. 100*cdf0e10cSrcweir */ 101*cdf0e10cSrcweir [property] com::sun::star::util::Color CellBackColor; 102*cdf0e10cSrcweir 103*cdf0e10cSrcweir //------------------------------------------------------------------------- 104*cdf0e10cSrcweir 105*cdf0e10cSrcweir /** is <TRUE/>, if the cell background is transparent. 106*cdf0e10cSrcweir 107*cdf0e10cSrcweir <p>In this case the <member>CellProperties::CellBackColor</member> 108*cdf0e10cSrcweir value is not used.</p> 109*cdf0e10cSrcweir */ 110*cdf0e10cSrcweir [property] boolean IsCellBackgroundTransparent; 111*cdf0e10cSrcweir 112*cdf0e10cSrcweir //------------------------------------------------------------------------- 113*cdf0e10cSrcweir 114*cdf0e10cSrcweir /** contains the horizontal alignment of the cell contents. 115*cdf0e10cSrcweir */ 116*cdf0e10cSrcweir [property] com::sun::star::table::CellHoriJustify HoriJustify; 117*cdf0e10cSrcweir 118*cdf0e10cSrcweir //------------------------------------------------------------------------- 119*cdf0e10cSrcweir 120*cdf0e10cSrcweir /** contains the vertical alignment of the cell contents. 121*cdf0e10cSrcweir */ 122*cdf0e10cSrcweir [property] com::sun::star::table::CellVertJustify VertJustify; 123*cdf0e10cSrcweir 124*cdf0e10cSrcweir //------------------------------------------------------------------------- 125*cdf0e10cSrcweir 126*cdf0e10cSrcweir /** is <TRUE/>, if text in the cells will be wrapped automatically 127*cdf0e10cSrcweir at the right border. 128*cdf0e10cSrcweir */ 129*cdf0e10cSrcweir [property] boolean IsTextWrapped; 130*cdf0e10cSrcweir 131*cdf0e10cSrcweir //------------------------------------------------------------------------- 132*cdf0e10cSrcweir 133*cdf0e10cSrcweir /** defines the indentation of the cell contents (in 1/100 mm). 134*cdf0e10cSrcweir */ 135*cdf0e10cSrcweir [property] short ParaIndent; 136*cdf0e10cSrcweir 137*cdf0e10cSrcweir //------------------------------------------------------------------------- 138*cdf0e10cSrcweir 139*cdf0e10cSrcweir /** contains the orientation of the cell contents. 140*cdf0e10cSrcweir 141*cdf0e10cSrcweir <p>If the <member>CellProperties::RotateAngle</member> property 142*cdf0e10cSrcweir is non-zero, this value is not used.</p> 143*cdf0e10cSrcweir */ 144*cdf0e10cSrcweir [property] com::sun::star::table::CellOrientation Orientation; 145*cdf0e10cSrcweir 146*cdf0e10cSrcweir //------------------------------------------------------------------------- 147*cdf0e10cSrcweir 148*cdf0e10cSrcweir /** defines how much the content of cells is rotated (in 1/100 degrees). 149*cdf0e10cSrcweir */ 150*cdf0e10cSrcweir [property] long RotateAngle; 151*cdf0e10cSrcweir 152*cdf0e10cSrcweir //------------------------------------------------------------------------- 153*cdf0e10cSrcweir 154*cdf0e10cSrcweir /** defines at which edge rotated cells are aligned. 155*cdf0e10cSrcweir */ 156*cdf0e10cSrcweir [property] com::sun::star::table::CellVertJustify RotateReference; 157*cdf0e10cSrcweir 158*cdf0e10cSrcweir //------------------------------------------------------------------------- 159*cdf0e10cSrcweir 160*cdf0e10cSrcweir /** selects Asian character orientation in vertical orientation. 161*cdf0e10cSrcweir 162*cdf0e10cSrcweir <p>If the <member>CellProperties::Orientation</member> property is 163*cdf0e10cSrcweir <const>CellOrientation::STACKED</const>, in Asian mode only Asian 164*cdf0e10cSrcweir characters are printed in horizontal orientation instead of all 165*cdf0e10cSrcweir characters. 166*cdf0e10cSrcweir For other values of <member>CellProperties::Orientation</member>, 167*cdf0e10cSrcweir this value is not used.</p> 168*cdf0e10cSrcweir */ 169*cdf0e10cSrcweir [optional, property] boolean AsianVerticalMode; 170*cdf0e10cSrcweir 171*cdf0e10cSrcweir //------------------------------------------------------------------------- 172*cdf0e10cSrcweir 173*cdf0e10cSrcweir /** contains a description of the cell or cell range border. 174*cdf0e10cSrcweir 175*cdf0e10cSrcweir <p>If used with a cell range, the top, left, right, and bottom 176*cdf0e10cSrcweir lines are at the edges of the entire range, not at the edges of 177*cdf0e10cSrcweir the individual cell.</p> 178*cdf0e10cSrcweir */ 179*cdf0e10cSrcweir [property] com::sun::star::table::TableBorder TableBorder; 180*cdf0e10cSrcweir 181*cdf0e10cSrcweir //------------------------------------------------------------------------- 182*cdf0e10cSrcweir 183*cdf0e10cSrcweir /** contains a description of the top border line of each cell. 184*cdf0e10cSrcweir */ 185*cdf0e10cSrcweir [property] com::sun::star::table::BorderLine TopBorder; 186*cdf0e10cSrcweir 187*cdf0e10cSrcweir //------------------------------------------------------------------------- 188*cdf0e10cSrcweir 189*cdf0e10cSrcweir /** contains a description of the bottom border line of each cell. 190*cdf0e10cSrcweir */ 191*cdf0e10cSrcweir [property] com::sun::star::table::BorderLine BottomBorder; 192*cdf0e10cSrcweir 193*cdf0e10cSrcweir //------------------------------------------------------------------------- 194*cdf0e10cSrcweir 195*cdf0e10cSrcweir /** contains a description of the left border line of each cell. 196*cdf0e10cSrcweir */ 197*cdf0e10cSrcweir [property] com::sun::star::table::BorderLine LeftBorder; 198*cdf0e10cSrcweir 199*cdf0e10cSrcweir //------------------------------------------------------------------------- 200*cdf0e10cSrcweir 201*cdf0e10cSrcweir /** contains a description of the right border line of each cell. 202*cdf0e10cSrcweir */ 203*cdf0e10cSrcweir [property] com::sun::star::table::BorderLine RightBorder; 204*cdf0e10cSrcweir 205*cdf0e10cSrcweir //------------------------------------------------------------------------- 206*cdf0e10cSrcweir 207*cdf0e10cSrcweir /** contains the index of the number format that is used in the cells. 208*cdf0e10cSrcweir 209*cdf0e10cSrcweir <p>The proper value can be determined by using the 210*cdf0e10cSrcweir <type scope="com::sun::star::util">NumberFormatter</type> 211*cdf0e10cSrcweir interface of the document.</p> 212*cdf0e10cSrcweir */ 213*cdf0e10cSrcweir [property] long NumberFormat; 214*cdf0e10cSrcweir 215*cdf0e10cSrcweir //------------------------------------------------------------------------- 216*cdf0e10cSrcweir 217*cdf0e10cSrcweir /** contains a description of the shadow. 218*cdf0e10cSrcweir */ 219*cdf0e10cSrcweir [property] com::sun::star::table::ShadowFormat ShadowFormat; 220*cdf0e10cSrcweir 221*cdf0e10cSrcweir //------------------------------------------------------------------------- 222*cdf0e10cSrcweir 223*cdf0e10cSrcweir /** contains a description of the cell protection. 224*cdf0e10cSrcweir 225*cdf0e10cSrcweir <p>Cell protection is active only if the sheet is protected.</p> 226*cdf0e10cSrcweir */ 227*cdf0e10cSrcweir [property] com::sun::star::util::CellProtection CellProtection; 228*cdf0e10cSrcweir 229*cdf0e10cSrcweir //------------------------------------------------------------------------- 230*cdf0e10cSrcweir 231*cdf0e10cSrcweir /** stores additional attributes. 232*cdf0e10cSrcweir 233*cdf0e10cSrcweir <p>This property is used i.e. by the XML filters to load and 234*cdf0e10cSrcweir restore unknown attributes.</p> 235*cdf0e10cSrcweir */ 236*cdf0e10cSrcweir [optional, property] com::sun::star::container::XNameContainer 237*cdf0e10cSrcweir UserDefinedAttributes; 238*cdf0e10cSrcweir 239*cdf0e10cSrcweir //------------------------------------------------------------------------- 240*cdf0e10cSrcweir 241*cdf0e10cSrcweir /** contains a description of the top left to bottom right diagonal line of each cell. 242*cdf0e10cSrcweir */ 243*cdf0e10cSrcweir [optional, property] com::sun::star::table::BorderLine DiagonalTLBR; 244*cdf0e10cSrcweir 245*cdf0e10cSrcweir //------------------------------------------------------------------------- 246*cdf0e10cSrcweir 247*cdf0e10cSrcweir /** contains a description of the bottom left to top right diagonal line of each cell. 248*cdf0e10cSrcweir */ 249*cdf0e10cSrcweir [optional, property] com::sun::star::table::BorderLine DiagonalBLTR; 250*cdf0e10cSrcweir 251*cdf0e10cSrcweir //------------------------------------------------------------------------- 252*cdf0e10cSrcweir 253*cdf0e10cSrcweir /** is <TRUE/>, if the cell content will be shrinked to fit in the cell. 254*cdf0e10cSrcweir */ 255*cdf0e10cSrcweir [optional, property] boolean ShrinkToFit; 256*cdf0e10cSrcweir 257*cdf0e10cSrcweir //------------------------------------------------------------------------- 258*cdf0e10cSrcweir}; 259*cdf0e10cSrcweir 260*cdf0e10cSrcweir//============================================================================= 261*cdf0e10cSrcweir 262*cdf0e10cSrcweir}; }; }; }; 263*cdf0e10cSrcweir 264*cdf0e10cSrcweir#endif 265*cdf0e10cSrcweir 266