namespace lyx {
namespace frontend {
-class Gui;
class WorkArea;
class ControlCommandBuffer;
} // namespace frontend
class LyXView : public boost::signals::trackable, boost::noncopyable {
public:
- LyXView(lyx::frontend::Gui & owner);
+ LyXView();
virtual ~LyXView();
/// return the buffer currently shown in this window
Buffer * buffer() const;
+ /* FIXME: Abdel 22/09/71
+ there is only one lyxFunc() for now but there is maybe a need
+ for more in the feature. Something like that:
+
+ LyXFunc & getLyXFunc() { return theApp->lyxFunc(id_); }
+
+ where id_ would be the this LyXView ID.
+ That's the reason why I didn't remove these methods for now.
+ */
/// return the LyX function handler for this view
LyXFunc & getLyXFunc() { return theApp->lyxFunc(); }
///
/// returns true if this view has the focus.
virtual bool hasFocus() const = 0;
- ///
- virtual lyx::frontend::Gui & gui();
-
/// Temporary method used by the kernel to redraw the work area.
virtual void redrawWorkArea();
boost::scoped_ptr<Menubar> menubar_;
private:
- lyx::frontend::Gui & owner_;
/**
* setWindowTitle - set title of window
* @param t main window title