#include "frontends/LyXView.h"
#include "frontends/Painter.h"
-#include "support/std_sstream.h"
-
+#include <sstream>
#include <iostream>
using lyx::graphics::PreviewLoader;
}
-void InsetTabular::buffer(Buffer * b)
+void InsetTabular::buffer(Buffer const * b)
{
buffer_ = b;
}
maxCols = max(cols, maxCols);
paste_tabular.reset(
- new LyXTabular(cur.bv().buffer()->params(), rows, maxCols));
+ new LyXTabular(cur.buffer().params(), rows, maxCols));
string::size_type op = 0;
int cell = 0;
}
-void InsetTabular::getCursorPos(CursorSlice const & cur, int & x, int & y) const
+void InsetTabular::getCursorPos(LCursor const & cur, int & x, int & y) const
{
cell(cur.idx()).getCursorPos(cur, x, y);
}
#if 0
// just multicol for one Single Cell
if (!hasSelection()) {
- // check wether we are completly in a multicol
+ // check whether we are completly in a multicol
if (tabular.isMultiColumn(actcell))
tabular.unsetMultiColumn(actcell);
else
ostringstream os;
OutputParams const runparams;
- paste_tabular->plaintext(*cur.bv().buffer(), os, runparams, 0, true, '\t');
+ paste_tabular->plaintext(cur.buffer(), os, runparams, 0, true, '\t');
cur.bv().stuffClipboard(os.str());
return true;
}
if (!cur.selection())
return;
- bool const track = cur.bv().buffer()->params().tracking_changes;
+ bool const track = cur.buffer().params().tracking_changes;
int rs, re, cs, ce;
getSelection(cur, rs, re, cs, ce);
for (int i = rs; i <= re; ++i)