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_FrameAction_idl__ 28*cdf0e10cSrcweir#define __com_sun_star_frame_FrameAction_idl__ 29*cdf0e10cSrcweir 30*cdf0e10cSrcweir 31*cdf0e10cSrcweir//============================================================================= 32*cdf0e10cSrcweir 33*cdf0e10cSrcweir module com { module sun { module star { module frame { 34*cdf0e10cSrcweir 35*cdf0e10cSrcweir//============================================================================= 36*cdf0e10cSrcweir/** these are the events which can happen to the components in frames 37*cdf0e10cSrcweir of the desktop 38*cdf0e10cSrcweir 39*cdf0e10cSrcweir <p> 40*cdf0e10cSrcweir Interest listener can get informations about loaded/realoed or unloaded 41*cdf0e10cSrcweir components into a <type>Frame</type>. 42*cdf0e10cSrcweir </p> 43*cdf0e10cSrcweir 44*cdf0e10cSrcweir @see XFrame 45*cdf0e10cSrcweir @see XFrameActionListener 46*cdf0e10cSrcweir @see FrameActionEvent 47*cdf0e10cSrcweir */ 48*cdf0e10cSrcweirpublished enum FrameAction 49*cdf0e10cSrcweir{ 50*cdf0e10cSrcweir //------------------------------------------------------------------------- 51*cdf0e10cSrcweir /** an event of this kind is broadcast whenever a component is 52*cdf0e10cSrcweir attached to a frame 53*cdf0e10cSrcweir 54*cdf0e10cSrcweir <p> 55*cdf0e10cSrcweir This is almost the same as the instantiation of the component 56*cdf0e10cSrcweir within that frame. The component is attached to the frame 57*cdf0e10cSrcweir immediately before this event is broadcast. 58*cdf0e10cSrcweir </p> 59*cdf0e10cSrcweir 60*cdf0e10cSrcweir @see XFrame::setComponent() 61*cdf0e10cSrcweir */ 62*cdf0e10cSrcweir COMPONENT_ATTACHED, 63*cdf0e10cSrcweir 64*cdf0e10cSrcweir //------------------------------------------------------------------------- 65*cdf0e10cSrcweir /** an event of this kind is broadcast whenever a component is 66*cdf0e10cSrcweir detaching from a frame 67*cdf0e10cSrcweir 68*cdf0e10cSrcweir <p> 69*cdf0e10cSrcweir This is quite the same as the destruction of the component 70*cdf0e10cSrcweir which was in that frame. At the moment when the event is broadcast 71*cdf0e10cSrcweir the component is still attached to the frame but in the next 72*cdf0e10cSrcweir moment it won't. 73*cdf0e10cSrcweir </p> 74*cdf0e10cSrcweir 75*cdf0e10cSrcweir @see XFrame::setComponent() 76*cdf0e10cSrcweir */ 77*cdf0e10cSrcweir COMPONENT_DETACHING, 78*cdf0e10cSrcweir 79*cdf0e10cSrcweir //------------------------------------------------------------------------- 80*cdf0e10cSrcweir /** an event of this kind is broadcast whenever a component is 81*cdf0e10cSrcweir attached to a new model. 82*cdf0e10cSrcweir 83*cdf0e10cSrcweir <p> 84*cdf0e10cSrcweir In this case the component remains the same but operates 85*cdf0e10cSrcweir on a new model component. 86*cdf0e10cSrcweir </p> 87*cdf0e10cSrcweir */ 88*cdf0e10cSrcweir COMPONENT_REATTACHED, 89*cdf0e10cSrcweir 90*cdf0e10cSrcweir //------------------------------------------------------------------------- 91*cdf0e10cSrcweir /** an event of this kind is broadcast whenever a component gets 92*cdf0e10cSrcweir activated 93*cdf0e10cSrcweir 94*cdf0e10cSrcweir <p> 95*cdf0e10cSrcweir Activations are broacast from the top component which was 96*cdf0e10cSrcweir not active before, down to the inner most component. 97*cdf0e10cSrcweir </p> 98*cdf0e10cSrcweir 99*cdf0e10cSrcweir @see XFrame::activate() 100*cdf0e10cSrcweir */ 101*cdf0e10cSrcweir FRAME_ACTIVATED, 102*cdf0e10cSrcweir 103*cdf0e10cSrcweir //------------------------------------------------------------------------- 104*cdf0e10cSrcweir /** an event of this kind is broadcasted immediately before the 105*cdf0e10cSrcweir component is deactivated 106*cdf0e10cSrcweir 107*cdf0e10cSrcweir <p> 108*cdf0e10cSrcweir Deactivations are broadcast from the innermost component which 109*cdf0e10cSrcweir does not stay active up to the outer most component which does not 110*cdf0e10cSrcweir stay active. 111*cdf0e10cSrcweir </p> 112*cdf0e10cSrcweir 113*cdf0e10cSrcweir @see XFrame::deactivate() 114*cdf0e10cSrcweir */ 115*cdf0e10cSrcweir FRAME_DEACTIVATING, 116*cdf0e10cSrcweir 117*cdf0e10cSrcweir //------------------------------------------------------------------------- 118*cdf0e10cSrcweir /** an event of this kind is broadcast whenever a component changes 119*cdf0e10cSrcweir its internal context (i.e., the selection). 120*cdf0e10cSrcweir 121*cdf0e10cSrcweir <p> 122*cdf0e10cSrcweir If the activation status within a frame changes, this counts as 123*cdf0e10cSrcweir a context change too. 124*cdf0e10cSrcweir </p> 125*cdf0e10cSrcweir 126*cdf0e10cSrcweir @see XFrame::contextChanged() 127*cdf0e10cSrcweir */ 128*cdf0e10cSrcweir CONTEXT_CHANGED, 129*cdf0e10cSrcweir 130*cdf0e10cSrcweir //------------------------------------------------------------------------- 131*cdf0e10cSrcweir /** an event of this kind is broadcast by an active frame when it 132*cdf0e10cSrcweir is getting UI control (tool control). 133*cdf0e10cSrcweir 134*cdf0e10cSrcweir @see XFrame::activate() 135*cdf0e10cSrcweir */ 136*cdf0e10cSrcweir FRAME_UI_ACTIVATED, 137*cdf0e10cSrcweir 138*cdf0e10cSrcweir //------------------------------------------------------------------------- 139*cdf0e10cSrcweir /** an event of this kind is broadcast by an active frame when it 140*cdf0e10cSrcweir is losing UI control (tool control). 141*cdf0e10cSrcweir 142*cdf0e10cSrcweir @see XFrame::deactivate() 143*cdf0e10cSrcweir */ 144*cdf0e10cSrcweir FRAME_UI_DEACTIVATING 145*cdf0e10cSrcweir}; 146*cdf0e10cSrcweir 147*cdf0e10cSrcweir//============================================================================= 148*cdf0e10cSrcweir 149*cdf0e10cSrcweir}; }; }; }; 150*cdf0e10cSrcweir 151*cdf0e10cSrcweir#endif 152