X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FToolbarDefaults.h;h=a3ffb4de2d9555ddeca8c95b0f2db8e0ee3a7f4d;hb=1bb197b5d4821404cfe11509c71d1f8de7cee711;hp=3781f0c715a00127cd7bb025ff1729a8feada99b;hpb=85798535a19919e82cc94a177a8414c542a9c5bf;p=lyx.git diff --git a/src/ToolbarDefaults.h b/src/ToolbarDefaults.h index 3781f0c715..a3ffb4de2d 100644 --- a/src/ToolbarDefaults.h +++ b/src/ToolbarDefaults.h @@ -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 #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 Defaults; + typedef std::vector Defaults; /// typedef Defaults::iterator iterator; /// @@ -52,7 +74,8 @@ private: Defaults defaults; }; -#endif - +/// The global instance +extern ToolbarDefaults toolbardefaults; +#endif