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