]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiToolbars.h
Complete the removal of the embedding stuff. Maybe. It's hard to be sure we got every...
[lyx.git] / src / frontends / qt4 / GuiToolbars.h
index d7fc02fdc828ebec2c43f6e4ccd153114cf7539b..49ac3a5af3b9099cd942a3fc7700473448322e32 100644 (file)
 #ifndef GUI_TOOLBARS_H
 #define GUI_TOOLBARS_H
 
-#include "TextClassPtr.h"
-
 #include "support/docstring.h"
 
 #include <map>
 
 namespace lyx {
 
+class DocumentClass;
 class ToolbarInfo;
 
 namespace frontend {
 
-class GuiLayoutBox;
 class GuiToolbar;
 class GuiView;
 
@@ -51,7 +49,8 @@ public:
        void toggleToolbarState(std::string const & name, bool allowauto);
 
        /// Update the state of the toolbars.
-       void update(bool in_math, bool in_table, bool review);
+       void update(bool in_math, bool in_table, bool review, 
+                   bool in_mathmacrotemplate);
 
        /// Is the Toolbar currently visible?
        bool visible(std::string const & name) const;
@@ -59,22 +58,11 @@ public:
        /// save toolbar information
        void saveToolbarInfo();
 
-       /// Select the right layout in the combox.
-       void setLayout(docstring const & layout);
-
-       /** Populate the layout combox - returns whether we did a full
-        *  update or not
-        */
-       bool updateLayoutList(TextClassPtr textclass, bool force);
-
-       /// Drop down the layout list.
-       void openLayoutList();
-       /// Erase the layout list.
-       void clearLayoutList();
-
        /// Show or hide the command buffer.
        void showCommandBuffer(bool show_it);
 
+       /// toggle visibility of toolbars and save its flags for return
+       void toggleFullScreen(bool start_full_screen);
 
 private:
        /// Add a new toolbar. if newline==true, start from a new line
@@ -92,25 +80,16 @@ private:
        /// The parent window.
        GuiView & owner_;
 
-       /** The layout box is actually owned by whichever toolbar
-        *  contains it. All the Toolbars class needs is a means of
-        *  accessing it.
-        *
-        *  We don't need to use boost::weak_ptr here because the toolbars
-        *  are also stored here. There are, therefore, no lifetime issues.
-        */
-       GuiLayoutBox * layout_;
-
        /// Toolbar store providing access to individual toolbars by name.
        typedef std::map<std::string, GuiToolbar *> ToolbarsMap;
        ToolbarsMap toolbars_;
 
        /// The last textclass layout list in the layout choice selector
-       TextClassPtr last_textclass_;
+       DocumentClass * last_textclass_;
 };
 
 
 } // namespace frontend
 } // namespace lyx
 
-#endif // NOT GUI_TOOLBARS_H
+#endif // GUI_TOOLBARS_H