1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_VCL_INC_UNX_SALMENU_H
21 #define INCLUDED_VCL_INC_UNX_SALMENU_H
23 #include <vcl/bitmap.hxx>
24 #include <salmenu.hxx>
26 class X11SalMenu
: public SalMenu
30 virtual ~X11SalMenu();
32 virtual bool VisibleMenuBar() SAL_OVERRIDE
; // must return TRUE to actually DISPLAY native menu bars
33 // otherwise only menu messages are processed (eg, OLE on Windows)
35 virtual void InsertItem( SalMenuItem
* pSalMenuItem
, unsigned nPos
) SAL_OVERRIDE
;
36 virtual void RemoveItem( unsigned nPos
) SAL_OVERRIDE
;
37 virtual void SetSubMenu( SalMenuItem
* pSalMenuItem
, SalMenu
* pSubMenu
, unsigned nPos
) SAL_OVERRIDE
;
38 virtual void SetFrame( const SalFrame
* pFrame
) SAL_OVERRIDE
;
39 virtual void CheckItem( unsigned nPos
, bool bCheck
) SAL_OVERRIDE
;
40 virtual void EnableItem( unsigned nPos
, bool bEnable
) SAL_OVERRIDE
;
41 virtual void SetItemText( unsigned nPos
, SalMenuItem
* pSalMenuItem
, const OUString
& rText
) SAL_OVERRIDE
;
42 virtual void SetItemImage( unsigned nPos
, SalMenuItem
* pSalMenuItem
, const Image
& rImage
) SAL_OVERRIDE
;
43 virtual void SetAccelerator( unsigned nPos
, SalMenuItem
* pSalMenuItem
, const vcl::KeyCode
& rKeyCode
, const OUString
& rKeyName
) SAL_OVERRIDE
;
44 virtual void GetSystemMenuData( SystemMenuData
* pData
) SAL_OVERRIDE
;
47 class X11SalMenuItem
: public SalMenuItem
51 virtual ~X11SalMenuItem();
54 #endif // INCLUDED_VCL_INC_UNX_SALMENU_H
56 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */