xref: /trunk/main/vcl/inc/aqua/vclnsapp.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_VCLNSAPP_H
25 #define _VCL_VCLNSAPP_H
26 
27 #include "premac.h"
28 #include "Cocoa/Cocoa.h"
29 #include "postmac.h"
30 
31 class AquaSalFrame;
32 
33 @interface CocoaThreadEnabler : NSObject
34 {
35 }
36 -(void)enableCocoaThreads:(id)param;
37 @end
38 
39 // our very own application
40 @interface VCL_NSApplication : NSApplication
41 {
42 }
43 -(void)sendEvent:(NSEvent*)pEvent;
44 -(void)sendSuperEvent:(NSEvent*)pEvent;
45 -(NSMenu*)applicationDockMenu:(NSApplication *)sender;
46 -(BOOL)application: (NSApplication*) app openFile: (NSString*)file;
47 -(void)application: (NSApplication*) app openFiles: (NSArray*)files;
48 -(BOOL)application: (NSApplication*) app printFile: (NSString*)file;
49 -(NSApplicationPrintReply)application: (NSApplication *) app printFiles:(NSArray *)files withSettings: (NSDictionary *)printSettings showPrintPanels:(BOOL)bShowPrintPanels;
50 -(NSApplicationTerminateReply)applicationShouldTerminate: (NSApplication *) app;
51 -(void)systemColorsChanged: (NSNotification*) pNotification;
52 -(void)screenParametersChanged: (NSNotification*) pNotification;
53 -(void)scrollbarVariantChanged: (NSNotification*) pNotification;
54 -(void)scrollbarSettingsChanged: (NSNotification*) pNotification;
55 -(void)addFallbackMenuItem: (NSMenuItem*)pNewItem;
56 -(void)removeFallbackMenuItem: (NSMenuItem*)pOldItem;
57 -(void)addDockMenuItem: (NSMenuItem*)pNewItem;
58 -(void)applicationWillBecomeActive: (NSNotification *)pNotification;
59 -(void)applicationWillResignActive: (NSNotification *)pNotification;
60 -(BOOL)applicationShouldHandleReopen: (NSApplication*)pApp hasVisibleWindows: (BOOL)bWinVisible;
61 -(void)setDockIconClickHandler: (NSObject*)pHandler;
62 -(void)cycleFrameForward: (AquaSalFrame*)pCurFrame;
63 -(void)cycleFrameBackward: (AquaSalFrame*)pCurFrame;
64 @end
65 
66 #endif
67