]> git.lyx.org Git - lyx.git/blob - src/menus.h
Fixed the tth HTML export feature.
[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 private:
39         ///
40         void create_menus(int air);
41         ///
42         void ScreenOptions();
43         ///
44         void showCopyright();
45         ///
46         void showLicense();
47         ///
48         void MenuDocu(string const & docname);
49         ///
50         void handleBufferMenu(int choice);
51         
52         ///
53         static void ShowFileMenu(FL_OBJECT *ob, long);
54         ///
55         static void ShowFileMenu2(FL_OBJECT *ob, long);
56         ///
57         static void ShowEditMenu(FL_OBJECT *ob, long data);
58         ///
59         static void ShowLayoutMenu(FL_OBJECT *ob, long data);
60         ///
61         static void ShowInsertMenu(FL_OBJECT *ob, long data);
62         ///
63         static void ShowMathMenu(FL_OBJECT *ob, long);
64         ///
65         static void ShowOptionsMenu(FL_OBJECT *ob, long men);
66         ///
67         static void ShowBufferMenu(FL_OBJECT *ob, long);
68         ///
69         static void ShowHelpMenu(FL_OBJECT *ob, long);
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