mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
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:
parent
cf1307fcea
commit
b4a7936882
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user