/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * *************************************************************/ #ifndef __com_sun_star_awt_UnoControlGrid_idl__ #define __com_sun_star_awt_UnoControlGrid_idl__ #ifndef __com_sun_star_awt_UnoControl_idl__ #include #endif #ifndef __com_sun_star_awt_grid_XGridControl_idl__ #include #endif #ifndef __com_sun_star_awt_grid_XGridRowSelection_idl__ #include #endif //============================================================================= module com { module sun { module star { module awt { module grid { //============================================================================= //============================================================================= /** A control that displays a set of tabular data.

The Column Model

The horizontal structure of the grid is defined by the XGridColumnModel implemented in DefaultGridColumnModel The XGridColumn implemented in describes the properties and behavior of a single column. Use the XGridColumnModel::addColumn() to add a column to the column model.

The Data Model

All row data are stored in the XGridDataModel. Use the DefaultGridDataModel to add XGridDataModel::addRow() or remove XGridDataModel::removeRow() rows.

The column and data model must be set at the UnoControlGridModel::ColumnModel and UnoControlGridModel::GridDataModel properties.

Selection

If you are interested in knowing when the selection changes implement a XGridSelectionListener and add the instance with the method XGridRowSelection::addSelectionListener(). You than will be notified for any selection change.

The XGridSelection interface provides a bunch of methods to set and get selection for the grid control.

@since OOo 3.3 */ service UnoControlGrid { service com::sun::star::awt::UnoControl; interface ::com::sun::star::awt::grid::XGridControl; interface ::com::sun::star::awt::grid::XGridRowSelection; }; //============================================================================= }; }; }; };}; #endif