]> git.lyx.org Git - lyx.git/blobdiff - src/ToolbarDefaults.h
copy some code over to allow work to start on prefs
[lyx.git] / src / ToolbarDefaults.h
index 3781f0c715a00127cd7bb025ff1729a8feada99b..fc5e003e5729fe2313bdf3be3dffb9efd0fa391c 100644 (file)
@@ -1,22 +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"
 
-using std::vector;
-
 class LyXLex;
 
-
 ///
 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;
        ///
@@ -52,7 +74,8 @@ private:
        Defaults defaults;
 };
 
-#endif
-
+/// The global instance
+extern ToolbarDefaults toolbardefaults;
 
 
+#endif