1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: PopupMenuController.idl,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef __com_sun_star_frame_PopupMenuController_idl__
32 #define __com_sun_star_frame_PopupMenuController_idl__
34 #ifndef __com_sun_star_frame_XPopupMenuController_idl__
35 #include
<com
/sun
/star
/frame
/XPopupMenuController.idl
>
38 #ifndef _com_sun_star_lang_XInitialization_idl__
39 #include
<com
/sun
/star
/lang
/XInitialization.idl
>
42 #ifndef __com_sun_star_frame_XStatusListener_idl__
43 #include
<com
/sun
/star
/frame
/XStatusListener.idl
>
46 #ifndef __com_sun_star_frame_XDispatchProvider_idl__
47 #include
<com
/sun
/star
/frame
/XDispatchProvider.idl
>
50 #ifndef __com_sun_star_lang_XComponent_idl__
51 #include
<com
/sun
/star
/lang
/XComponent.idl
>
55 //=============================================================================
57 module com
{ module sun
{ module star
{ module frame
{
59 //=============================================================================
61 /** provides access to a popup menu controller.
64 A popup menu controller is used to make special functions available to
65 users, which depend on runtime or context specific conditions.<br/>
66 A typical example for a popup menu controller can be a recent file list
67 implementation which provides a list of latest files that a user has
68 worked on. This list gets changes consistently during a work session.
74 service PopupMenuController
76 //-------------------------------------------------------------------------
77 /** supports functions to initialize and update a popup menu controller
81 A popup menu controller implementation gets initialized with a
82 <type scope="com::sun::star::awt">XPopupMenu</type> object. This assures
83 that a popup menu controller can be implemented with any UNO based
87 interface com
::sun
::star
::frame
::XPopupMenuController
;
89 //-------------------------------------------------------------------------
90 /** provides functions to initialize a popup menu controller with
91 specific data which are needed.
94 This interface should not directly used. A factory service is responsible to
95 initialize every controller correctly.<br/>
97 A popup menu controller needs at least two additional arguments
98 provided as <type scope="com::sun::star::beans">PropertyValue</type>:
100 <li><b>Frame</b><br>specifies the <type scope="com::sun::star::frame">XFrame</type>
101 instance to which the popup menu controller belongs to.</li>
102 <li><b>CommandURL</b><br>specifies which popup menu controller should be created.</li>
106 @see PopupMenuControllerFactory
108 interface com
::sun
::star
::lang
::XInitialization
;
110 //-------------------------------------------------------------------------
111 /** used to brief the popup menu controller with new status information.
114 A popup menu controller makes special functions available to users which
115 normally depend on the state of other data. This interface is used to
116 send this data to a controller implementation.
119 interface com
::sun
::star
::frame
::XStatusListener
;
121 //-------------------------------------------------------------------------
122 /** used to query for commands supported by the popup menu controller to
123 execute them directly.
126 A popup menu controller provides special functions which should be
127 available by the normal dispatch API. This optional interface enables
128 popup menu controller to be normal dispatch providers.<br/>
129 <b>Attention:</b><br/>
130 Popup menu controller functions must be specified using the following
131 the dispatch URL scheme: "vnd.sun.star.popup:" opaque_part [ "?" query ].
136 [optional] interface com
::sun
::star
::frame
::XDispatchProvider
;
138 //-------------------------------------------------------------------------
139 /** used to dispose popup menu controller by the owner instance.
142 A popup menu controller resides in a menu which has a limited
143 life-time. For correct life-time handling a popup menu
144 controller should support this interface.
149 [optional] interface com
::sun
::star
::lang
::XComponent
;
154 //=============================================================================