tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / offapi / com / sun / star / awt / grid / UnoControlGridModel.idl
blobe98ae25f77035a145f92a9011ca29380053a649e
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 module com { module sun { module star { module awt { module grid {
24 /** specifies the standard model of a UnoControlGrid control.
26 @since OOo 3.3
28 published service UnoControlGridModel
30 /** specifies the standard model of a com::sun::star::awt::UnoControl. */
31 service com::sun::star::awt::UnoControlModel;
33 /** Specifies whether the grid control should display a special header column.
35 <p>The default value is `FALSE`</p>
37 [property] boolean ShowRowHeader;
39 /** specifies the width of the row header column, if applicable.
41 <p>The width is specified in application font units - see com::sun::star::util::MeasureUnit.</p>
43 <p>The value given here is ignored if #ShowRowHeader is `FALSE`.</p>
45 [property] long RowHeaderWidth;
47 /** Specifies whether the grid control should display a title row.
49 <p>The default value is `TRUE`</p>
51 [property] boolean ShowColumnHeader;
53 /** specifies the height of the column header row, if applicable.
55 <p>The height is specified in application font units - see com::sun::star::util::MeasureUnit.</p>
57 <p>The value given here is ignored if #ShowColumnHeader is `FALSE`.</p>
59 <p>If the property is `VOID`, the grid control shall automatically determine a height which conveniently allows,
60 according to the used font, to display one line of text.</p>
62 [property, maybevoid] long ColumnHeaderHeight;
64 /** Specifies the height of rows in the grid control.
66 <p>The height is specified in application font units - see com::sun::star::util::MeasureUnit.</p>
68 [property, maybevoid] long RowHeight;
70 /** Specifies the XGridColumnModel that is providing the column structure.
72 <p>You can implement your own instance of XGridColumnModel or use
73 the DefaultGridColumnModel.
75 <p>The column model is in the ownership of the grid model: When you set a new column model, or dispose
76 the grid model, then the (old) column model is disposed, too.</p>
78 <p>The default for this property is an empty instance of the DefaultGridColumnModel.</p>
80 [property] XGridColumnModel ColumnModel;
82 /** Specifies the XGridDataModel that is providing the hierarchical data.
84 <p>You can implement your own instance of XGridDataModel or use
85 the DefaultGridDataModel.
87 <p>The data model is in the ownership of the grid model: When you set a new data model, or dispose
88 the grid model, then the (old) data model is disposed, too.</p>
90 <p>The default for this property is an empty instance of the DefaultGridDataModel.</p>
92 [property] XGridDataModel GridDataModel;
94 /** Specifies the vertical scrollbar mode.
95 <p>The default value is `FALSE`</p>
97 [property] boolean HScroll;
99 /** Specifies the horizontal scrollbar mode.
100 <p>The default value is `FALSE`</p>
102 [property] boolean VScroll;
104 /** Specifies that the control can be reached with the TAB key.
106 [property] boolean Tabstop;
108 /** Specifies the selection mode that is enabled for this grid control.
109 <p>The default value is com::sun::star::view::SelectionType::SINGLE</p>
111 [property] ::com::sun::star::view::SelectionType SelectionModel;
113 /** controls whether or not to paint horizontal and vertical lines between the grid cells.
115 @see GridLineColor
117 [property] boolean UseGridLines;
119 /** specifies the color to be used when drawing lines between cells
121 <p>If this property has a value of `VOID`, the grid control renderer will use some default color,
122 depending on the control's style settings.</p>
124 @see UseGridLines
126 [property, maybevoid] ::com::sun::star::util::Color GridLineColor;
128 /** specifies the color to be used when drawing the background of row or column headers
130 <p>If this property has a value of `VOID`, the grid control renderer will use some default color,
131 depending on the control's style settings.</p>
133 [property, maybevoid] ::com::sun::star::util::Color HeaderBackgroundColor;
135 /** specifies the color to be used when drawing the text within row or column headers
137 <p>If this property has a value of `VOID`, the grid control renderer will use some default color,
138 depending on the control's style settings.</p>
140 [property, maybevoid] ::com::sun::star::util::Color HeaderTextColor;
142 /** specifies the color to be used when drawing the background of selected cells, while the control has the focus.
144 <p>If this property has a value of `VOID`, the grid control renderer will use some default color,
145 depending on the control's style settings.</p>
147 [property, maybevoid] ::com::sun::star::util::Color ActiveSelectionBackgroundColor;
149 /** specifies the color to be used when drawing the background of selected cells, while the control does not have
150 the focus.
152 <p>If this property has a value of `VOID`, the grid control renderer will use some default color,
153 depending on the control's style settings.</p>
155 [property, maybevoid] ::com::sun::star::util::Color InactiveSelectionBackgroundColor;
157 /** specifies the color to be used when drawing the text of selected cells, while the control has the focus.
159 <p>If this property has a value of `VOID`, the grid control renderer will use some default color,
160 depending on the control's style settings.</p>
162 [property, maybevoid] ::com::sun::star::util::Color ActiveSelectionTextColor;
164 /** specifies the color to be used when drawing the text of selected cells, while the control does not have
165 the focus.
167 <p>If this property has a value of `VOID`, the grid control renderer will use some default color,
168 depending on the control's style settings.</p>
170 [property, maybevoid] ::com::sun::star::util::Color InactiveSelectionTextColor;
172 /** specifies the colors to be used as background for data rows.
174 <p>If this sequence is non-empty, the data rows will be rendered with alternating background colors: Assuming
175 the sequence has <code>n</code> elements, each row will use the background color as specified by its number's
176 remainder modulo <code>n</code>.</p>
178 <p>If this sequence is empty, all rows will use the same background color as the control as whole.</p>
180 <p>If this property has a value of `VOID`, rows will be painted
181 in alternating background colors, every second row having a background color derived from the control's
182 selection color.</p>
184 [property, maybevoid] sequence< ::com::sun::star::util::Color > RowBackgroundColors;
186 /** specifies the vertical alignment of the content in the control.
188 [property] com::sun::star::style::VerticalAlignment VerticalAlign;
190 /** specifies the font attributes of the text in the control.
192 [property] com::sun::star::awt::FontDescriptor FontDescriptor;
194 /** specifies the color to be used when drawing cell texts
196 <p>If this property has a value of `VOID`, the grid control renderer will use some default color,
197 depending on the control's style settings.</p>
199 [property, maybevoid] ::com::sun::star::util::Color TextColor;
201 /** specifies the color to be used when drawing text lines (underlining and strikethrough)
203 <p>If this property has a value of `VOID`, the grid control renderer will use some default color,
204 depending on the control's style settings.</p>
206 [property, maybevoid] com::sun::star::util::Color TextLineColor;
208 /** specifies the com::sun::star::text::FontEmphasis
209 value of the text in the control.
211 [property] short FontEmphasisMark;
213 /** specifies the com::sun::star::text::FontRelief
214 value of the text in the control.
216 [property] short FontRelief;
218 /** specifies the help text of the control.
220 [property] string HelpText;
222 /** specifies the help URL of the control.
224 [property] string HelpURL;
229 }; }; }; }; };
231 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */