#include "BufferView.h"
#include "BufferView_pimpl.h"
#include "lyxtext.h"
+#include "WorkArea.h"
+#include "lyxscreen.h"
BufferView::BufferView(LyXView * o, int xpos, int ypos,
}
+LyXScreen * BufferView::screen() const
+{
+ return pimpl_->screen_;
+}
+
+
+WorkArea * BufferView::workarea() const
+{
+ return pimpl_->workarea_;
+}
+
+
LyXView * BufferView::owner() const
{
return pimpl_->owner_;
}
+Inset * BufferView::checkInsetHit(LyXText * text, int & x, int & y,
+ unsigned int button)
+{
+ return pimpl_->checkInsetHit(text, x, y, button);
+}
+
+
void BufferView::redoCurrentBuffer()
{
pimpl_->redoCurrentBuffer();
}
-extern "C" {
- void C_BufferView_CursorToggleCB(FL_OBJECT * ob, long buf)
- {
- BufferView::cursorToggleCB(ob, buf);
- }
-}
-
-
void BufferView::enterView()
{
pimpl_->enterView();
}
-extern int bibitemMaxWidth(Painter &, LyXFont const &);
-
-
/// Single-click on work area
void BufferView::workAreaButtonPress(int xpos, int ypos, unsigned int button)
{
}
-// // Callback for cursor timer
-void BufferView::cursorToggleCB(FL_OBJECT * ob, long )
-{
- BufferView * view = static_cast<BufferView*>(ob->u_vdata);
- view->pimpl_->cursorToggle();
-}
-
-
-void BufferView::workAreaSelectionNotify(Window win, XEvent * event)
-{
- pimpl_->workAreaSelectionNotify(win, event);
-}
-
-
void BufferView::cursorPrevious()
{
pimpl_->cursorPrevious();
}
-void BufferView::update(signed char f)
+bool BufferView::NoSavedPositions()
{
- pimpl_->update(f);
+ return pimpl_->NoSavedPositions();
}
-#if 0
-void BufferView::smallUpdate(signed char f)
+void BufferView::update(UpdateCodes f)
{
- pimpl_->smallUpdate(f);
+ pimpl_->update(f);
}
-#endif
void BufferView::setState()
}
-unsigned short BufferView::paperWidth() const
+int BufferView::workWidth() const
{
- return text->paperWidth();
+ return pimpl_->workarea_->workWidth();
}
{
pimpl_->center();
}
+
+
+void BufferView::pasteClipboard(bool asPara)
+{
+ pimpl_->pasteClipboard(asPara);
+}
+
+
+void BufferView::stuffClipboard(string const & stuff) const
+{
+ pimpl_->stuffClipboard(stuff);
+}
+
+
+BufferView::UpdateCodes operator|(BufferView::UpdateCodes uc1,
+ BufferView::UpdateCodes uc2)
+{
+ return static_cast<BufferView::UpdateCodes>
+ (static_cast<int>(uc1) | static_cast<int>(uc2));
+}