1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
28 #ifndef __com_sun_star_awt_grid_UnoControlGridModel_idl__
29 #define __com_sun_star_awt_grid_UnoControlGridModel_idl__
31 #include
<com
/sun
/star
/awt
/grid
/XGridColumnModel.idl
>
32 #include
<com
/sun
/star
/awt
/grid
/XGridDataModel.idl
>
33 #include
<com
/sun
/star
/awt
/UnoControlModel.idl
>
34 #include
<com
/sun
/star
/view
/SelectionType.idl
>
35 #include
<com
/sun
/star
/awt
/FontDescriptor.idl
>
36 #include
<com
/sun
/star
/style
/VerticalAlignment.idl
>
37 #include
<com
/sun
/star
/util
/Color.idl
>
39 //=============================================================================
41 module com
{ module sun
{ module star
{ module awt
{ module grid
{
43 //=============================================================================
45 /** specifies the standard model of a <type>UnoControlGrid</type> control.
49 service UnoControlGridModel
51 /** specifies the standard model of an <type scope="com::sun::star::awt">UnoControl</type>. */
52 service com
::sun
::star
::awt
::UnoControlModel
;
54 /** Specifies whether the grid control should display a special header column.
56 <p>The default value is <FALSE/></p>
58 [property
] boolean ShowRowHeader
;
60 /** specifies the width of the row header column, if applicable.
62 <p>The width is specified in application font units - see <type scope="com::sun::star::util">MeasureUnit</type>.</p>
64 <p>The value given here is ignored if <member>ShowRowHeader</member> is <FALSE/>.</p>
66 [property
] long RowHeaderWidth
;
68 /** Specifies whether the grid control should display a title row.
70 <p>The default value is <TRUE/></p>
72 [property
] boolean ShowColumnHeader
;
74 /** specifies the height of the column header row, if applicable.
76 <p>The height is specified in application font units - see <type scope="com::sun::star::util">MeasureUnit</type>.</p>
78 <p>The value given here is ignored if <member>ShowColumnHeader</member> is <FALSE/>.</p>
80 <p>If the property is <void/>, the grid control shall automatically determine a height which conveniently allows,
81 according to the used font, to display one line of text.</p>
83 [property
, maybevoid
] long ColumnHeaderHeight
;
85 /** Specifies the height of rows in the grid control.
87 <p>The height is specified in application font units - see <type scope="com::sun::star::util">MeasureUnit</type>.</p>
89 [property
, maybevoid
] long RowHeight
;
91 /** Specifies the <type>XGridColumnModel</type> that is providing the column structure.
93 <p>You can implement your own instance of <type>XGridColumnModel</type> or use
94 the <type>DefaultGridColumnModel</type>.
96 <p>The column model is in the ownership of the grid model: When you set a new column model, or dispose
97 the grid model, then the (old) column model is disposed, too.</p>
99 <p>The default for this property is an empty instance of the <type>DefaultGridColumnModel</type>.</p>
101 [property
] XGridColumnModel ColumnModel
;
103 /** Specifies the <type>XGridDataModel</type> that is providing the hierarchical data.
105 <p>You can implement your own instance of <type>XGridDataModel</type> or use
106 the <type>DefaultGridDataModel</type>.
108 <p>The data model is in the ownership of the grid model: When you set a new data model, or dispose
109 the grid model, then the (old) data model is disposed, too.</p>
111 <p>The default for this property is an empty instance of the <type>DefaultGridDataModel</type>.</p>
113 [property
] XGridDataModel GridDataModel
;
115 /** Specifies the vertical scrollbar mode.
116 <p>The default value is <FALSE/></p>
118 [property
] boolean HScroll
;
120 /** Specifies the horizontal scrollbar mode.
121 <p>The default value is <FALSE/></p>
123 [property
] boolean VScroll
;
125 /** Specifies that the control can be reached with the TAB key.
127 [property
] boolean Tabstop
;
129 /** Specifies the selection mode that is enabled for this grid control.
130 <p>The default value is <member scope="com::sun::star::view">SelectionType::SINGLE</member></p>
132 [property
] ::com
::sun
::star
::view
::SelectionType SelectionModel
;
134 /** controls whether or not to paint horizontal and vertical lines between the grid cells.
138 [property
] boolean UseGridLines
;
140 /** specifies the color to be used when drawing lines between cells
142 <p>If this property has a value of <VOID/>, the grid control renderer will use some default color,
143 depending on the system's style settings.</p>
147 [property
, maybevoid
] ::com
::sun
::star
::util
::Color GridLineColor
;
149 /** specifies the color to be used when drawing the background of row or column headers
151 <p>If this property has a value of <VOID/>, the grid control renderer will use some default color,
152 depending on the system's style settings.</p>
154 [property
, maybevoid
] ::com
::sun
::star
::util
::Color HeaderBackgroundColor
;
156 /** specifies the color to be used when drawing the text within row or column headers
158 <p>If this property has a value of <VOID/>, the grid control renderer will use some default color,
159 depending on the system's style settings.</p>
161 [property
, maybevoid
] ::com
::sun
::star
::util
::Color HeaderTextColor
;
163 /** specifies the colors to be used as background for data rows.
165 <p>If this sequence is non-empty, the data rows will be rendered with alternating background colors: Assuming
166 the sequence has <code>n</code> elements, each row will use the background color as specified by its number's
167 remainder modulo <code>n</code>.</p>
169 <p>If this sequence is empty, all rows will use the same background color as the control as whole.</p>
171 <p>If this property does not exist at a particular implementation, or is <VOID/>, rows will be painted
172 in alternating background colors, every second row having a background color derived from the control's
175 [property
, maybevoid
] sequence
< ::com
::sun
::star
::util
::Color
> RowBackgroundColors
;
177 /** specifies the vertical alignment of the content in the control.
185 [property
] com
::sun
::star
::style
::VerticalAlignment VerticalAlign
;
187 /** specifies the font attributes of the text in the control.
189 [property
] com
::sun
::star
::awt
::FontDescriptor FontDescriptor
;
191 /** specifies the color to be used when drawing cell texts
193 <p>If this property has a value of <VOID/>, the grid control renderer will use some default color,
194 depending on the system's style settings.</p>
196 [property
, maybevoid
] ::com
::sun
::star
::util
::Color TextColor
;
198 /** specifies the color to be used when drawing text lines (underlining and strikethrough)
200 <p>If this property has a value of <VOID/>, the grid control renderer will use some default color,
201 depending on the system's style settings.</p>
203 [property
, maybevoid
] com
::sun
::star
::util
::Color TextLineColor
;
205 /** specifies the <type scope="com::sun::star::text">FontEmphasis</type>
206 value of the text in the control.
208 [property
] short FontEmphasisMark
;
210 /** specifies the <type scope="com::sun::star::text">FontRelief</type>
211 value of the text in the control.
213 [property
] short FontRelief
;
215 /** specifies the help text of the control.
217 [property
] string HelpText
;
219 /** specifies the help URL of the control.
221 [property
] string HelpURL
;
225 //=============================================================================
231 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */