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: ColumnSettings.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 ************************************************************************/
30 #ifndef __com_sun_star_sdb_ColumnSettings_idl__
31 #define __com_sun_star_sdb_ColumnSettings_idl__
33 #ifndef __com_sun_star_beans_XPropertySet_idl__
34 #include
<com
/sun
/star
/beans
/XPropertySet.idl
>
37 module com
{ module sun
{ module star
{ module sdb
{
40 /** describes the common properties of a database column.
42 published service ColumnSettings
44 interface com
::sun
::star
::beans
::XPropertySet
;
47 /** contains the index of the number format that is used for the
50 <p>The proper value can be determined by using the
51 <type scope="com::sun::star::util">XNumberFormatter</type>
57 , a default numberformat should be used according to the datatype of the column.
61 [property
] long FormatKey
;
64 /** specifies the alignment of columns text.
74 , a default alignment should be used according
75 to the datatype of the column.
78 [property
] long Align
;
81 /** specifies the width of the column displayed in a grid, the unit is 10THMM.
86 , a default width should be used according to the label of the column.
89 [property
] long Width
;
92 /** Position of the column within a grid.
97 , the default position should be taken according.
100 [property
] long Position
;
103 /** determines whether the column should be displayed or not.
105 [property
] boolean Hidden;
108 /** indicates a control model whichs defines the settings for layouting.
113 [optional, property
] com
::sun
::star
::beans
::XPropertySet ControlModel
;
115 /** describes an optional help text which can be used by UI components
116 when representing this column.
121 [optional, property
] string HelpText
;
123 /** describes the default value which should be displayed by a control when moving to a new row.
128 [optional, property
] string ControlDefault
;
131 //=============================================================================
135 /*===========================================================================
136 ===========================================================================*/