#include "graphics/Previews.h"
+#include "support/filefilterlist.h"
#include "support/filetools.h"
#include "support/forkedcontr.h"
-#include "support/globbing.h"
#include "support/path_defines.h"
#include "support/tostr.h"
#include "support/types.h"
{
// to get the correct y cursor info
lyxerr[Debug::DEBUG] << "BufferView::fitCursor" << std::endl;
- lyx::par_type const pit = bv_->cursor().bottom().par();
+ lyx::pit_type const pit = bv_->cursor().bottom().pit();
bv_->text()->redoParagraph(pit);
refreshPar(*bv_, *bv_->text(), pit);
buffer_->buildMacros();
// update all 'visible' paragraphs
- lyx::par_type beg, end;
+ lyx::pit_type beg, end;
getParsInRange(buffer_->paragraphs(),
top_y(), top_y() + workarea().workHeight(),
beg, end);
if (!cur.selection())
return Change(Change::UNCHANGED);
- return text->getPar(cur.selBegin().par()).
+ return text->getPar(cur.selBegin().pit()).
lookupChangeFull(cur.selBegin().pos());
}
BOOST_ASSERT(bv_->cursor().inTexted());
string const fname = MakeAbsPath(filename);
- bool const res = bv_->buffer()->readFile(fname, bv_->cursor().par());
+ bool const res = bv_->buffer()->readFile(fname, bv_->cursor().pit());
bv_->resize();
string s = res ? _("Document %1$s inserted.")