4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
15 #include "bufferview_funcs.h"
17 #include "frontends/LyXView.h"
28 class GView : public LyXView, public Gtk::Window {
41 Gtk::Box & getBox(Position pos);
43 virtual void prohibitInput() const;
44 virtual void allowInput() const;
45 virtual void message(lyx::docstring const &);
47 bool on_delete_event(GdkEventAny * event);
48 void focusWorkArea() { workArea_->grab_focus(); }
49 void setGWorkArea(Gtk::Widget * w) { workArea_ = w; }
52 virtual void busy(bool) const;
55 Toolbars::ToolbarPtr makeToolbar(ToolbarBackend::Toolbar const & tbb);
57 /// clear any temporary message and replace with current status
58 virtual void clearMessage();
60 // returns true if this view has the focus.
61 virtual bool hasFocus() const;
63 void updateStatusBar();
66 bool onFocusIn(GdkEventFocus * event);
67 virtual void setWindowTitle(lyx::docstring const & t, lyx::docstring const & it);
69 // The top-most box containing all other boxes.
72 // The physical store for the boxes making up the layout.
73 typedef boost::shared_ptr<Gtk::Box> BoxPtr;
74 typedef std::vector<BoxPtr> BoxStore;
77 // Accessors to the various Boxes.
78 std::map<Position, BoxPtr> box_map_;
80 boost::scoped_ptr<GMiniBuffer> minibuffer_;
81 Gtk::Widget * workArea_;
84 } // namespace frontend