#include <boost/bind.hpp>
-#include "support/std_sstream.h"
+#include <sstream>
#include <fstream>
namespace support = lyx::support;
using std::endl;
using std::ostream;
+using std::ostringstream;
+using std::string;
namespace lyx {
lyxerr[Debug::GRAPHICS] << "\tConversion script:"
<< "\n--------------------------------------\n"
- << STRCONV(script.str())
+ << script.str()
<< "\n--------------------------------------\n";
// Output the script to file.
tostr(counter++) + ".sh";
std::ofstream fs(script_file_.c_str());
- if (!fs.good())
+ if (!fs.good()) {
+ lyxerr << "Unable to write the conversion script to \""
+ << script_file_ << '\n'
+ << "Please check your directory permissions."
+ << std::endl;
return;
+ }
- fs << STRCONV(script.str());
+ fs << script.str();
fs.close();
// The command needed to run the conversion process
<< "\t'rm' -f ${fromfile}\n"
<< "}\n";
- return STRCONV(command.str());
+ return command.str();
}