insetnote.h (linuxdoc,docbook): update support.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7383 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
José Matox 2003-07-27 13:02:26 +00:00
parent cf1307fcea
commit b4a7936882
2 changed files with 29 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2003-07-27 José Matos <jamatos@fep.up.pt>
* insetnote.h (linuxdoc,docbook): update support.
2003-07-27 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* insetfloat.C (wide): add a space to label, for consistency

View File

@ -169,19 +169,40 @@ int InsetNote::latex(Buffer const * buf, ostream & os,
}
int InsetNote::linuxdoc(Buffer const *, std::ostream &) const
int InsetNote::linuxdoc(Buffer const * buf, std::ostream & os) const
{
return 0;
string const pt = params_.type;
int i = 0;
if (pt == "Comment")
os << "<comment>\n";
if (pt != "Note")
i = inset.linuxdoc(buf, os);
if (pt == "Comment") {
os << "\n</comment>\n";
i += 3;
}
return i;
}
int InsetNote::docbook(Buffer const * buf, std::ostream & os, bool mixcont) const
{
int i = 0;
string const pt = params_.type;
// incomplete, untested - MV
int i = 0;
if (pt == "Comment")
os << "<remark>\n";
if (pt != "Note")
i = inset.docbook(buf, os, mixcont);
if (pt == "Comment") {
os << "\n</remark>\n";
i += 3;
}
return i;
}