]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/Toolbars.h
* src/frontends/qt4/Dialogs.cpp:
[lyx.git] / src / frontends / Toolbars.h
index 94c68a1527b07f953e5ae4eb996baa96e4935478..eb10a4cdfd7e14c53da6809e68c5e8525b7a4a06 100644 (file)
@@ -26,7 +26,7 @@
 #include "ToolbarBackend.h"
 #include <boost/shared_ptr.hpp>
 #include <map>
-#include "session.h"
+#include "Session.h"
 
 
 namespace lyx {
@@ -70,6 +70,8 @@ public:
        */
        virtual void saveInfo(ToolbarSection::ToolbarInfo & tbinfo) = 0;
 
+       /// whether toolbar is visible
+       virtual bool isVisible() const = 0;
        /// Refresh the contents of the bar.
        virtual void update() = 0;
        /// Accessor to the layout combox, if any.
@@ -90,13 +92,16 @@ public:
 
        /// get toolbar state (on/off/auto)
        ToolbarInfo::Flags getToolbarState(std::string const & name);
-       
+
        /// toggle the state of toolbars (on/off/auto)
        void toggleToolbarState(std::string const & name);
 
        /// Update the state of the toolbars.
        void update(bool in_math, bool in_table, bool review);
 
+       /// Is the Toolbar currently visible?
+       bool visible(std::string const & name) const;
+
        /// save toolbar information
        void saveToolbarInfo();