xref: /aoo42x/main/vcl/os2/source/window/salmenu.cxx (revision dd7ece3a)
1 /*************************************************************************
2 
3    Copyright 2011 Yuri Dario <mc6530@mclink.it>
4 
5    Licensed under the Apache License, Version 2.0 (the "License");
6    you may not use this file except in compliance with the License.
7    You may obtain a copy of the License at
8 
9        http://www.apache.org/licenses/LICENSE-2.0
10 
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16 
17  ************************************************************************/
18 
19 #define INCL_DOS
20 #define INCL_PM
21 #define INCL_WIN
22 #include <svpm.h>
23 
24 #include "os2/saldata.hxx"
25 #include "os2/salinst.h"
26 #include "os2/salmenu.h"
27 
28 
29 // =======================================================================
30 
31 // Os2SalInst factory methods
32 
CreateMenu(sal_Bool bMenuBar,Menu *)33 SalMenu* Os2SalInstance::CreateMenu( sal_Bool bMenuBar, Menu* )
34 {
35     return NULL;  // no support for native menus
36 }
37 
DestroyMenu(SalMenu * pSalMenu)38 void Os2SalInstance::DestroyMenu( SalMenu* pSalMenu )
39 {
40     delete pSalMenu;
41 }
42 
43 
CreateMenuItem(const SalItemParams * pItemData)44 SalMenuItem* Os2SalInstance::CreateMenuItem( const SalItemParams* pItemData )
45 {
46     return NULL;  // no support for native menus
47 }
48 
DestroyMenuItem(SalMenuItem * pSalMenuItem)49 void Os2SalInstance::DestroyMenuItem( SalMenuItem* pSalMenuItem )
50 {
51     delete pSalMenuItem;
52 }
53 
54 
55 // =======================================================================
56 
57 
58 /*
59  * Os2SalMenu
60  */
61 
62 
~Os2SalMenu()63 Os2SalMenu::~Os2SalMenu()
64 {
65 }
66 
VisibleMenuBar()67 sal_Bool Os2SalMenu::VisibleMenuBar()
68 {
69     return FALSE;
70 }
71 
SetFrame(const SalFrame * pFrame)72 void Os2SalMenu::SetFrame( const SalFrame *pFrame )
73 {
74 }
75 
InsertItem(SalMenuItem * pSalMenuItem,unsigned nPos)76 void Os2SalMenu::InsertItem( SalMenuItem* pSalMenuItem, unsigned nPos )
77 {
78 }
79 
RemoveItem(unsigned nPos)80 void Os2SalMenu::RemoveItem( unsigned nPos )
81 {
82 }
83 
SetSubMenu(SalMenuItem * pSalMenuItem,SalMenu * pSubMenu,unsigned nPos)84 void Os2SalMenu::SetSubMenu( SalMenuItem* pSalMenuItem, SalMenu* pSubMenu, unsigned nPos )
85 {
86 }
87 
CheckItem(unsigned nPos,sal_Bool bCheck)88 void Os2SalMenu::CheckItem( unsigned nPos, sal_Bool bCheck )
89 {
90 }
91 
EnableItem(unsigned nPos,sal_Bool bEnable)92 void Os2SalMenu::EnableItem( unsigned nPos, sal_Bool bEnable )
93 {
94 }
95 
SetItemImage(unsigned nPos,SalMenuItem * pSalMenuItem,const Image & rImage)96 void Os2SalMenu::SetItemImage( unsigned nPos, SalMenuItem* pSalMenuItem, const Image& rImage )
97 {
98 }
99 
SetItemText(unsigned nPos,SalMenuItem * pSalMenuItem,const XubString & rText)100 void Os2SalMenu::SetItemText( unsigned nPos, SalMenuItem* pSalMenuItem, const XubString& rText )
101 {
102 }
103 
SetAccelerator(unsigned nPos,SalMenuItem * pSalMenuItem,const KeyCode & rKeyCode,const XubString & rKeyName)104 void Os2SalMenu::SetAccelerator( unsigned nPos, SalMenuItem* pSalMenuItem, const KeyCode& rKeyCode, const XubString& rKeyName )
105 {
106 }
107 
GetSystemMenuData(SystemMenuData * pData)108 void Os2SalMenu::GetSystemMenuData( SystemMenuData* pData )
109 {
110 }
111 
112 // =======================================================================
113 
114 /*
115  * SalMenuItem
116  */
117 
118 
~Os2SalMenuItem()119 Os2SalMenuItem::~Os2SalMenuItem()
120 {
121 }
122 
123 // -------------------------------------------------------------------
124 
125