1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23
24#ifndef __com_sun_star_drawing_framework_XPane2_idl__
25#define __com_sun_star_drawing_framework_XPane2_idl__
26
27#ifndef __com_sun_star_accessibility_XAccessible_idl__
28#include <com/sun/star/accessibility/XAccessible.idl>
29#endif
30
31module com { module sun { module star { module drawing { module framework {
32
33/** An extension of the XPane interface that adds support for
34    a) showing and hiding the windows that internally belong to the pane and
35    b) setting the accessibility object.
36    This is typically an optional interface.
37*/
38interface XPane2
39{
40    /** Return whether all windows that are used to implement the pane are
41        visible.
42        @returns <TRUE> when all windows of the pane are visible.
43    */
44    boolean isVisible ();
45
46    /** Hide or show the pane.  If there is more than one window used to
47        implement the pane then it is left to the implementation if one,
48        some, or all windows are hidden or shown as long as the pane becomes
49        hidden or visible.
50        @param bIsVisible
51            When <TRUE> then show the pane.  Hide it otherwise.
52    */
53    void setVisible ([in] boolean bIsVisible);
54
55    /** Set the accessibility object for the pane. When there is more than
56        one window used to implement the pane then the given accessibility
57        object is usually set at the topmost window.  However, the details
58        are implementation dependent.
59        @param xAccessible
60            May be an empty reference.
61    */
62    void setAccessible ([in] ::com::sun::star::accessibility::XAccessible xAccessible);
63
64    /** Return the accessibility object that is currently associated with
65        the windows that implement the pane.
66    */
67    ::com::sun::star::accessibility::XAccessible getAccessible ();
68};
69
70}; }; }; }; }; // ::com::sun::star::drawing::framework
71
72#endif
73