* insets/insetfloatlist.C:

* insets/insettoc.C:
	* TocBackend.C:
	* TocBackend.h: rename 'asciiTocList()' to '.writePlaintextTocList'

	* insets/insettext.C:
	* output_plaintext.C:
	* output_plaintext.h: rename 'asciiParagraph' to 'writePlaintextParagraph'

	* output_plaintext.C:
	* exporter.C:
	* output_plaintext.h: rename 'writeFileAscii' to 'writePlaintextFile'

	* lyxrc.C: change lyxrc section title (ASCII => PLAIN TEXT)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16756 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Michael Schmitt 2007-01-18 22:29:50 +00:00
parent 25079a83c2
commit c5df681fe8
9 changed files with 17 additions and 17 deletions

View File

@ -224,7 +224,7 @@ TocIterator const TocBackend::item(
}
void TocBackend::asciiTocList(string const & type, odocstream & os) const
void TocBackend::writePlaintextTocList(string const & type, odocstream & os) const
{
TocList::const_iterator cit = tocs_.find(type);
if (cit != tocs_.end()) {

View File

@ -110,7 +110,7 @@ public:
/// Return the first Toc Item before the cursor
TocIterator const item(std::string const & type, ParConstIterator const &) const;
void asciiTocList(std::string const & type, odocstream & os) const;
void writePlaintextTocList(std::string const & type, odocstream & os) const;
private:
///

View File

@ -191,9 +191,9 @@ bool Exporter::Export(Buffer * buffer, string const & format,
filename = changeExtension(filename,
formats.extension(backend_format));
// Ascii backend
// Plain text backend
if (backend_format == "text")
writeFileAscii(*buffer, FileName(filename), runparams);
writePlaintextFile(*buffer, FileName(filename), runparams);
// no backend
else if (backend_format == "lyx")
buffer->writeFile(FileName(filename));

View File

@ -133,7 +133,7 @@ int InsetFloatList::plaintext(Buffer const & buffer, odocstream & os,
{
os << getScreenLabel(buffer) << "\n\n";
buffer.tocBackend().asciiTocList(to_ascii(getParam("type")), os);
buffer.tocBackend().writePlaintextTocList(to_ascii(getParam("type")), os);
os << "\n";
return 0;

View File

@ -319,7 +319,7 @@ int InsetText::plaintext(Buffer const & buf, odocstream & os,
bool ref_printed = false;
odocstringstream oss;
for (; it != end; ++it)
asciiParagraph(buf, *it, oss, runparams, ref_printed);
writePlaintextParagraph(buf, *it, oss, runparams, ref_printed);
docstring const str = oss.str();
os << str;

View File

@ -60,7 +60,7 @@ int InsetTOC::plaintext(Buffer const & buffer, odocstream & os,
{
os << getScreenLabel(buffer) << "\n\n";
buffer.tocBackend().asciiTocList(getCmdName(), os);
buffer.tocBackend().writePlaintextTocList(getCmdName(), os);
os << "\n";
return 0;

View File

@ -1874,7 +1874,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc) const
}
os << "\n#\n"
<< "# ASCII EXPORT SECTION ##############################\n"
<< "# PLAIN TEXT EXPORT SECTION ##############################\n"
<< "#\n\n";
case RC_PLAINTEXT_ROFF_COMMAND:

View File

@ -39,17 +39,17 @@ using std::pair;
using std::string;
void writeFileAscii(Buffer const & buf, FileName const & fname,
void writePlaintextFile(Buffer const & buf, FileName const & fname,
OutputParams const & runparams)
{
odocfstream ofs;
if (!openFileWrite(ofs, fname))
return;
writeFileAscii(buf, ofs, runparams);
writePlaintextFile(buf, ofs, runparams);
}
void writeFileAscii(Buffer const & buf, odocstream & os,
void writePlaintextFile(Buffer const & buf, odocstream & os,
OutputParams const & runparams)
{
bool ref_printed = false;
@ -58,7 +58,7 @@ void writeFileAscii(Buffer const & buf, odocstream & os,
ParagraphList::const_iterator end = par.end();
ParagraphList::const_iterator it = beg;
for (; it != end; ++it) {
asciiParagraph(buf, *it, os, runparams, ref_printed);
writePlaintextParagraph(buf, *it, os, runparams, ref_printed);
}
os << "\n";
}
@ -77,7 +77,7 @@ pair<int, docstring> const addDepth(int depth, int ldepth)
}
void asciiParagraph(Buffer const & buf,
void writePlaintextParagraph(Buffer const & buf,
Paragraph const & par,
odocstream & os,
OutputParams const & runparams,
@ -228,7 +228,7 @@ void asciiParagraph(Buffer const & buf,
case '\0':
lyxerr[Debug::INFO] <<
"writeAsciiFile: NULL char in structure." << endl;
"writePlaintextFile: NULL char in structure." << endl;
break;
default:

View File

@ -25,14 +25,14 @@ class Paragraph;
///
void writeFileAscii(Buffer const & buf, support::FileName const &,
void writePlaintextFile(Buffer const & buf, support::FileName const &,
OutputParams const &);
///
void writeFileAscii(Buffer const & buf, odocstream &, OutputParams const &);
void writePlaintextFile(Buffer const & buf, odocstream &, OutputParams const &);
///
void asciiParagraph(Buffer const & buf,
void writePlaintextParagraph(Buffer const & buf,
Paragraph const & paragraphs,
odocstream & ofs,
OutputParams const &,