Files
loongoffice/include/apple_remote/RemoteMainController.h
Stephan Bergmann 645c97d116 Fix visibility for --enable-64-bit
...post 68e2a4e41d6e81a6e95a296d775c9ac8f5c97e8b "Revert 'Visibility doesn't
seem to work as we want in Apple's Clang.'"

Quoting <https://developer.apple.com/library/mac/documentation/developertools/
Conceptual/CppRuntimeEnv/Articles/SymbolVisibility.html> section "Symbol
Visibility and Objective-C:"  "When building for x86_64 OS X or for iOS, symbol
visibility /does/ affect objective-C classes.  [...]  This means that if a given
class is intended to be usable outside the library or executable it's defined
in, you need to ensure proper symbol visibility."

The chosen syntax works at least with both --en/disable-64-bit "experimental"
(Clang-based) builds on OS X 10.8.  Hopefully, it also works for baseline
builds.  (Also, it could be that a more fine grained use of
SAL_DLLPUBLIC_EXPORT/SAL_DLLPRIVATE would be useful, but with the current setup
at least linking of Library_vcl against Library_AppleRemote works.)

Change-Id: Iff4fe9e50d1400c83879f62fe29b35bd19d58eb8
2013-09-13 10:24:01 +02:00

57 lines
2.1 KiB
Objective-C

/* -*- Mode: ObjC; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*****************************************************************************
* RemoteMainController.h
*
*
* Created by Martin Kahr on 11.03.06 under a MIT-style license.
* Copyright (c) 2006 martinkahr.com. All rights reserved.
*
* Code modified and adapted to OpenOffice.org
* by Eric Bachard on 11.08.2008 under the same License
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*
*****************************************************************************/
#include "sal/config.h"
#import <Cocoa/Cocoa.h>
#include "sal/types.h"
#define AppleRemoteControlEvent 15
@class RemoteControl;
@class MultiClickRemoteBehavior;
//static void sendTheEvent( unichar, int );
SAL_DLLPUBLIC_EXPORT @interface MainController : NSObject {
@public // else remoteControl is not reachable from GetSalData()->mpMainController
RemoteControl* remoteControl;
@private
MultiClickRemoteBehavior* remoteControlBehavior;
}
- (RemoteControl*) remoteControl;
- (MultiClickRemoteBehavior*) remoteBehavior;
@end
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */