1b9e67834SAndre Fischer/************************************************************** 2b9e67834SAndre Fischer * 3b9e67834SAndre Fischer * Licensed to the Apache Software Foundation (ASF) under one 4b9e67834SAndre Fischer * or more contributor license agreements. See the NOTICE file 5b9e67834SAndre Fischer * distributed with this work for additional information 6b9e67834SAndre Fischer * regarding copyright ownership. The ASF licenses this file 7b9e67834SAndre Fischer * to you under the Apache License, Version 2.0 (the 8b9e67834SAndre Fischer * "License"); you may not use this file except in compliance 9b9e67834SAndre Fischer * with the License. You may obtain a copy of the License at 10b9e67834SAndre Fischer * 11b9e67834SAndre Fischer * http://www.apache.org/licenses/LICENSE-2.0 12b9e67834SAndre Fischer * 13b9e67834SAndre Fischer * Unless required by applicable law or agreed to in writing, 14b9e67834SAndre Fischer * software distributed under the License is distributed on an 15b9e67834SAndre Fischer * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16b9e67834SAndre Fischer * KIND, either express or implied. See the License for the 17b9e67834SAndre Fischer * specific language governing permissions and limitations 18b9e67834SAndre Fischer * under the License. 19b9e67834SAndre Fischer * 20b9e67834SAndre Fischer *************************************************************/ 21b9e67834SAndre Fischer 22b9e67834SAndre Fischer 23b9e67834SAndre Fischer 24b9e67834SAndre Fischer#ifndef __com_sun_star_ui_XSidebarPanel_idl__ 25b9e67834SAndre Fischer#define __com_sun_star_ui_XSidebarPanel_idl__ 26b9e67834SAndre Fischer 27b9e67834SAndre Fischer#ifndef __com_sun_star_uno_XInterface_idl__ 28b9e67834SAndre Fischer#include <com/sun/star/uno/XInterface.idl> 29b9e67834SAndre Fischer#endif 30b9e67834SAndre Fischer 31b9e67834SAndre Fischer#ifndef __com_sun_star_rendering_XCanvas_idl__ 32b9e67834SAndre Fischer#include <com/sun/star/rendering/XCanvas.idl> 33b9e67834SAndre Fischer#endif 34b9e67834SAndre Fischer 35b9e67834SAndre Fischer#ifndef __com_sun_star_awt_Point_idl__ 36b9e67834SAndre Fischer#include <com/sun/star/awt/Point.idl> 37b9e67834SAndre Fischer#endif 38b9e67834SAndre Fischer 39b9e67834SAndre Fischer#ifndef __com_sun_star_beans_XPropertySet_idl__ 40b9e67834SAndre Fischer#include <com/sun/star/beans/XPropertySet.idl> 41b9e67834SAndre Fischer#endif 42*7a32b0c8SAndre Fischer#ifndef __com_sun_star_ui_LayoutSize_idl__ 43*7a32b0c8SAndre Fischer#include <com/sun/star/ui/LayoutSize.idl> 44*7a32b0c8SAndre Fischer#endif 45b9e67834SAndre Fischer 46b9e67834SAndre Fischermodule com { module sun { module star { module ui { 47b9e67834SAndre Fischer 48*7a32b0c8SAndre Fischer/** Optional interface of sidebar panels. 49b9e67834SAndre Fischer*/ 50b9e67834SAndre Fischerinterface XSidebarPanel 51b9e67834SAndre Fischer{ 52*7a32b0c8SAndre Fischer /** For a given width of the container the layouter asks every ui element for its 53*7a32b0c8SAndre Fischer optimal height. 54*7a32b0c8SAndre Fischer 55*7a32b0c8SAndre Fischer The height to which a ui element is set may differ from the returned value. 56*7a32b0c8SAndre Fischer 57*7a32b0c8SAndre Fischer The height is set via the XWindow interface. 58b9e67834SAndre Fischer */ 59*7a32b0c8SAndre Fischer LayoutSize getHeightForWidth ( [in] long nWidth); 60b9e67834SAndre Fischer 61*7a32b0c8SAndre Fischer /** If the panel has a menu or dialog then show it now. 62b9e67834SAndre Fischer */ 63*7a32b0c8SAndre Fischer void showMenu (); 64*7a32b0c8SAndre Fischer 65*7a32b0c8SAndre Fischer /** Return whether the panel supports (ie wants to be displayed 66*7a32b0c8SAndre Fischer for) the given context. 67*7a32b0c8SAndre Fischer 68*7a32b0c8SAndre Fischer The decision of whether to display a panel for a given context 69*7a32b0c8SAndre Fischer depends on two sources of information. 70*7a32b0c8SAndre Fischer One is the configuration 71*7a32b0c8SAndre Fischer (org.openoffice.Office.UI/Sidebar/Content/PanelList). 72*7a32b0c8SAndre Fischer The other is this function. 73b9e67834SAndre Fischer 74*7a32b0c8SAndre Fischer @param sApplicationName 75*7a32b0c8SAndre Fischer Name of an application (reference of valid values needed, 76*7a32b0c8SAndre Fischer Wiki page?) 77*7a32b0c8SAndre Fischer @param sContextName 78*7a32b0c8SAndre Fischer Name of the context in the scope of the application 79*7a32b0c8SAndre Fischer (reference needed). 80b9e67834SAndre Fischer */ 81*7a32b0c8SAndre Fischer boolean isContextSupported ( 82*7a32b0c8SAndre Fischer [in] string sApplicationName, 83*7a32b0c8SAndre Fischer [in] string sContextName); 84b9e67834SAndre Fischer} ; 85b9e67834SAndre Fischer 86b9e67834SAndre Fischer} ; } ; } ; } ; 87b9e67834SAndre Fischer 88b9e67834SAndre Fischer#endif 89