1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: salmenu.cxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_vcl.hxx"
35 #include <saldata.hxx>
40 // =======================================================================
42 // X11SalInst factory methods
44 SalMenu
* X11SalInstance::CreateMenu( BOOL
/*bMenuBar*/ )
46 return NULL
; // no support for native menues
49 void X11SalInstance::DestroyMenu( SalMenu
* pSalMenu
)
55 SalMenuItem
* X11SalInstance::CreateMenuItem( const SalItemParams
* )
57 return NULL
; // no support for native menues
60 void X11SalInstance::DestroyMenuItem( SalMenuItem
* pSalMenuItem
)
66 // =======================================================================
74 X11SalMenu::~X11SalMenu()
78 BOOL
X11SalMenu::VisibleMenuBar()
83 void X11SalMenu::SetFrame( const SalFrame
* )
87 void X11SalMenu::InsertItem( SalMenuItem
*, unsigned )
91 void X11SalMenu::RemoveItem( unsigned )
95 void X11SalMenu::SetSubMenu( SalMenuItem
*, SalMenu
*, unsigned )
99 void X11SalMenu::CheckItem( unsigned, BOOL
)
103 void X11SalMenu::EnableItem( unsigned, BOOL
)
107 void X11SalMenu::SetItemImage( unsigned, SalMenuItem
*, const Image
& )
111 void X11SalMenu::SetItemText( unsigned, SalMenuItem
*, const XubString
& )
115 void X11SalMenu::SetAccelerator( unsigned, SalMenuItem
*, const KeyCode
&, const XubString
& )
119 void X11SalMenu::GetSystemMenuData( SystemMenuData
* )
123 // =======================================================================
130 X11SalMenuItem::~X11SalMenuItem()
134 // -------------------------------------------------------------------