#include "texrow.h"
#include "undo.h"
#include "WordLangTuple.h"
+#include "metricsinfo.h"
#include "frontends/Alert.h"
#include "frontends/Clipboard.h"
#include "frontends/Dialogs.h"
#include "frontends/LyXView.h"
#include "frontends/Gui.h"
-#include "frontends/WorkArea.h"
#include "insets/insetcommand.h" // ChangeRefs
#include "insets/insettext.h"
+
using lyx::support::bformat;
using lyx::cap::setSelectionRange;
extern BufferList bufferlist;
-BufferView::BufferView(LyXView * owner, int width, int height)
- : pimpl_(new Pimpl(*this, owner, width, height))
+BufferView::BufferView(LyXView * owner)
+ : pimpl_(new Pimpl(*this, owner))
{}
}
-lyx::frontend::Painter & BufferView::painter() const
-{
- return pimpl_->painter();
-}
-
-
void BufferView::setBuffer(Buffer * b)
{
pimpl_->setBuffer(b);
}
+ScrollbarParameters const & BufferView::scrollbarParameters() const
+{
+ return pimpl_->scrollbarParameters();
+}
+
+
void BufferView::scrollDocView(int value)
{
pimpl_->scrollDocView(value);
int BufferView::workWidth() const
{
- return pimpl_->workarea().width();
+ return pimpl_->width();
}
}
-string const BufferView::getClipboard() const
-{
- return pimpl_->clipboard().get();
-}
-
-
-void BufferView::stuffClipboard(string const & stuff) const
-{
- pimpl_->stuffClipboard(stuff);
-}
-
-
FuncStatus BufferView::getStatus(FuncRequest const & cmd)
{
return pimpl_->getStatus(cmd);
void BufferView::selectionRequested()
{
- pimpl_->selectionRequested();
+ pimpl_->selectionRequested();
}
void BufferView::selectionLost()
{
- pimpl_->selectionLost();
+ pimpl_->selectionLost();
}
-void BufferView::workAreaResize()
+void BufferView::workAreaResize(int width, int height)
{
- pimpl_->workAreaResize();
+ pimpl_->workAreaResize(width, height);
}
void BufferView::workAreaKeyPress(LyXKeySymPtr key, key_modifier::state state)
{
- pimpl_->workAreaKeyPress(key, state);
+ pimpl_->workAreaKeyPress(key, state);
}
bool BufferView::workAreaDispatch(FuncRequest const & ev)
{
- return pimpl_->workAreaDispatch(ev);
+ return pimpl_->workAreaDispatch(ev);
}
}
-void BufferView::haveSelection(bool sel)
-{
- pimpl_->clipboard().haveSelection(sel);
-}
-
-
int BufferView::workHeight() const
{
- return pimpl_->workarea().height();
+ return pimpl_->height();
}
}
-bool const BufferView::repaintAll() const
-{
- return pimpl_->repaintAll();
-}
-
-
-void const BufferView::repaintAll(bool r) const
-{
- pimpl_->repaintAll(r);
-}
-
-
LCursor & BufferView::cursor()
{
return pimpl_->cursor_;
{
return pimpl_->offset_ref_;
}
+
+
+ViewMetricsInfo const & BufferView::viewMetricsInfo()
+{
+ return pimpl_->viewMetricsInfo();
+}