xref: /AOO41X/main/framework/inc/framework/bmkmenu.hxx (revision f8e07b45f7e1fb69563504f404bb0b75210f0be6)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef __FRAMEWORK_CLASSES_BMKMENU_HXX
24 #define __FRAMEWORK_CLASSES_BMKMENU_HXX
25 
26 #include "framework/addonmenu.hxx"
27 //_________________________________________________________________________________________________________________
28 //  interface includes
29 //_________________________________________________________________________________________________________________
30 
31 #include <com/sun/star/frame/XFrame.hpp>
32 #include <framework/fwedllapi.h>
33 //_________________________________________________________________________________________________________________
34 //  includes of other projects
35 //_________________________________________________________________________________________________________________
36 
37 #include <vcl/menu.hxx>
38 #include <vcl/image.hxx>
39 
40 class String;
41 class ImageList;
42 
43 #define BMKMENU_ITEMID_START    20000
44 
45 namespace framework
46 {
47 
48 class BmkMenu_Impl;
49 class FWE_DLLPUBLIC BmkMenu : public AddonMenu
50 {
51     public:
52                         enum BmkMenuType
53                         {
54                             BMK_NEWMENU,
55                             BMK_WIZARDMENU
56                         };
57 
58                         BmkMenu( ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame,
59                                  BmkMenuType nType );
60                         ~BmkMenu();
61 
62     void                Initialize(); // Synchrones Laden der Eintraege
63 
64     protected:
65         BmkMenu::BmkMenuType m_nType;
66         sal_uInt16          CreateMenuId();
67 
68     private:
69                         BmkMenu( ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame,
70                                  BmkMenuType, BmkMenu* pRoot );
71 
72         BmkMenu_Impl*   _pImp;
73 };
74 
75 } // namespace framework
76 
77 #endif // #ifndef __FRAMEWORK_CLASSES_BMKMENU_HXX
78