xref: /aoo41x/main/vcl/inc/aqua/salnsmenu.h (revision 79aad27f)
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 _VCL_SALNSMENU_H
25 #define _VCL_SALNSMENU_H
26 
27 class AquaSalMenu;
28 class AquaSalMenuItem;
29 
30 @interface OOStatusItemView : NSView
31 {
32 }
drawRect:(NSRect)33 -(void)drawRect: (NSRect)aRect;
layout()34 -(void)layout;
mouseUp:(NSEvent*)35 -(void)mouseUp: (NSEvent *)pEvent;
36 @end
37 
38 @interface SalNSMenu : NSMenu
39 {
40     /* Caution: SalNSMenu instances occasionally are binary copied
41        in AquaSalMenu::ShowNativePopupMenu. If any members are added,
42        please take this into account !
43     */
44     AquaSalMenu*        mpMenu;
45 }
initWithMenu:(AquaSalMenu*)46 -(id)initWithMenu: (AquaSalMenu*)pMenu;
menuNeedsUpdate:(NSMenu*)47 -(void)menuNeedsUpdate: (NSMenu*)pMenu;
setSalMenu:(AquaSalMenu*)48 -(void)setSalMenu: (AquaSalMenu*)pMenu;
49 @end
50 
51 @interface SalNSMenuItem : NSMenuItem
52 {
53     /* Caution: SalNSMenuItem instances occasionally are binary copied
54        in AquaSalMenu::ShowNativePopupMenu. If any members are added,
55        please take this into account !
56     */
57     AquaSalMenuItem*    mpMenuItem;
58 }
initWithMenuItem:(AquaSalMenuItem*)59 -(id)initWithMenuItem: (AquaSalMenuItem*)pMenuItem;
menuItemTriggered:(id)60 -(void)menuItemTriggered: (id)aSender;
61 @end
62 
63 
64 #endif
65