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