LibreOffice: com/sun/star/awt/tree/XTreeControl.idl Source File

LibreOffice LibreOffice 5.1 SDK API Reference

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

XTreeControl.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 #ifndef __com_sun_star_awt_tree_XTreeControl_idl__
20 #define __com_sun_star_awt_tree_XTreeControl_idl__
21
22 #include <com/sun/star/awt/XControl.idl>
23 #include <com/sun/star/awt/tree/XTreeExpansionListener.idl>
24 #include <com/sun/star/view/XMultiSelectionSupplier.idl>
25 #include <com/sun/star/awt/tree/XTreeEditListener.idl>
26
27
28 module com { module sun { module star { module awt { module tree {
29
30
35 interface XTreeControl
36 {
46 interface ::com::sun::star::view::XMultiSelectionSupplier;
47
48 // expanding/collapsing/visible
49
62 boolean isNodeExpanded( [in] XTreeNode Node )
63 raises( ::com::sun::star::lang::IllegalArgumentException );
64
77 boolean isNodeCollapsed( [in] XTreeNode Node )
78 raises( ::com::sun::star::lang::IllegalArgumentException );
79
95 void makeNodeVisible( [in] XTreeNode Node )
96 raises( com::sun::star::lang::IllegalArgumentException, ExpandVetoException );
97
107 boolean isNodeVisible( [in] XTreeNode Node )
108 raises( com::sun::star::lang::IllegalArgumentException );
109
123 void expandNode( [in] XTreeNode Node )
124 raises( com::sun::star::lang::IllegalArgumentException, ExpandVetoException );
125
138 void collapseNode( [in] XTreeNode Node )
139 raises( com::sun::star::lang::IllegalArgumentException, ExpandVetoException );
140
147 void addTreeExpansionListener( [in] XTreeExpansionListener Listener );
148
154 void removeTreeExpansionListener( [in] XTreeExpansionListener Listener );
155
161 [attribute] string DefaultExpandedGraphicURL;
162
168 [attribute] string DefaultCollapsedGraphicURL;
169
170 // tree geometry
171
181 XTreeNode getNodeForLocation( [in] long x, [in] long y );
182
195 XTreeNode getClosestNodeForLocation( [in] long x, [in] long y );
196
204 ::com::sun::star::awt::Rectangle
205 getNodeRect( [in] XTreeNode Node )
206 raises( ::com::sun::star::lang::IllegalArgumentException );
207
208 // tree editing
209
216 boolean isEditing();
217
225 boolean stopEditing();
226
230 void cancelEditing();
231
245 void startEditingAtNode( [in] XTreeNode Node )
246 raises( ::com::sun::star::lang::IllegalArgumentException );
247
254 void addTreeEditListener( [in] XTreeEditListener Listener );
255
261 void removeTreeEditListener( [in] XTreeEditListener Listener );
262 };
263
264
265 }; }; }; }; };
266
267 #endif
268
269 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
com::sun::star::awt::Rectangle
specifies a rectangular area by position and size.
Definition: Rectangle.idl:29
XMultiSelectionSupplier.idl
com
Definition: Ambiguous.idl:22
XTreeExpansionListener.idl
com::sun::star::awt::tree::XTreeControl::DefaultCollapsedGraphicURL
string DefaultCollapsedGraphicURL
If the given URL points to a loadable graphic, the graphic is rendered before collapsed non leaf node...
Definition: XTreeControl.idl:168
com::sun::star::awt::tree::XTreeExpansionListener
An instance of this interface can get notifications from a TreeControl when nodes are expanded or col...
Definition: XTreeExpansionListener.idl:37
com::sun::star::awt::tree::XTreeNode
An instance implementing this interface represents the model data for an entry in a XTreeDataModel...
Definition: XTreeNode.idl:35
com::sun::star::awt::tree::ExpandVetoException
Exception used to stop an expand/collapse from happening.
Definition: ExpandVetoException.idl:33
com::sun::star::lang::IllegalArgumentException
This exception is thrown to indicate that a method has passed an illegal or inappropriate argument...
Definition: IllegalArgumentException.idl:29
com::sun::star::awt::tree::XTreeEditListener
You can implement this interface and register with XTreeControl::addTreeEditListener() to get notific...
Definition: XTreeEditListener.idl:36
XTreeEditListener.idl
XControl.idl
com::sun::star::awt::tree::XTreeControl::DefaultExpandedGraphicURL
string DefaultExpandedGraphicURL
If the given URL points to a loadable graphic, the graphic is rendered before expanded non leaf nodes...
Definition: XTreeControl.idl:161
com::sun::star::awt::tree::XTreeControl
An interface to a control that displays a set of hierarchical data as an outline. ...
Definition: XTreeControl.idl:35