implement linuxdoc and docbook export for insetHFill, validate insetspace export for both

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7132 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
José Matox 2003-06-07 09:48:11 +00:00
parent 2a102671d9
commit 6653ca2c31
4 changed files with 23 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2003-06-07 José Matos <jamatos@fep.up.pt>
* insethfill.[Ch] (linuxdoc, docbook): implement output
* insetspace.C (linuxdoc, docbook): remove coments as the code
is correct.
2003-06-06 José Matos <jamatos@fep.up.pt> 2003-06-06 José Matos <jamatos@fep.up.pt>
* insetnewline.C (linuxdoc,docbook): return newline, fix bug 1148. * insetnewline.C (linuxdoc,docbook): return newline, fix bug 1148.

View File

@ -36,6 +36,19 @@ int InsetHFill::ascii(Buffer const *, ostream & os, int) const
} }
int InsetHFill::linuxdoc(Buffer const *, std::ostream & os) const
{
os << '\n';
return 0;
}
int InsetHFill::docbook(Buffer const *, std::ostream & os, bool) const
{
os << '\n';
return 0;
}
void InsetHFill::write(Buffer const *, ostream & os) const void InsetHFill::write(Buffer const *, ostream & os) const
{ {
os << "\n\\hfill \n"; os << "\n\\hfill \n";

View File

@ -33,6 +33,10 @@ public:
/// ///
int ascii(Buffer const *, std::ostream &, int linelen) const; int ascii(Buffer const *, std::ostream &, int linelen) const;
/// ///
int linuxdoc(Buffer const *, std::ostream &) const;
///
int docbook(Buffer const *, std::ostream &, bool) const;
///
void write(Buffer const * buf, std::ostream & os) const; void write(Buffer const * buf, std::ostream & os) const;
/// We don't need \begin_inset and \end_inset /// We don't need \begin_inset and \end_inset
bool directWrite() const { return true; } bool directWrite() const { return true; }

View File

@ -213,7 +213,6 @@ int InsetSpace::ascii(Buffer const *, ostream & os, int) const
int InsetSpace::linuxdoc(Buffer const *, ostream & os) const int InsetSpace::linuxdoc(Buffer const *, ostream & os) const
{ {
switch (kind_) { switch (kind_) {
// fixme: correct?
case NORMAL: case NORMAL:
case QUAD: case QUAD:
case QQUAD: case QQUAD:
@ -234,7 +233,6 @@ int InsetSpace::linuxdoc(Buffer const *, ostream & os) const
int InsetSpace::docbook(Buffer const *, ostream & os, bool) const int InsetSpace::docbook(Buffer const *, ostream & os, bool) const
{ {
switch (kind_) { switch (kind_) {
// fixme: correct?
case NORMAL: case NORMAL:
case QUAD: case QUAD:
case QQUAD: case QQUAD: