]> git.lyx.org Git - lyx.git/blob - src/ToolbarDefaults.h
fix typo that put too many include paths for most people
[lyx.git] / src / ToolbarDefaults.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-2001 The LyX Team.
9  *
10  *
11  * ====================================================== */
12
13
14 #ifndef TOOLBARDEFAULTS_H
15 #define TOOLBARDEFAULTS_H
16
17 #ifdef __GNUG__
18 #pragma interface
19 #endif
20
21 #include <vector>
22
23 #include "LString.h"
24
25 class LyXLex;
26
27 ///
28 class ToolbarDefaults {
29 public:
30         /// The special toolbar actions
31         enum  ItemType {
32                 /// adds space between buttons in the toolbar
33                 SEPARATOR=-3,
34                 /// a special combox insead of a button
35                 LAYOUTS=-2,
36                 /// begin a new line of button (not working)
37                 NEWLINE=-1
38         };
39
40         ///
41         typedef std::vector<int> Defaults;
42         ///
43         typedef Defaults::iterator iterator;
44         ///
45         typedef Defaults::const_iterator const_iterator;
46         ///
47         ToolbarDefaults();
48         ///
49         iterator begin() {
50                 return defaults.begin();
51         }
52         ///
53         const_iterator begin() const {
54                 return defaults.begin();
55         }
56         ///
57         iterator end() {
58                 return defaults.end();
59         }
60         ///
61         const_iterator end() const {
62                 return defaults.end();
63         }
64         ///
65         void read(LyXLex &);
66 private:
67         ///
68         void init();
69         /// This func is just to make it easy for me...
70         void add(int);
71         ///
72         void add(string const &);
73         ///
74         Defaults defaults;
75 };
76
77 /// The global instance
78 extern ToolbarDefaults toolbardefaults;
79
80
81 #endif