xref: /aoo42x/main/vcl/inc/os2/salmenu.h (revision 24f6443d)
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 
24 #ifndef _SV_SALMENU_H
25 #define _SV_SALMENU_H
26 
27 #include <vcl/bitmap.hxx>
28 #include <salmenu.hxx>
29 
30 class Os2SalMenu : public SalMenu
31 {
32 public:
33 	Os2SalMenu() {}
34 	virtual ~Os2SalMenu();
35 
36     virtual sal_Bool VisibleMenuBar();  // must return TRUE to actually DISPLAY native menu bars
37                             // otherwise only menu messages are processed (eg, OLE on Windows)
38 
39     virtual void InsertItem( SalMenuItem* pSalMenuItem, unsigned nPos );
40     virtual void RemoveItem( unsigned nPos );
41     virtual void SetSubMenu( SalMenuItem* pSalMenuItem, SalMenu* pSubMenu, unsigned nPos );
42     virtual void SetFrame( const SalFrame* pFrame );
43     virtual void CheckItem( unsigned nPos, sal_Bool bCheck );
44     virtual void EnableItem( unsigned nPos, sal_Bool bEnable );
45     virtual void SetItemText( unsigned nPos, SalMenuItem* pSalMenuItem, const XubString& rText );
46     virtual void SetItemImage( unsigned nPos, SalMenuItem* pSalMenuItem, const Image& rImage);
47     virtual void SetAccelerator( unsigned nPos, SalMenuItem* pSalMenuItem, const KeyCode& rKeyCode, const XubString& rKeyName );
48     virtual void GetSystemMenuData( SystemMenuData* pData );
49 };
50 
51 class Os2SalMenuItem : public SalMenuItem
52 {
53 public:
54 	Os2SalMenuItem() {}
55         virtual ~Os2SalMenuItem();
56 };
57 
58 #endif // _SV_SALMENU_H
59 
60