xref: /trunk/main/offapi/com/sun/star/ui/XSidebarPanel.idl (revision b9e67834)
1*b9e67834SAndre Fischer/**************************************************************
2*b9e67834SAndre Fischer *
3*b9e67834SAndre Fischer * Licensed to the Apache Software Foundation (ASF) under one
4*b9e67834SAndre Fischer * or more contributor license agreements.  See the NOTICE file
5*b9e67834SAndre Fischer * distributed with this work for additional information
6*b9e67834SAndre Fischer * regarding copyright ownership.  The ASF licenses this file
7*b9e67834SAndre Fischer * to you under the Apache License, Version 2.0 (the
8*b9e67834SAndre Fischer * "License"); you may not use this file except in compliance
9*b9e67834SAndre Fischer * with the License.  You may obtain a copy of the License at
10*b9e67834SAndre Fischer *
11*b9e67834SAndre Fischer *   http://www.apache.org/licenses/LICENSE-2.0
12*b9e67834SAndre Fischer *
13*b9e67834SAndre Fischer * Unless required by applicable law or agreed to in writing,
14*b9e67834SAndre Fischer * software distributed under the License is distributed on an
15*b9e67834SAndre Fischer * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*b9e67834SAndre Fischer * KIND, either express or implied.  See the License for the
17*b9e67834SAndre Fischer * specific language governing permissions and limitations
18*b9e67834SAndre Fischer * under the License.
19*b9e67834SAndre Fischer *
20*b9e67834SAndre Fischer *************************************************************/
21*b9e67834SAndre Fischer
22*b9e67834SAndre Fischer
23*b9e67834SAndre Fischer
24*b9e67834SAndre Fischer#ifndef __com_sun_star_ui_XSidebarPanel_idl__
25*b9e67834SAndre Fischer#define __com_sun_star_ui_XSidebarPanel_idl__
26*b9e67834SAndre Fischer
27*b9e67834SAndre Fischer#ifndef __com_sun_star_uno_XInterface_idl__
28*b9e67834SAndre Fischer#include <com/sun/star/uno/XInterface.idl>
29*b9e67834SAndre Fischer#endif
30*b9e67834SAndre Fischer
31*b9e67834SAndre Fischer#ifndef __com_sun_star_rendering_XCanvas_idl__
32*b9e67834SAndre Fischer#include <com/sun/star/rendering/XCanvas.idl>
33*b9e67834SAndre Fischer#endif
34*b9e67834SAndre Fischer
35*b9e67834SAndre Fischer#ifndef __com_sun_star_awt_Point_idl__
36*b9e67834SAndre Fischer#include <com/sun/star/awt/Point.idl>
37*b9e67834SAndre Fischer#endif
38*b9e67834SAndre Fischer
39*b9e67834SAndre Fischer#ifndef __com_sun_star_beans_XPropertySet_idl__
40*b9e67834SAndre Fischer#include <com/sun/star/beans/XPropertySet.idl>
41*b9e67834SAndre Fischer#endif
42*b9e67834SAndre Fischer
43*b9e67834SAndre Fischermodule com { module sun { module star { module ui {
44*b9e67834SAndre Fischer
45*b9e67834SAndre Fischer/** Give access to data for one sidebar panel.
46*b9e67834SAndre Fischer*/
47*b9e67834SAndre Fischerinterface XSidebarPanel
48*b9e67834SAndre Fischer{
49*b9e67834SAndre Fischer    /** Return a canvas that will paint directly into the panel.
50*b9e67834SAndre Fischer        It is created on the first call.
51*b9e67834SAndre Fischer    */
52*b9e67834SAndre Fischer    rendering::XCanvas getCanvas ();
53*b9e67834SAndre Fischer
54*b9e67834SAndre Fischer    /** Return the position of the content area (without any border or decoration)
55*b9e67834SAndre Fischer        in screen coordinates.
56*b9e67834SAndre Fischer    */
57*b9e67834SAndre Fischer    awt::Point getPositionOnScreen ();
58*b9e67834SAndre Fischer
59*b9e67834SAndre Fischer    /** Return a property set that represents the theme that is used to render the panel and its controls.
60*b9e67834SAndre Fischer        Note that the same properties are shared by all panels and decks.
61*b9e67834SAndre Fischer    */
62*b9e67834SAndre Fischer    beans::XPropertySet getThemeProperties ();
63*b9e67834SAndre Fischer} ;
64*b9e67834SAndre Fischer
65*b9e67834SAndre Fischer} ; } ; } ; } ;
66*b9e67834SAndre Fischer
67*b9e67834SAndre Fischer#endif
68