1*b1cdbd2cSJim Jagielski/**************************************************************
2*b1cdbd2cSJim Jagielski *
3*b1cdbd2cSJim Jagielski * Licensed to the Apache Software Foundation (ASF) under one
4*b1cdbd2cSJim Jagielski * or more contributor license agreements.  See the NOTICE file
5*b1cdbd2cSJim Jagielski * distributed with this work for additional information
6*b1cdbd2cSJim Jagielski * regarding copyright ownership.  The ASF licenses this file
7*b1cdbd2cSJim Jagielski * to you under the Apache License, Version 2.0 (the
8*b1cdbd2cSJim Jagielski * "License"); you may not use this file except in compliance
9*b1cdbd2cSJim Jagielski * with the License.  You may obtain a copy of the License at
10*b1cdbd2cSJim Jagielski *
11*b1cdbd2cSJim Jagielski *   http://www.apache.org/licenses/LICENSE-2.0
12*b1cdbd2cSJim Jagielski *
13*b1cdbd2cSJim Jagielski * Unless required by applicable law or agreed to in writing,
14*b1cdbd2cSJim Jagielski * software distributed under the License is distributed on an
15*b1cdbd2cSJim Jagielski * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*b1cdbd2cSJim Jagielski * KIND, either express or implied.  See the License for the
17*b1cdbd2cSJim Jagielski * specific language governing permissions and limitations
18*b1cdbd2cSJim Jagielski * under the License.
19*b1cdbd2cSJim Jagielski *
20*b1cdbd2cSJim Jagielski *************************************************************/
21*b1cdbd2cSJim Jagielski
22*b1cdbd2cSJim Jagielski
23*b1cdbd2cSJim Jagielski
24*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_drawing_framework_XTabBar_idl__
25*b1cdbd2cSJim Jagielski#define __com_sun_star_drawing_framework_XTabBar_idl__
26*b1cdbd2cSJim Jagielski
27*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_uno_XInterface_idl__
28*b1cdbd2cSJim Jagielski#include <com/sun/star/uno/XInterface.idl>
29*b1cdbd2cSJim Jagielski#endif
30*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_awt_XWindow_idl__
31*b1cdbd2cSJim Jagielski#include <com/sun/star/awt/XWindow.idl>
32*b1cdbd2cSJim Jagielski#endif
33*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_drawing_framework_TabBarButton_idl__
34*b1cdbd2cSJim Jagielski#include <com/sun/star/drawing/framework/TabBarButton.idl>
35*b1cdbd2cSJim Jagielski#endif
36*b1cdbd2cSJim Jagielski
37*b1cdbd2cSJim Jagielskimodule com { module sun { module star { module drawing { module framework {
38*b1cdbd2cSJim Jagielski
39*b1cdbd2cSJim Jagielski/** UI control for the selection of views in a pane.
40*b1cdbd2cSJim Jagielski    <p>Every tab of a tab bar has, besides its localized title and help
41*b1cdbd2cSJim Jagielski    text, the URL of a view.  A possible alternative would be to use a
42*b1cdbd2cSJim Jagielski    command URL instead of the view URL.</p>
43*b1cdbd2cSJim Jagielski    <p>In the current Impress implementation a tab bar is only used for the
44*b1cdbd2cSJim Jagielski    center pane to switch between views in the center pane.  Tab bars can
45*b1cdbd2cSJim Jagielski    make sense for other panes as well, i.e. for showing either the slide
46*b1cdbd2cSJim Jagielski    sorter or the outline view in the left pane.</p>
47*b1cdbd2cSJim Jagielski    <p>Tab bar buttons are identified by their resource id.  Note that
48*b1cdbd2cSJim Jagielski    because the resource anchors are all the same (the tab bar), it is the
49*b1cdbd2cSJim Jagielski    resource URL that really identifies a button. There can not be two
50*b1cdbd2cSJim Jagielski    buttons with the same resource id.</p>
51*b1cdbd2cSJim Jagielski    </p>
52*b1cdbd2cSJim Jagielski    <p>A better place for this interface (in an extended version) would be
53*b1cdbd2cSJim Jagielski    <code>com::sun::star::awt</code></p>
54*b1cdbd2cSJim Jagielski    @see TabBarButton
55*b1cdbd2cSJim Jagielski*/
56*b1cdbd2cSJim Jagielskiinterface XTabBar
57*b1cdbd2cSJim Jagielski{
58*b1cdbd2cSJim Jagielski    /** Add a tab bar button to the right of another one.
59*b1cdbd2cSJim Jagielski        @param aButton
60*b1cdbd2cSJim Jagielski            The new tab bar button that is to be inserted.  If a button with
61*b1cdbd2cSJim Jagielski            the same resource id is already present than that is removed before the
62*b1cdbd2cSJim Jagielski            new button is inserted.
63*b1cdbd2cSJim Jagielski        @param aAnchor
64*b1cdbd2cSJim Jagielski            The new button is inserted to the right of this button.  When
65*b1cdbd2cSJim Jagielski            its ResourceId is empty then the new button is inserted at the left
66*b1cdbd2cSJim Jagielski            most position.
67*b1cdbd2cSJim Jagielski    */
68*b1cdbd2cSJim Jagielski    void addTabBarButtonAfter ([in] TabBarButton aButton, [in] TabBarButton aAnchor);
69*b1cdbd2cSJim Jagielski
70*b1cdbd2cSJim Jagielski    /** Add a tab bar button at the right most position.
71*b1cdbd2cSJim Jagielski        @param aButton
72*b1cdbd2cSJim Jagielski            The new tab bar button that is to be inserted.
73*b1cdbd2cSJim Jagielski    */
74*b1cdbd2cSJim Jagielski    void appendTabBarButton ([in] TabBarButton aButton);
75*b1cdbd2cSJim Jagielski
76*b1cdbd2cSJim Jagielski    /** Remove a tab bar button.
77*b1cdbd2cSJim Jagielski        @param aButton
78*b1cdbd2cSJim Jagielski            The tab bar button to remove.  When there is no button with the
79*b1cdbd2cSJim Jagielski            specified resource id then this call is silently ignored.
80*b1cdbd2cSJim Jagielski    */
81*b1cdbd2cSJim Jagielski    void removeTabBarButton ([in] TabBarButton aButton);
82*b1cdbd2cSJim Jagielski
83*b1cdbd2cSJim Jagielski    /** Test whether the specified button exists in the tab bar.
84*b1cdbd2cSJim Jagielski        @param aButton
85*b1cdbd2cSJim Jagielski            The tab bar button whose existence is tested.
86*b1cdbd2cSJim Jagielski        @return
87*b1cdbd2cSJim Jagielski            Returns <TRUE/> when the button exists.
88*b1cdbd2cSJim Jagielski    */
89*b1cdbd2cSJim Jagielski    boolean hasTabBarButton ([in] TabBarButton aButton);
90*b1cdbd2cSJim Jagielski
91*b1cdbd2cSJim Jagielski    /** Return a sequence of all the tab bar buttons.
92*b1cdbd2cSJim Jagielski        <p>Their order reflects the visible order in the tab bar.</p>
93*b1cdbd2cSJim Jagielski        <p>This method can be used when
94*b1cdbd2cSJim Jagielski        <member>addTabBarButtonAfter()</member> does not provide enough
95*b1cdbd2cSJim Jagielski        control as to where to insert a new button.</p>
96*b1cdbd2cSJim Jagielski    */
97*b1cdbd2cSJim Jagielski    sequence<TabBarButton> getTabBarButtons ();
98*b1cdbd2cSJim Jagielski};
99*b1cdbd2cSJim Jagielski
100*b1cdbd2cSJim Jagielski}; }; }; }; }; // ::com::sun::star::drawing::framework
101*b1cdbd2cSJim Jagielski
102*b1cdbd2cSJim Jagielski#endif
103