]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.C
remove unused code
[lyx.git] / src / BufferView.C
index 89f27a7b100d42ce54c5f777af64813d48b93dfb..475720d1f20f77c7ea39b20dea2d9bfa33ae8a5c 100644 (file)
@@ -65,21 +65,17 @@ void BufferView::buffer(Buffer * b)
 }
 
 
-void BufferView::resize(int xpos, int ypos, int width, int height)
-{
-       pimpl_->resize(xpos, ypos, width, height);
-}
-
-
 void BufferView::resize()
 {
-       pimpl_->resize();
+       if (pimpl_->buffer_) {
+               pimpl_->resizeCurrentBuffer();
+       }
 }
 
 
-void BufferView::redraw()
+void BufferView::repaint()
 {
-       pimpl_->redraw();
+       pimpl_->repaint();
 }
 
 
@@ -119,12 +115,6 @@ void BufferView::redoCurrentBuffer()
 }
 
 
-int BufferView::resizeCurrentBuffer()
-{
-       return pimpl_->resizeCurrentBuffer();
-}
-
-
 void BufferView::cursorPrevious(LyXText * text)
 {
        pimpl_->cursorPrevious(text);
@@ -173,9 +163,9 @@ void BufferView::update(LyXText * text, UpdateCodes f)
 }
 
 
-void BufferView::setState()
+void BufferView::switchKeyMap()
 {
-       pimpl_->setState();
+       pimpl_->switchKeyMap();
 }
 
 
@@ -246,7 +236,8 @@ BufferView::UpdateCodes operator|(BufferView::UpdateCodes uc1,
                (static_cast<int>(uc1) | static_cast<int>(uc2));
 }
 
-bool BufferView::Dispatch(kb_action action, string const & argument)
+
+bool BufferView::dispatch(FuncRequest const & ev)
 {
-       return pimpl_->Dispatch(action, argument);
+       return pimpl_->dispatch(ev);
 }