LyXView::LyXView(Gui & owner)
- : owner_(owner),
+ : work_area_(0),
+ owner_(owner),
toolbars_(new Toolbars(*this)),
intl_(new Intl),
autosave_timeout_(new Timeout(5000)),
lyxfunc_(new LyXFunc(this)),
dialogs_(new Dialogs(*this)),
- controlcommand_(new ControlCommandBuffer(*this)),
- work_area_(0)
+ controlcommand_(new ControlCommandBuffer(*this))
{
lyxerr[Debug::INIT] << "Initializing LyXFunc" << endl;
}
+LyXView::~LyXView()
+{
+}
+
+
void LyXView::setWorkArea(WorkArea * work_area)
{
work_area_ = work_area;
}
-LyXView::~LyXView()
+void LyXView::redrawWorkArea()
{
+ work_area_->redraw();
}