]> git.lyx.org Git - lyx.git/blob - src/menus.h
Dekel's patch -- I didn't fix the xforms-0.88 keysyms stuff so it still doesn't finis...
[lyx.git] / src / menus.h
1 // -*- C++ -*-
2 /* This file is part of
3 * ======================================================
4
5 *           LyX, The Document Processor
6 *        
7 *           Copyright 1995 Matthias Ettrich
8 *           Copyright 1995-2000 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 ShowTocMenu(FL_OBJECT *ob, long data);
46         ///
47         static void ShowRefsMenu(FL_OBJECT *ob, long data);
48         ///
49         static void ShowLayoutMenu(FL_OBJECT *ob, long data);
50         ///
51         static void ShowInsertMenu(FL_OBJECT *ob, long data);
52         ///
53         static void ShowMathMenu(FL_OBJECT *ob, long);
54         ///
55         static void ShowOptionsMenu(FL_OBJECT *ob, long men);
56         ///
57         static void ShowBufferMenu(FL_OBJECT *ob, long);
58         ///
59         static void ShowHelpMenu(FL_OBJECT *ob, long);
60 private:
61         ///
62         void create_menus(int air);
63         ///
64         void showCopyright();
65         ///
66         void showLicense();
67         ///
68         void MenuDocu(string const & docname);
69         ///
70         void handleBufferMenu(int choice);
71         
72         /// 
73         BufferView *currentView();
74         ///
75         LyXView *_view;
76         ///
77         FL_OBJECT *menu_grp1;
78         ///
79         FL_OBJECT *menu_grp2;
80         ///
81         FL_OBJECT *menu_file;
82         ///
83         FL_OBJECT *menu_file2;
84         ///
85         FL_OBJECT *menu_edit;
86         ///
87         FL_OBJECT *menu_toc;
88         ///
89         FL_OBJECT *menu_refs;
90         ///
91         FL_OBJECT *menu_layout;
92         ///
93         FL_OBJECT *menu_insert;
94         ///
95         FL_OBJECT *menu_math;
96         ///
97         FL_OBJECT *menu_options;
98         ///
99         FL_OBJECT *menu_options2;
100         ///
101         FL_OBJECT *menu_buffer;
102         ///
103         FL_OBJECT *menu_help;
104         ///
105         FL_OBJECT *menu_help2;
106 };
107
108 #endif