#include "../support/Package.h"
#include <cstdlib>
+#include <fstream>
#include <iostream>
+#include <sstream>
+using namespace std;
namespace lyx {
LYXERR0(title);
LYXERR0(message);
}
-}
-}
+} // namespace Alert
+} // namespace frontend
bool LaTeXFeatures::isAvailable(std::string const &)
{
{
return false;
}
-}
+} // namespace lyx
using namespace lyx::support;
bool test_Layout(string const & input, string const & output)
{
FileName const ifn(makeAbsPath(input));
- LayoutFileList& l = LayoutFileList::get();
- LayoutFileIndex i = l.addLocalLayout(ifn.onlyFileName(), ifn.onlyPath().absFileName());
+ LayoutFileList & l = LayoutFileList::get();
+ LayoutFileIndex i = onlyFileName(l.addLocalLayout(ifn.onlyFileName(), ifn.onlyPath().absFileName()));
if (i.empty()) {
cerr << "Could not read layout file " << input << ".layout.\n";
return false;
int main(int argc, char * argv[])
{
- os::init(argc, argv);
+ os::init(argc, &argv);
lyxerr.setStream(cerr);
if (argc < 2 || argc > 3) {
cerr << "Usage: " << argv[0] << " <input layout file> [<output layout file>]\n";