xref: /aoo41x/main/vcl/inc/aqua/vclnsapp.h (revision 4f2b6604)
124f6443dSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
324f6443dSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
424f6443dSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
524f6443dSAndrew Rist  * distributed with this work for additional information
624f6443dSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
724f6443dSAndrew Rist  * to you under the Apache License, Version 2.0 (the
824f6443dSAndrew Rist  * "License"); you may not use this file except in compliance
924f6443dSAndrew Rist  * with the License.  You may obtain a copy of the License at
1024f6443dSAndrew Rist  *
1124f6443dSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
1224f6443dSAndrew Rist  *
1324f6443dSAndrew Rist  * Unless required by applicable law or agreed to in writing,
1424f6443dSAndrew Rist  * software distributed under the License is distributed on an
1524f6443dSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1624f6443dSAndrew Rist  * KIND, either express or implied.  See the License for the
1724f6443dSAndrew Rist  * specific language governing permissions and limitations
1824f6443dSAndrew Rist  * under the License.
1924f6443dSAndrew Rist  *
2024f6443dSAndrew Rist  *************************************************************/
2124f6443dSAndrew Rist 
2224f6443dSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef _VCL_VCLNSAPP_H
25cdf0e10cSrcweir #define _VCL_VCLNSAPP_H
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include "premac.h"
28cdf0e10cSrcweir #include "Cocoa/Cocoa.h"
29cdf0e10cSrcweir #include "postmac.h"
30cdf0e10cSrcweir 
31cdf0e10cSrcweir class AquaSalFrame;
32cdf0e10cSrcweir 
33cdf0e10cSrcweir @interface CocoaThreadEnabler : NSObject
34cdf0e10cSrcweir {
35cdf0e10cSrcweir }
enableCocoaThreads:(id)36cdf0e10cSrcweir -(void)enableCocoaThreads:(id)param;
37cdf0e10cSrcweir @end
38cdf0e10cSrcweir 
39cdf0e10cSrcweir // our very own application
40cdf0e10cSrcweir @interface VCL_NSApplication : NSApplication
41cdf0e10cSrcweir {
42cdf0e10cSrcweir }
applicationDidFinishLaunching:(NSNotification*)43*4f2b6604SHerbert Dürr -(void)applicationDidFinishLaunching:(NSNotification*)aNotification;
sendEvent:(NSEvent*)44cdf0e10cSrcweir -(void)sendEvent:(NSEvent*)pEvent;
sendSuperEvent:(NSEvent*)45cdf0e10cSrcweir -(void)sendSuperEvent:(NSEvent*)pEvent;
applicationDockMenu:(NSApplication*)46cdf0e10cSrcweir -(NSMenu*)applicationDockMenu:(NSApplication *)sender;
application:openFile:(NSApplication*,NSString*)47cdf0e10cSrcweir -(BOOL)application: (NSApplication*) app openFile: (NSString*)file;
application:openFiles:(NSApplication*,NSArray*)48cdf0e10cSrcweir -(void)application: (NSApplication*) app openFiles: (NSArray*)files;
application:printFile:(NSApplication*,NSString*)49cdf0e10cSrcweir -(BOOL)application: (NSApplication*) app printFile: (NSString*)file;
application:printFiles:withSettings:showPrintPanels:(NSApplication*,NSArray*,NSDictionary*,BOOL)50cdf0e10cSrcweir -(NSApplicationPrintReply)application: (NSApplication *) app printFiles:(NSArray *)files withSettings: (NSDictionary *)printSettings showPrintPanels:(BOOL)bShowPrintPanels;
applicationShouldTerminate:(NSApplication*)51cdf0e10cSrcweir -(NSApplicationTerminateReply)applicationShouldTerminate: (NSApplication *) app;
systemColorsChanged:(NSNotification*)52cdf0e10cSrcweir -(void)systemColorsChanged: (NSNotification*) pNotification;
screenParametersChanged:(NSNotification*)53cdf0e10cSrcweir -(void)screenParametersChanged: (NSNotification*) pNotification;
scrollbarVariantChanged:(NSNotification*)54cdf0e10cSrcweir -(void)scrollbarVariantChanged: (NSNotification*) pNotification;
scrollbarSettingsChanged:(NSNotification*)55cdf0e10cSrcweir -(void)scrollbarSettingsChanged: (NSNotification*) pNotification;
addFallbackMenuItem:(NSMenuItem*)56cdf0e10cSrcweir -(void)addFallbackMenuItem: (NSMenuItem*)pNewItem;
removeFallbackMenuItem:(NSMenuItem*)57cdf0e10cSrcweir -(void)removeFallbackMenuItem: (NSMenuItem*)pOldItem;
addDockMenuItem:(NSMenuItem*)58cdf0e10cSrcweir -(void)addDockMenuItem: (NSMenuItem*)pNewItem;
applicationWillBecomeActive:(NSNotification*)59cdf0e10cSrcweir -(void)applicationWillBecomeActive: (NSNotification *)pNotification;
applicationWillResignActive:(NSNotification*)60cdf0e10cSrcweir -(void)applicationWillResignActive: (NSNotification *)pNotification;
applicationShouldHandleReopen:hasVisibleWindows:(NSApplication*,BOOL)61cdf0e10cSrcweir -(BOOL)applicationShouldHandleReopen: (NSApplication*)pApp hasVisibleWindows: (BOOL)bWinVisible;
setDockIconClickHandler:(NSObject*)62cdf0e10cSrcweir -(void)setDockIconClickHandler: (NSObject*)pHandler;
cycleFrameForward:(AquaSalFrame*)63cdf0e10cSrcweir -(void)cycleFrameForward: (AquaSalFrame*)pCurFrame;
cycleFrameBackward:(AquaSalFrame*)64cdf0e10cSrcweir -(void)cycleFrameBackward: (AquaSalFrame*)pCurFrame;
65cdf0e10cSrcweir @end
66cdf0e10cSrcweir 
67cdf0e10cSrcweir #endif
68