LibreOffice LibreOffice 26.2 SDK API Reference

XGridColumnModel.idl
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20
21module com { module sun { module star { module awt { module grid {
22
23
31published interface XGridColumnModel
32{
35 interface ::com::sun::star::lang::XComponent;
36
39 interface ::com::sun::star::container::XContainer;
40
43 interface ::com::sun::star::util::XCloneable;
44
50 long getColumnCount();
51
57 XGridColumn
58 createColumn();
59
77 long addColumn( [in] XGridColumn column )
78 raises ( ::com::sun::star::lang::IllegalArgumentException );
79
89 void removeColumn( [in] long ColumnIndex )
90 raises ( ::com::sun::star::lang::IndexOutOfBoundsException );
91
96 sequence<XGridColumn> getColumns();
97
104 XGridColumn getColumn( [in] long index)
105 raises ( ::com::sun::star::lang::IndexOutOfBoundsException );
106
117 void setDefaultColumns([in] long elements);
118};
119
120
121}; }; }; }; };
122
123/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
com::sun::star::lang::IllegalArgumentException
This exception is thrown to indicate that a method has passed an illegal or inappropriate argument.
Definition: IllegalArgumentException.idl:27
com::sun::star::lang::IndexOutOfBoundsException
This exception is thrown to indicate that a container has been accessed with an illegal index.
Definition: IndexOutOfBoundsException.idl:31
com::sun::star::awt::grid::XGridColumnModel
An instance of this interface is used by the UnoControlGrid to retrieve the column structure that is ...
Definition: XGridColumnModel.idl:32
com::sun::star::awt::grid::XGridColumnModel::removeColumn
void removeColumn([in] long ColumnIndex)
removes a column from the model
com::sun::star::awt::grid::XGridColumnModel::getColumn
XGridColumn getColumn([in] long index)
Returns a specific column.
com::sun::star::awt::grid::XGridColumnModel::getColumns
sequence< XGridColumn > getColumns()
Returns all columns of the model.
com::sun::star::awt::grid::XGridColumnModel::setDefaultColumns
void setDefaultColumns([in] long elements)
Fills the model with the given number of default columns.
com::sun::star::awt::grid::XGridColumnModel::getColumnCount
long getColumnCount()
Returns the number of columns.
com::sun::star::awt::grid::XGridColumnModel::addColumn
long addColumn([in] XGridColumn column)
Adds a column to the model.
com::sun::star::awt::grid::XGridColumnModel::createColumn
XGridColumn createColumn()
creates a new column for use with the column model.
com::sun::star::awt::grid::XGridColumn
The XGridColumn defines the properties and behavior of a column in a grid control.
Definition: XGridColumn.idl:29
com
Definition: Ambiguous.idl:20