]> git.lyx.org Git - lyx.git/blob - src/menus.h
Finish to add wrappers for xforms callbacks. Now dec C++ 6.1 compiles lyx
[lyx.git] / src / menus.h
1 // -*- C++ -*-
2 /* This file is part of
3 * ======================================================
4
5 *           LyX, The Document Processor
6 *        
7 *           Copyright (C) 1995 1996 Matthias Ettrich
8 *           and the LyX Team.
9 *
10 *======================================================*/
11
12 #ifndef MENUS_H
13 #define MENUS_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include FORMS_H_LOCATION
20 #include "lyx.h"
21 #include "LString.h"
22
23 class BufferView;
24 class LyXView;
25
26
27 ///
28 class Menus {
29 public:
30         ///
31         Menus(LyXView *view, int air);
32         ///
33         void showMenus();
34         ///
35         void hideMenus();
36         ///
37         void openByName(string const &menuName);
38         ///
39         static void ShowFileMenu(FL_OBJECT *ob, long);
40         ///
41         static void ShowFileMenu2(FL_OBJECT *ob, long);
42         ///
43         static void ShowEditMenu(FL_OBJECT *ob, long data);
44         ///
45         static void ShowLayoutMenu(FL_OBJECT *ob, long data);
46         ///
47         static void ShowInsertMenu(FL_OBJECT *ob, long data);
48         ///
49         static void ShowMathMenu(FL_OBJECT *ob, long);
50         ///
51         static void ShowOptionsMenu(FL_OBJECT *ob, long men);
52         ///
53         static void ShowBufferMenu(FL_OBJECT *ob, long);
54         ///
55         static void ShowHelpMenu(FL_OBJECT *ob, long);
56 private:
57         ///
58         void create_menus(int air);
59         ///
60         void ScreenOptions();
61         ///
62         void showCopyright();
63         ///
64         void showLicense();
65         ///
66         void MenuDocu(string const & docname);
67         ///
68         void handleBufferMenu(int choice);
69         
70         /// 
71         BufferView *currentView();
72         ///
73         LyXView *_view;
74         ///
75         FL_OBJECT *menu_grp1;
76         ///
77         FL_OBJECT *menu_grp2;
78         ///
79         FL_OBJECT *menu_file;
80         ///
81         FL_OBJECT *menu_file2;
82         ///
83         FL_OBJECT *menu_edit;
84         ///
85         FL_OBJECT *menu_layout;
86         ///
87         FL_OBJECT *menu_insert;
88         ///
89         FL_OBJECT *menu_math;
90         ///
91         FL_OBJECT *menu_options;
92         ///
93         FL_OBJECT *menu_options2;
94         ///
95         FL_OBJECT *menu_buffer;
96         ///
97         FL_OBJECT *menu_help;
98         ///
99         FL_OBJECT *menu_help2;
100 };
101
102 #endif