xref: /AOO41X/main/vcl/inc/aqua/vclnsapp.h (revision 772b8e0b82570e4556f647a63961304db1bf493b)
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)applicationDidFinishLaunching:(NSNotification*)aNotification;
44 -(void)sendEvent:(NSEvent*)pEvent;
45 -(void)sendSuperEvent:(NSEvent*)pEvent;
46 -(NSMenu*)applicationDockMenu:(NSApplication *)sender;
47 -(BOOL)application: (NSApplication*) app openFile: (NSString*)file;
48 -(void)application: (NSApplication*) app openFiles: (NSArray*)files;
49 -(BOOL)application: (NSApplication*) app printFile: (NSString*)file;
50 -(NSApplicationPrintReply)application: (NSApplication *) app printFiles:(NSArray *)files withSettings: (NSDictionary *)printSettings showPrintPanels:(BOOL)bShowPrintPanels;
51 -(NSApplicationTerminateReply)applicationShouldTerminate: (NSApplication *) app;
52 -(void)systemColorsChanged: (NSNotification*) pNotification;
53 -(void)screenParametersChanged: (NSNotification*) pNotification;
54 -(void)scrollbarVariantChanged: (NSNotification*) pNotification;
55 -(void)scrollbarSettingsChanged: (NSNotification*) pNotification;
56 -(void)addFallbackMenuItem: (NSMenuItem*)pNewItem;
57 -(void)removeFallbackMenuItem: (NSMenuItem*)pOldItem;
58 -(void)addDockMenuItem: (NSMenuItem*)pNewItem;
59 -(void)applicationWillBecomeActive: (NSNotification *)pNotification;
60 -(void)applicationWillResignActive: (NSNotification *)pNotification;
61 -(BOOL)applicationShouldHandleReopen: (NSApplication*)pApp hasVisibleWindows: (BOOL)bWinVisible;
62 -(void)setDockIconClickHandler: (NSObject*)pHandler;
63 -(void)cycleFrameForward: (AquaSalFrame*)pCurFrame;
64 -(void)cycleFrameBackward: (AquaSalFrame*)pCurFrame;
65 @end
66 
67 #endif
68