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_form_XGridFieldDataSupplier_idl__
28 #define __com_sun_star_form_XGridFieldDataSupplier_idl__
30 #ifndef __com_sun_star_uno_XInterface_idl__
31 #include
<com
/sun
/star
/uno
/XInterface.idl
>
34 #ifndef __com_sun_star_reflection_XIdlClass_idl__
35 #include
<com
/sun
/star
/reflection
/XIdlClass.idl
>
39 //=============================================================================
41 module com
{ module sun
{ module star
{ module form
{
43 //=============================================================================
45 /** provides access to the data of a GridControl
47 <p>You can retrieve the data type information and the data in a row.</p>
49 <p>This interface allows to retrieve data even for rows which are not current, which is quite usefull,
50 as normally, you can't affect the current row in a grid control without moving the cursor of the underlying
51 <type scope="com::sun::star::form::component">DataForm</type>.</p>
54 @see com::sun::star::form::control::GridControl
55 @see com::sun::star::form::component::GridControl
59 published
interface XGridFieldDataSupplier
: com
::sun
::star
::uno
::XInterface
61 //-------------------------------------------------------------------------
62 /** checks whether or not the content of the grid's columns can be retrieved in the requested format.
64 <p>Not every cell content can be retrieved in every representation. For example, in a text column,
65 you usually won't be able to retrieve the content as double.<br/>
66 To check if the type you need is supported by the columns, use this method.</p>
69 A sequence of boolean flags. Each flag corresponds to the respective column, and <TRUE/> indicates
70 that the column content can be retrieved in the requested format, <FALSE/> denies this.
72 @see XGridColumnFactory
73 @see DataAwareControlModel
74 @see XGridFieldDataSupplier::queryFieldData
76 sequence
<boolean> queryFieldDataType
( [in] type xType
);
78 //-------------------------------------------------------------------------
79 /** retrieves the actual column data for the given row
81 <p>If a column does not support the requested type, <NULL/> is returned at the respective
84 @see XGridFieldDataSupplier::queryFieldDataType
86 sequence
<any
> queryFieldData
( [in] long nRow
,
90 //=============================================================================
94 /*=============================================================================
96 =============================================================================*/