/************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite * * This file is part of OpenOffice.org. * * OpenOffice.org is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 3 * only, as published by the Free Software Foundation. * * OpenOffice.org is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License version 3 for more details * (a copy is included in the LICENSE file that accompanied this code). * * You should have received a copy of the GNU Lesser General Public License * version 3 along with OpenOffice.org. If not, see * * for a copy of the LGPLv3 License. * ************************************************************************/ #ifndef __com_sun_star_form_control_GridControl_idl__ #define __com_sun_star_form_control_GridControl_idl__ #ifndef __com_sun_star_awt_UnoControl_idl__ #include #endif #ifndef __com_sun_star_form_XGrid_idl__ #include #endif #ifndef __com_sun_star_form_XBoundComponent_idl__ #include #endif #ifndef __com_sun_star_form_XGridFieldDataSupplier_idl__ #include #endif #ifndef __com_sun_star_util_XModifyBroadcaster_idl__ #include #endif #ifndef __com_sun_star_util_XModeSelector_idl__ #include #endif #ifndef __com_sun_star_container_XIndexAccess_idl__ #include #endif #ifndef __com_sun_star_container_XEnumerationAccess_idl__ #include #endif #ifndef __com_sun_star_container_XContainer_idl__ #include #endif #ifndef __com_sun_star_frame_XDispatchProviderInterception_idl__ #include #endif #ifndef __com_sun_star_view_XSelectionSupplier_idl__ #include #endif //============================================================================= module com { module sun { module star { module form { published interface XGridControl; module control { //============================================================================= /** describes a table-like control for displaying data.

The model of the control has to support the GridControl service.

@see com::sun::star::awt::UnoControl @see com::sun::star::awt::UnoControlModel */ published service GridControl { service com::sun::star::awt::UnoControl; /** allows committing the content of the active cell of the control. */ interface com::sun::star::form::XBoundComponent; /** allows access to the active cell within the grid.

Only the column position can be modified using this interface, as the row position within a table control bound to a data source is given implicitly (by the cursor position of the data source).

*/ interface com::sun::star::form::XGrid; [optional] interface com::sun::star::form::XGridControl; /** used to broadcast modifications made by the user (within the active cell) */ interface com::sun::star::util::XModifyBroadcaster; /** allows access to the field data of the grid's current row in different formats */ [optional] interface com::sun::star::form::XGridFieldDataSupplier; /** allows access to objects wrapping a single column */ interface com::sun::star::container::XIndexAccess; /** allows creation of an enumeration for the column objects */ interface com::sun::star::container::XEnumerationAccess; /** is used to switch the operating modes of the control.

Besides the normal opreration mode (which is used to display the database form's data) the control may for instance support a filter mode.

*/ [optional] interface com::sun::star::util::XModeSelector; /** used to control the selection of rows in the grid control.

The selection used with the methods XSelectionSupplier::getSelection and XSelectionSupplier::select is a sequence of Any's.
Here the elements of the Sequence are the bookmarks (in the RowSet) of the (to-be-) selected rows.

*/ [optional] interface com::sun::star::view::XSelectionSupplier; /** allows external components to register dispatchers for some common form actions.

A grid control can contain own UI elements for traveling within the database form it belongs to (This concept seems to make sense, as a grid control - in opposite to other data aware controls - displayes not only one record at a time, but a larger number of records of the database form.)
With the help of this interface, external components which wish to handle such travelings themself can register interceptors for the actions in question.

Usual URLs to use include

.uno:FormSlots/moveToFirst
move the cursor to the first record
.uno:FormSlots/moveToPrev
move the cursor to the previous record
.uno:FormSlots/moveToNext
move the cursor to the next record
.uno:FormSlots/moveToLast
move the cursor to the last record
.uno:FormSlots/moveToNew
move the cursor to the (one and only) new record
.uno:FormSlots/undoRecord
undo the changes done so far in the current record

A concrete implementation of this service may offer more or less URLs, but if it offers some of the URLs above, it must stick to the meanings defined above.

*/ [optional] interface com::sun::star::frame::XDispatchProviderInterception; }; //============================================================================= }; }; }; }; }; #endif