]> git.lyx.org Git - lyx.git/blobdiff - src/ToolbarDefaults.h
Collapse all those LFUN_XYZ_APPLY to a single LFUN_INSET_APPLY.
[lyx.git] / src / ToolbarDefaults.h
index 3781f0c715a00127cd7bb025ff1729a8feada99b..dc254187d8f59fd32a189e142e8e622c70e09672 100644 (file)
@@ -1,4 +1,15 @@
 // -*- 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
 
 #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 +70,8 @@ private:
        Defaults defaults;
 };
 
-#endif
-
+/// The global instance
+extern ToolbarDefaults toolbardefaults;
 
 
+#endif