#include "tex2lyx.h"
-#include "layout.h"
-#include "LyXTextClass.h"
-#include "LyXLex.h"
+#include "Layout.h"
+#include "Lexer.h"
+#include "TextClass.h"
#include "support/filetools.h"
#include "support/lstrings.h"
using std::vector;
using std::cerr;
using std::endl;
+using std::find;
using support::FileName;
using support::libFileSearch;
if (opts.empty())
return;
- for ( ; *what; ++what) {
+ for (; *what; ++what) {
vector<string>::iterator it = find(opts.begin(), opts.end(), *what);
if (it != opts.end()) {
//cerr << "### found option '" << *what << "'\n";
-void end_preamble(ostream & os, LyXTextClass const & /*textclass*/)
+void end_preamble(ostream & os, TextClass const & /*textclass*/)
{
os << "#LyX file created by tex2lyx 0.1.2\n"
<< "\\lyxformat 245\n"
} // anonymous namespace
-LyXTextClass const parse_preamble(Parser & p, ostream & os, string const & forceclass)
+TextClass const parse_preamble(Parser & p, ostream & os, string const & forceclass)
{
// initialize fixed types
special_columns['D'] = 3;
cerr << "Error: Could not find layout file for textclass \"" << h_textclass << "\"." << endl;
exit(1);
}
- LyXTextClass textclass;
+ TextClass textclass;
textclass.read(layoutfilename);
if (h_papersides.empty()) {
ostringstream ss;