case LFUN_FILE_NEW:
BOOST_ASSERT(lyx_view_);
- newFile(lyx_view_->view(), argument);
+ newFile(*lyx_view_, argument);
break;
case LFUN_FILE_OPEN:
// create new file with template
// SERVERCMD !
//
-void newFile(BufferView * bv, string const & filename)
+void newFile(LyXView & lv, string const & filename)
{
// Split argument by :
string name;
Buffer * const b = newFile(name, tmpname);
if (b)
- bv->setBuffer(b);
+ lv.setBuffer(b);
}
///
void autoSave(BufferView * bv);
///
-void newFile(BufferView * bv, std::string const & filename);
+void newFile(frontend::LyXView & lv, std::string const & filename);
///
void insertPlaintextFile(BufferView * bv, std::string const & f, bool asParagraph);
/// read plain text file (if \p f is empty, prompt for a filename)