tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / offapi / com / sun / star / awt / grid / XGridDataModel.idl
blob13e5f42773ec9b0e29f690912acc788efa3581c2
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
22 module com { module sun { module star { module awt { module grid {
24 /** An instance of this interface is used by the UnoControlGrid to
25 retrieve the content data that is displayed in the actual control.
27 If you do not need your own model implementation, you can also use the DefaultGridDataModel.
29 @since OOo 3.3
31 published interface XGridDataModel
33 /** implements life time control for the component
35 interface ::com::sun::star::lang::XComponent;
37 /** allows cloning the complete data model
39 interface ::com::sun::star::util::XCloneable;
41 /** denotes the number of rows for which the model can provide data
43 [attribute, readonly] long RowCount;
45 /** denotes the number of columns for which the model can provide data
47 [attribute, readonly] long ColumnCount;
49 /** retrieves the data for a given cell
51 @throws ::com::sun::star::lang::IndexOutOfBoundsException
52 if the column or row index do not denote a valid cell position.
54 any getCellData( [in] long Column, [in] long RowIndex )
55 raises ( ::com::sun::star::lang::IndexOutOfBoundsException );
57 /** retrieves the tool tip to be displayed when the mouse hovers over a given cell
59 <p>At the moment, only string tool tips are supported.</p>
61 <p>If `VOID` is returned here, the cell's content will be displayed as tip, but only if it does
62 not fit into the cell.</p>
64 @throws ::com::sun::star::lang::IndexOutOfBoundsException
65 if the column or row index do not denote a valid cell position.
67 any getCellToolTip( [in] long Column, [in] long RowIndex )
68 raises ( ::com::sun::star::lang::IndexOutOfBoundsException );
70 /** retrieves the heading of a given row
72 <p>A grid control will usually paint a row's title in the header column of the respective row.</p>
74 <p>At the moment, only strings are supported as row headings.</p>
76 @throws ::com::sun::star::lang::IndexOutOfBoundsException
77 if the given index does not denote a valid row.
79 any
80 getRowHeading( [in] long RowIndex )
81 raises ( ::com::sun::star::lang::IndexOutOfBoundsException );
83 /** retrieves the data for a complete row
85 <p>This method is provided for performance and convenience reasons, it delivers the same result
86 as subsequent calls to getCellData() would.</p>
88 @param RowIndex
89 the index of the row whose data should is to be retrieved.
90 @throws ::com::sun::star::lang::IndexOutOfBoundsException
91 of the given row index does not denote a valid row.
93 sequence< any >
94 getRowData( [in] long RowIndex )
95 raises ( ::com::sun::star::lang::IndexOutOfBoundsException );
99 }; }; }; };};
101 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */