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 }
enableCocoaThreads:(id)36 -(void)enableCocoaThreads:(id)param;
37 @end
38
39 // our very own application
40 @interface VCL_NSApplication : NSApplication
41 {
42 }
applicationDidFinishLaunching:(NSNotification*)43 -(void)applicationDidFinishLaunching:(NSNotification*)aNotification;
sendEvent:(NSEvent*)44 -(void)sendEvent:(NSEvent*)pEvent;
sendSuperEvent:(NSEvent*)45 -(void)sendSuperEvent:(NSEvent*)pEvent;
applicationDockMenu:(NSApplication*)46 -(NSMenu*)applicationDockMenu:(NSApplication *)sender;
application:openFile:(NSApplication*,NSString*)47 -(BOOL)application: (NSApplication*) app openFile: (NSString*)file;
application:openFiles:(NSApplication*,NSArray*)48 -(void)application: (NSApplication*) app openFiles: (NSArray*)files;
application:printFile:(NSApplication*,NSString*)49 -(BOOL)application: (NSApplication*) app printFile: (NSString*)file;
application:printFiles:withSettings:showPrintPanels:(NSApplication*,NSArray*,NSDictionary*,BOOL)50 -(NSApplicationPrintReply)application: (NSApplication *) app printFiles:(NSArray *)files withSettings: (NSDictionary *)printSettings showPrintPanels:(BOOL)bShowPrintPanels;
applicationShouldTerminate:(NSApplication*)51 -(NSApplicationTerminateReply)applicationShouldTerminate: (NSApplication *) app;
systemColorsChanged:(NSNotification*)52 -(void)systemColorsChanged: (NSNotification*) pNotification;
screenParametersChanged:(NSNotification*)53 -(void)screenParametersChanged: (NSNotification*) pNotification;
scrollbarVariantChanged:(NSNotification*)54 -(void)scrollbarVariantChanged: (NSNotification*) pNotification;
scrollbarSettingsChanged:(NSNotification*)55 -(void)scrollbarSettingsChanged: (NSNotification*) pNotification;
addFallbackMenuItem:(NSMenuItem*)56 -(void)addFallbackMenuItem: (NSMenuItem*)pNewItem;
removeFallbackMenuItem:(NSMenuItem*)57 -(void)removeFallbackMenuItem: (NSMenuItem*)pOldItem;
addDockMenuItem:(NSMenuItem*)58 -(void)addDockMenuItem: (NSMenuItem*)pNewItem;
applicationWillBecomeActive:(NSNotification*)59 -(void)applicationWillBecomeActive: (NSNotification *)pNotification;
applicationWillResignActive:(NSNotification*)60 -(void)applicationWillResignActive: (NSNotification *)pNotification;
applicationShouldHandleReopen:hasVisibleWindows:(NSApplication*,BOOL)61 -(BOOL)applicationShouldHandleReopen: (NSApplication*)pApp hasVisibleWindows: (BOOL)bWinVisible;
setDockIconClickHandler:(NSObject*)62 -(void)setDockIconClickHandler: (NSObject*)pHandler;
cycleFrameForward:(AquaSalFrame*)63 -(void)cycleFrameForward: (AquaSalFrame*)pCurFrame;
cycleFrameBackward:(AquaSalFrame*)64 -(void)cycleFrameBackward: (AquaSalFrame*)pCurFrame;
65 @end
66
67 #endif
68