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
28*cdf0e10cSrcweir#ifndef __com_sun_star_frame_PopupMenuController_idl__
29*cdf0e10cSrcweir#define __com_sun_star_frame_PopupMenuController_idl__
30*cdf0e10cSrcweir
31*cdf0e10cSrcweir#ifndef __com_sun_star_frame_XPopupMenuController_idl__
32*cdf0e10cSrcweir#include <com/sun/star/frame/XPopupMenuController.idl>
33*cdf0e10cSrcweir#endif
34*cdf0e10cSrcweir
35*cdf0e10cSrcweir#ifndef _com_sun_star_lang_XInitialization_idl__
36*cdf0e10cSrcweir#include <com/sun/star/lang/XInitialization.idl>
37*cdf0e10cSrcweir#endif
38*cdf0e10cSrcweir
39*cdf0e10cSrcweir#ifndef __com_sun_star_frame_XStatusListener_idl__
40*cdf0e10cSrcweir#include <com/sun/star/frame/XStatusListener.idl>
41*cdf0e10cSrcweir#endif
42*cdf0e10cSrcweir
43*cdf0e10cSrcweir#ifndef __com_sun_star_frame_XDispatchProvider_idl__
44*cdf0e10cSrcweir#include <com/sun/star/frame/XDispatchProvider.idl>
45*cdf0e10cSrcweir#endif
46*cdf0e10cSrcweir
47*cdf0e10cSrcweir#ifndef __com_sun_star_lang_XComponent_idl__
48*cdf0e10cSrcweir#include <com/sun/star/lang/XComponent.idl>
49*cdf0e10cSrcweir#endif
50*cdf0e10cSrcweir
51*cdf0e10cSrcweir
52*cdf0e10cSrcweir//=============================================================================
53*cdf0e10cSrcweir
54*cdf0e10cSrcweirmodule com { module sun { module star { module frame {
55*cdf0e10cSrcweir
56*cdf0e10cSrcweir//=============================================================================
57*cdf0e10cSrcweir
58*cdf0e10cSrcweir/** provides access to a popup menu controller.
59*cdf0e10cSrcweir
60*cdf0e10cSrcweir    <p>
61*cdf0e10cSrcweir    A popup menu controller is used to make special functions available to
62*cdf0e10cSrcweir    users, which depend on runtime or context specific conditions.<br/>
63*cdf0e10cSrcweir    A typical example for a popup menu controller can be a recent file list
64*cdf0e10cSrcweir    implementation which provides a list of latest files that a user has
65*cdf0e10cSrcweir    worked on. This list gets changes consistently during a work session.
66*cdf0e10cSrcweir    </p>
67*cdf0e10cSrcweir
68*cdf0e10cSrcweir    @since OOo 2.0
69*cdf0e10cSrcweir*/
70*cdf0e10cSrcweir
71*cdf0e10cSrcweirservice PopupMenuController
72*cdf0e10cSrcweir{
73*cdf0e10cSrcweir    //-------------------------------------------------------------------------
74*cdf0e10cSrcweir    /** supports functions to initialize and update a popup menu controller
75*cdf0e10cSrcweir        implementation.
76*cdf0e10cSrcweir
77*cdf0e10cSrcweir        <p>
78*cdf0e10cSrcweir        A popup menu controller implementation gets initialized with a
79*cdf0e10cSrcweir        <type scope="com::sun::star::awt">XPopupMenu</type> object. This assures
80*cdf0e10cSrcweir        that a popup menu controller can be implemented with any UNO based
81*cdf0e10cSrcweir        language.
82*cdf0e10cSrcweir        </p>
83*cdf0e10cSrcweir    */
84*cdf0e10cSrcweir    interface com::sun::star::frame::XPopupMenuController;
85*cdf0e10cSrcweir
86*cdf0e10cSrcweir    //-------------------------------------------------------------------------
87*cdf0e10cSrcweir    /** provides functions to initialize a popup menu controller with
88*cdf0e10cSrcweir        specific data which are needed.
89*cdf0e10cSrcweir
90*cdf0e10cSrcweir        <p>
91*cdf0e10cSrcweir        This interface should not directly used. A factory service is responsible to
92*cdf0e10cSrcweir        initialize every controller correctly.<br/>
93*cdf0e10cSrcweir
94*cdf0e10cSrcweir        A popup menu controller needs at least two additional arguments
95*cdf0e10cSrcweir        provided as <type scope="com::sun::star::beans">PropertyValue</type>:
96*cdf0e10cSrcweir        <ul>
97*cdf0e10cSrcweir            <li><b>Frame</b><br>specifies the <type scope="com::sun::star::frame">XFrame</type>
98*cdf0e10cSrcweir                   instance to which the popup menu controller belongs to.</li>
99*cdf0e10cSrcweir            <li><b>CommandURL</b><br>specifies which popup menu controller should be created.</li>
100*cdf0e10cSrcweir        </ul>
101*cdf0e10cSrcweir        </p>
102*cdf0e10cSrcweir
103*cdf0e10cSrcweir        @see PopupMenuControllerFactory
104*cdf0e10cSrcweir    */
105*cdf0e10cSrcweir    interface com::sun::star::lang::XInitialization;
106*cdf0e10cSrcweir
107*cdf0e10cSrcweir    //-------------------------------------------------------------------------
108*cdf0e10cSrcweir    /** used to brief the popup menu controller with new status information.
109*cdf0e10cSrcweir
110*cdf0e10cSrcweir        <p>
111*cdf0e10cSrcweir        A popup menu controller makes special functions available to users which
112*cdf0e10cSrcweir        normally depend on the state of other data. This interface is used to
113*cdf0e10cSrcweir        send this data to a controller implementation.
114*cdf0e10cSrcweir        </p>
115*cdf0e10cSrcweir    */
116*cdf0e10cSrcweir    interface com::sun::star::frame::XStatusListener;
117*cdf0e10cSrcweir
118*cdf0e10cSrcweir    //-------------------------------------------------------------------------
119*cdf0e10cSrcweir    /** used to query for commands supported by the popup menu controller to
120*cdf0e10cSrcweir        execute them directly.
121*cdf0e10cSrcweir
122*cdf0e10cSrcweir        <p>
123*cdf0e10cSrcweir        A popup menu controller provides special functions which should be
124*cdf0e10cSrcweir        available by the normal dispatch API. This optional interface enables
125*cdf0e10cSrcweir        popup menu controller to be normal dispatch providers.<br/>
126*cdf0e10cSrcweir        <b>Attention:</b><br/>
127*cdf0e10cSrcweir        Popup menu controller functions must be specified using the following
128*cdf0e10cSrcweir        the dispatch URL scheme: "vnd.sun.star.popup:" opaque_part [ "?" query ].
129*cdf0e10cSrcweir        </p>
130*cdf0e10cSrcweir
131*cdf0e10cSrcweir        @since OOo 2.2
132*cdf0e10cSrcweir    */
133*cdf0e10cSrcweir    [optional] interface com::sun::star::frame::XDispatchProvider;
134*cdf0e10cSrcweir
135*cdf0e10cSrcweir    //-------------------------------------------------------------------------
136*cdf0e10cSrcweir    /** used to dispose popup menu controller by the owner instance.
137*cdf0e10cSrcweir
138*cdf0e10cSrcweir        <p>
139*cdf0e10cSrcweir        A popup menu controller resides in a menu which has a limited
140*cdf0e10cSrcweir        life-time. For correct life-time handling a popup menu
141*cdf0e10cSrcweir        controller should support this interface.
142*cdf0e10cSrcweir        </p>
143*cdf0e10cSrcweir
144*cdf0e10cSrcweir        @since OOo 2.2
145*cdf0e10cSrcweir    */
146*cdf0e10cSrcweir    [optional] interface com::sun::star::lang::XComponent;
147*cdf0e10cSrcweir};
148*cdf0e10cSrcweir
149*cdf0e10cSrcweir}; }; }; };
150*cdf0e10cSrcweir
151*cdf0e10cSrcweir//=============================================================================
152*cdf0e10cSrcweir
153*cdf0e10cSrcweir#endif
154