-/* This file is part of
- * ======================================================
- *
- * LyX, The Document Processor
- *
- * Copyright 1995 Matthias Ettrich
- * Copyright 1995-2001 The LyX Team.
+/**
+ * \file BufferView.C
+ * Copyright 1995-2002 the LyX Team
+ * Read the file COPYING
*
- * ====================================================== */
+ * \author unknown
+ * \author John Levon <moz@compsoc.man.ac.uk>
+ */
#include <config.h>
#include "BufferView.h"
#include "BufferView_pimpl.h"
#include "lyxtext.h"
-#include "WorkArea.h"
-#include "lyxscreen.h"
+#include "frontends/screen.h"
+#include "frontends/WorkArea.h"
BufferView::BufferView(LyXView * o, int xpos, int ypos,
}
-LyXScreen * BufferView::screen() const
+LyXScreen & BufferView::screen() const
{
- return pimpl_->screen_.get();
+ return pimpl_->screen();
}
}
-void BufferView::pushIntoUpdateList(Inset * i)
-{
- pimpl_->updatelist.push(i);
-}
-
-
-Painter & BufferView::painter()
+Painter & BufferView::painter() const
{
return pimpl_->painter();
}
}
-void BufferView::resize(int xpos, int ypos, int width, int height)
-{
- pimpl_->resize(xpos, ypos, width, height);
-}
-
-
void BufferView::resize()
{
- pimpl_->resize();
+ pimpl_->resizeCurrentBuffer();
}
-void BufferView::redraw()
+void BufferView::repaint()
{
- pimpl_->redraw();
+ pimpl_->repaint();
}
-void BufferView::fitCursor(LyXText * text)
+bool BufferView::fitCursor()
{
- pimpl_->fitCursor(text);
+ return pimpl_->fitCursor();
}
}
-void BufferView::scrollCB(double value)
+void BufferView::scrollDocView(int value)
{
- pimpl_->scrollCB(value);
+ pimpl_->scrollDocView(value);
}
-Inset * BufferView::checkInsetHit(LyXText * text, int & x, int & y,
- unsigned int button)
+Inset * BufferView::checkInsetHit(LyXText * text, int & x, int & y)
{
- return pimpl_->checkInsetHit(text, x, y, button);
+ return pimpl_->checkInsetHit(text, x, y);
}
}
-int BufferView::resizeCurrentBuffer()
-{
- return pimpl_->resizeCurrentBuffer();
-}
-
-
void BufferView::cursorPrevious(LyXText * text)
{
pimpl_->cursorPrevious(text);
}
-void BufferView::insetSleep()
-{
- pimpl_->insetSleep();
-}
-
-
-void BufferView::insetWakeup()
-{
- pimpl_->insetWakeup();
-}
-
-
void BufferView::insetUnlock()
{
pimpl_->insetUnlock();
}
-bool BufferView::focus() const
-{
- return pimpl_->focus();
-}
-
-
-void BufferView::focus(bool f)
-{
- pimpl_->focus(f);
-}
-
-
-bool BufferView::active() const
-{
- return pimpl_->active();
-}
-
-
int BufferView::workWidth() const
{
- return pimpl_->workarea_.workWidth();
-}
-
-
-bool BufferView::belowMouse() const
-{
- return pimpl_->belowMouse();
+ return pimpl_->workarea().workWidth();
}
}
-void BufferView::center()
+void BufferView::center()
{
pimpl_->center();
}
string const BufferView::getClipboard() const
{
- return pimpl_->workarea_.getClipboard();
+ return pimpl_->workarea().getClipboard();
}