- if (isVerbatim(params_))
- os << GetFileContents(includedFilename(buffer, params_));
- return 0;
-}
-
-
-int InsetInclude::linuxdoc(Buffer const & buffer, ostream & os,
- OutputParams const & runparams) const
-{
- string incfile(params_.getContents());
-
- // Do nothing if no file name has been specified
- if (incfile.empty())
- return 0;
-
- string const included_file = includedFilename(buffer, params_);
-
- if (loadIfNeeded(buffer, params_)) {
- Buffer * tmp = bufferlist.getBuffer(included_file);
-
- // write it to a file (so far the complete file)
- string writefile = ChangeExtension(included_file, ".sgml");
-
- if (!runparams.nice) {
- incfile = FileName(writefile).mangledFilename();
- writefile = MakeAbsPath(incfile,
- buffer.getMasterBuffer()->temppath());
- }
-
- lyxerr[Debug::LATEX] << "incfile:" << incfile << endl;
- lyxerr[Debug::LATEX] << "writefile:" << writefile << endl;
-
- OutputParams runp = runparams;
- tmp->makeLinuxDocFile(writefile, runp, true);
- }
-