1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
27 #ifndef __com_sun_star_sdb_ColumnSettings_idl__
28 #define __com_sun_star_sdb_ColumnSettings_idl__
30 #ifndef __com_sun_star_beans_XPropertySet_idl__
31 #include
<com
/sun
/star
/beans
/XPropertySet.idl
>
34 module com
{ module sun
{ module star
{ module sdb
{
37 /** describes the common properties of a database column.
39 published service ColumnSettings
41 interface com
::sun
::star
::beans
::XPropertySet
;
44 /** contains the index of the number format that is used for the
47 <p>The proper value can be determined by using the
48 <type scope="com::sun::star::util">XNumberFormatter</type>
54 , a default numberformat should be used according to the datatype of the column.
58 [property
] long FormatKey
;
61 /** specifies the alignment of columns text.
71 , a default alignment should be used according
72 to the datatype of the column.
75 [property
] long Align
;
78 /** specifies the width of the column displayed in a grid, the unit is 10THMM.
83 , a default width should be used according to the label of the column.
86 [property
] long Width
;
89 /** Position of the column within a grid.
94 , the default position should be taken according.
97 [property
] long Position
;
100 /** determines whether the column should be displayed or not.
102 [property
] boolean Hidden;
105 /** indicates a control model whichs defines the settings for layouting.
110 [optional, property
] com
::sun
::star
::beans
::XPropertySet ControlModel
;
112 /** describes an optional help text which can be used by UI components
113 when representing this column.
118 [optional, property
] string HelpText
;
120 /** describes the default value which should be displayed by a control when moving to a new row.
125 [optional, property
] string ControlDefault
;
128 //=============================================================================
132 /*===========================================================================
133 ===========================================================================*/