#include "debug.h"
#include "TextClass.h"
+#include "Layout.h"
#include "support/convert.h"
#include "support/filetools.h"
using support::onlyPath;
using support::os::internal_path;
using support::rtrim;
-using support::isFileReadable;
namespace fs = boost::filesystem;
-Layout_ptr captionlayout;
+LayoutPtr captionlayout;
// Hacks to allow the thing to link in the lyxlayout stuff
LyXErr lyxerr(std::cerr.rdbuf());
stringstream ss;
TextClass textclass = parse_preamble(p, ss, documentclass);
- captionlayout = Layout_ptr(Layout::forCaption());
+ captionlayout = LayoutPtr(Layout::forCaption());
active_environments.push_back("document");
Context context(true, textclass);
bool tex2lyx(string const &infilename, FileName const &outfilename)
{
- if (isFileReadable(outfilename)) {
+ if (outfilename.isFileReadable()) {
if (overwrite_files) {
cerr << "Overwriting existing file "
<< outfilename << endl;