]> git.lyx.org Git - lyx.git/blobdiff - src/ToolbarDefaults.h
don't copy if a reference is fine
[lyx.git] / src / ToolbarDefaults.h
index c8c3f76eba740268d0b147e7ec4d6c2296e2e486..f4bce2adfda1e08495aa20070ccf497b487df3c9 100644 (file)
@@ -1,21 +1,44 @@
 // -*- C++ -*-
+/* This file is part of
+ * ====================================================== 
+ * 
+ *           LyX, The Document Processor
+ *
+ *           Copyright 1995 Matthias Ettrich
+ *           Copyright 1995-2001 The LyX Team.
+ *
+ *
+ * ====================================================== */
+
 
 #ifndef TOOLBARDEFAULTS_H
 #define TOOLBARDEFAULTS_H
 
+#ifdef __GNUG__
+#pragma interface
+#endif
+
 #include <vector>
 
 #include "LString.h"
 
 class LyXLex;
 
-using std::vector;
-
 ///
 class ToolbarDefaults {
 public:
+        /// The special toolbar actions
+       enum  ItemType {
+               /// adds space between buttons in the toolbar
+               SEPARATOR=-3,
+               /// a special combox insead of a button
+               LAYOUTS=-2,
+               /// begin a new line of button (not working)
+               NEWLINE=-1
+       };
+
        ///
-       typedef vector<int> Defaults;
+       typedef std::vector<int> Defaults;
        ///
        typedef Defaults::iterator iterator;
        ///
@@ -51,7 +74,8 @@ private:
        Defaults defaults;
 };
 
-#endif
-
+/// The global instance
+extern ToolbarDefaults toolbardefaults;
 
 
+#endif