+ LAYOUTS = -1,
+ };
+
+ /// action, tooltip
+ typedef std::pair<FuncRequest, docstring> Item;
+
+ /// the toolbar items
+ typedef std::vector<Item> Items;
+
+ /// toolbar flags
+ enum Flags {
+ ON = 1, //< always shown
+ OFF = 2, //< never shown
+ MATH = 4, //< shown when in math
+ TABLE = 8, //< shown when in table
+ TOP = 16, //< show at top
+ BOTTOM = 32, //< show at bottom
+ LEFT = 64, //< show at left
+ RIGHT = 128, //< show at right
+ REVIEW = 256, //< shown when change tracking is enabled
+ AUTO = 512 //< only if AUTO is set, will MATH, TABLE and REIVEW is used
+ };
+
+ /// a toolbar
+ struct Toolbar {
+ /// toolbar name
+ std::string name;
+ /// toolbar GUI name
+ std::string gui_name;
+ /// toolbar contents
+ Items items;
+ /// flags
+ Flags flags;