1*cdf0e10cSrcweir/************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir#ifndef __com_sun_star_frame_StatusbarController_idl__ 28*cdf0e10cSrcweir#define __com_sun_star_frame_StatusbarController_idl__ 29*cdf0e10cSrcweir 30*cdf0e10cSrcweir#ifndef __com_sun_star_lang_XInitialization_idl__ 31*cdf0e10cSrcweir#include <com/sun/star/lang/XInitialization.idl> 32*cdf0e10cSrcweir#endif 33*cdf0e10cSrcweir 34*cdf0e10cSrcweir#ifndef __com_sun_star_util_XUpdatable_idl__ 35*cdf0e10cSrcweir#include <com/sun/star/util/XUpdatable.idl> 36*cdf0e10cSrcweir#endif 37*cdf0e10cSrcweir 38*cdf0e10cSrcweir#ifndef __com_sun_star_frame_XStatusListener_idl__ 39*cdf0e10cSrcweir#include <com/sun/star/frame/XStatusListener.idl> 40*cdf0e10cSrcweir#endif 41*cdf0e10cSrcweir 42*cdf0e10cSrcweir#ifndef __com_sun_star_frame_XStatusbarController_idl__ 43*cdf0e10cSrcweir#include <com/sun/star/frame/XStatusbarController.idl> 44*cdf0e10cSrcweir#endif 45*cdf0e10cSrcweir 46*cdf0e10cSrcweir//============================================================================= 47*cdf0e10cSrcweir 48*cdf0e10cSrcweir module com { module sun { module star { module frame { 49*cdf0e10cSrcweir 50*cdf0e10cSrcweir//============================================================================= 51*cdf0e10cSrcweir/** is an abstract service for a component which offers a more complex user 52*cdf0e10cSrcweir interface to users within a status bar. 53*cdf0e10cSrcweir 54*cdf0e10cSrcweir <p> 55*cdf0e10cSrcweir A generic status bar function is represented as a text field which 56*cdf0e10cSrcweir provides status information to the user. A status bar controller can be 57*cdf0e10cSrcweir added to a status bar and provides information or functions with a more 58*cdf0e10cSrcweir sophisticated user interface.<br/> 59*cdf0e10cSrcweir A typical example for a status bar controller is the zoom level chooser 60*cdf0e10cSrcweir within the statusbar. It provides an option to change the zoom level of 61*cdf0e10cSrcweir an application. 62*cdf0e10cSrcweir <p> 63*cdf0e10cSrcweir 64*cdf0e10cSrcweir @see com::sun::star::frame::XDispatchProvider 65*cdf0e10cSrcweir @see com::sun::star::frame::XStatusbarController 66*cdf0e10cSrcweir 67*cdf0e10cSrcweir @since OOo 2.0 68*cdf0e10cSrcweir */ 69*cdf0e10cSrcweir 70*cdf0e10cSrcweirservice StatusbarController 71*cdf0e10cSrcweir{ 72*cdf0e10cSrcweir //------------------------------------------------------------------------- 73*cdf0e10cSrcweir /** with this interface a component can receive events if a feature has 74*cdf0e10cSrcweir changed. 75*cdf0e10cSrcweir 76*cdf0e10cSrcweir <p> 77*cdf0e10cSrcweir The status bar controller implementation should register itself as a 78*cdf0e10cSrcweir listener when its <member scope="com::sun::star::util">XUpdatable</member> 79*cdf0e10cSrcweir interface has been called. 80*cdf0e10cSrcweir </p> 81*cdf0e10cSrcweir */ 82*cdf0e10cSrcweir interface com::sun::star::frame::XStatusListener; 83*cdf0e10cSrcweir 84*cdf0e10cSrcweir /** used to initialize a component with required arguments. 85*cdf0e10cSrcweir 86*cdf0e10cSrcweir <b>A status bar controller needs at least three additional arguments 87*cdf0e10cSrcweir provided as <type scope="com::sun::star::beans">PropertyValue</type>: 88*cdf0e10cSrcweir <ul> 89*cdf0e10cSrcweir <li><b>Frame</b><br>a 90*cdf0e10cSrcweir <type scope="com::sun::star::frame">XFrame</type> instance 91*cdf0e10cSrcweir to which the status bar controller belongs.</li> 92*cdf0e10cSrcweir <li><b>CommandURL</b><br>a string which specifies the command 93*cdf0e10cSrcweir associated with the statusbar controller. The command is 94*cdf0e10cSrcweir used to identify the status bar controller 95*cdf0e10cSrcweir implementation.</li> 96*cdf0e10cSrcweir <li><b>ServiceManager</b><br>a <type scope="com::sun::star::lang"> 97*cdf0e10cSrcweir XMultiServiceFactory</type> instance which can be used to 98*cdf0e10cSrcweir create additional UNO services.</li> 99*cdf0e10cSrcweir <li><b>Parent</b><br>a <type scope="com::sun::star::awt">Window</type> 100*cdf0e10cSrcweir instance which represents the parent window (status bar 101*cdf0e10cSrcweir window).</li> 102*cdf0e10cSrcweir <li><b>Identifier</b><br>an integer value which is the unique id 103*cdf0e10cSrcweir used by the status bar implementation to identify a status 104*cdf0e10cSrcweir bar entry. This value is currently only used by internal 105*cdf0e10cSrcweir OpenOffice.org status bar controller implementations.</li> 106*cdf0e10cSrcweir </ul> 107*cdf0e10cSrcweir */ 108*cdf0e10cSrcweir interface com::sun::star::lang::XInitialization; 109*cdf0e10cSrcweir 110*cdf0e10cSrcweir /** used to notify an implementation that it needs to add its listener or 111*cdf0e10cSrcweir remove and add them again. 112*cdf0e10cSrcweir 113*cdf0e10cSrcweir <p> 114*cdf0e10cSrcweir A status bar controller instance is ready for use after this call has 115*cdf0e10cSrcweir been made the first time. The status bar implementation guarentees that 116*cdf0e10cSrcweir the controller's item window has been added to the status bar and its 117*cdf0e10cSrcweir reference is held by it. 118*cdf0e10cSrcweir </p> 119*cdf0e10cSrcweir */ 120*cdf0e10cSrcweir interface com::sun::star::util::XUpdatable; 121*cdf0e10cSrcweir 122*cdf0e10cSrcweir //------------------------------------------------------------------------- 123*cdf0e10cSrcweir /** used to notify changed features and requests for additional user 124*cdf0e10cSrcweir interface items. 125*cdf0e10cSrcweir 126*cdf0e10cSrcweir <p> 127*cdf0e10cSrcweir Mostly used by a status bar implementation to forward information to 128*cdf0e10cSrcweir and request services from a status bar controller component. This 129*cdf0e10cSrcweir interface must be useable after 130*cdf0e10cSrcweir <member scope="com::sun::star::lang">XInitialitation::initialize</member> 131*cdf0e10cSrcweir has been called. The behavior of the interface is undefined if the 132*cdf0e10cSrcweir controller component hasn't been initialized. 133*cdf0e10cSrcweir </p> 134*cdf0e10cSrcweir */ 135*cdf0e10cSrcweir interface com::sun::star::frame::XStatusbarController; 136*cdf0e10cSrcweir}; 137*cdf0e10cSrcweir 138*cdf0e10cSrcweir//============================================================================= 139*cdf0e10cSrcweir 140*cdf0e10cSrcweir}; }; }; }; 141*cdf0e10cSrcweir 142*cdf0e10cSrcweir#endif 143