]> git.lyx.org Git - lyx.git/blob - src/support/AppleScript.h
Provide proper fallback if a bibliography processor is not found
[lyx.git] / src / support / AppleScript.h
1 // -*- C++ -*-
2 /**
3  * \file AppleScript.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Benjamin Piwowarski
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef LYX_SUPPORT_APPLESCRIPT_H
13 #define LYX_SUPPORT_APPLESCRIPT_H
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18     /// What is returned by applescript_execute_command
19     typedef struct {
20         int code;
21         char *message;
22     } LyXFunctionResult;
23
24     LyXFunctionResult applescript_execute_command(const char *cmd, const char *args);
25
26     /// Sets up apple script support
27     void setupApplescript();
28 #ifdef __cplusplus
29 }
30 #endif
31
32 #endif