- fprintf(file, "\\footskip %s\n",
- VSpace(footskip).asLyXCommand().c_str());
- fprintf(file, "\\secnumdepth %d\n", secnumdepth);
- fprintf(file, "\\tocdepth %d\n", tocdepth);
- fprintf(file, "\\paragraph_separation %s\n",
- string_paragraph_separation[paragraph_separation]);
- fprintf(file, "\\defskip %s\n", defskip.asLyXCommand().c_str());
- fprintf(file, "\\quotes_language %s\n",
- string_quotes_language[quotes_language]);
- switch(quotes_times) {
- case InsetQuotes::SingleQ:
- fprintf(file, "\\quotes_times 1\n"); break;
+ os << "\\footskip "
+ << VSpace(footskip).asLyXCommand() << '\n';
+ os << "\\secnumdepth " << secnumdepth
+ << "\n\\tocdepth " << tocdepth
+ << "\n\\paragraph_separation "
+ << string_paragraph_separation[paragraph_separation]
+ << "\n\\defskip " << defskip.asLyXCommand()
+ << "\n\\quotes_language "
+ << string_quotes_language[quotes_language] << '\n';
+ switch (quotes_times) {
+ // An output operator for insetquotes would be nice
+ case InsetQuotes::SingleQ:
+ os << "\\quotes_times 1\n"; break;