1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  *   Licensed to the Apache Software Foundation (ASF) under one or more
12  *   contributor license agreements. See the NOTICE file distributed
13  *   with this work for additional information regarding copyright
14  *   ownership. The ASF licenses this file to you under the Apache
15  *   License, Version 2.0 (the "License"); you may not use this file
16  *   except in compliance with the License. You may obtain a copy of
17  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 
20 #ifndef INCLUDED_VCL_INC_OSX_VCLNSAPP_H
21 #define INCLUDED_VCL_INC_OSX_VCLNSAPP_H
22 
23 #include <config_features.h>
24 
25 #include <premac.h>
26 #include <Cocoa/Cocoa.h>
27 #include <postmac.h>
28 
29 class AquaSalFrame;
30 
31 @interface CocoaThreadEnabler : NSObject
32 {
33 }
34 -(void)enableCocoaThreads:(id)param;
35 @end
36 
37 // our very own application
38 @interface VCL_NSApplication : NSApplication
39 {
40 }
41 -(void)applicationDidFinishLaunching:(NSNotification*)pNotification;
42 -(void)sendEvent:(NSEvent*)pEvent;
43 -(void)sendSuperEvent:(NSEvent*)pEvent;
44 -(NSMenu*)applicationDockMenu:(NSApplication *)sender;
45 -(BOOL)application: (NSApplication*) app openFile: (NSString*)file;
46 -(void)application: (NSApplication*) app openFiles: (NSArray*)files;
47 -(BOOL)application: (NSApplication*) app printFile: (NSString*)file;
48 -(NSApplicationPrintReply)application: (NSApplication *) app printFiles:(NSArray *)files withSettings: (NSDictionary *)printSettings showPrintPanels:(BOOL)bShowPrintPanels;
49 -(NSApplicationTerminateReply)applicationShouldTerminate: (NSApplication *) app;
50 -(void)applicationWillTerminate: (NSNotification *) aNotification;
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 #if !HAVE_FEATURE_MACOSX_SANDBOX
59 -(void)applicationWillBecomeActive: (NSNotification *)pNotification;
60 -(void)applicationWillResignActive: (NSNotification *)pNotification;
61 #endif
62 -(BOOL)applicationShouldHandleReopen: (NSApplication*)pApp hasVisibleWindows: (BOOL)bWinVisible;
63 -(void)setDockIconClickHandler: (NSObject*)pHandler;
64 @end
65 
66 #endif // INCLUDED_VCL_INC_OSX_VCLNSAPP_H
67 
68 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
69