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