From 6653ca2c3169edc0c4a997befcd957645100ed45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Matox?= Date: Sat, 7 Jun 2003 09:48:11 +0000 Subject: [PATCH] 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 --- src/insets/ChangeLog | 6 ++++++ src/insets/insethfill.C | 13 +++++++++++++ src/insets/insethfill.h | 4 ++++ src/insets/insetspace.C | 2 -- 4 files changed, 23 insertions(+), 2 deletions(-) diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index 35ee212447..4b03c88d47 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,9 @@ +2003-06-07 José Matos + + * insethfill.[Ch] (linuxdoc, docbook): implement output + * insetspace.C (linuxdoc, docbook): remove coments as the code + is correct. + 2003-06-06 José Matos * insetnewline.C (linuxdoc,docbook): return newline, fix bug 1148. diff --git a/src/insets/insethfill.C b/src/insets/insethfill.C index 62f62f8b4c..47d75e0bc0 100644 --- a/src/insets/insethfill.C +++ b/src/insets/insethfill.C @@ -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 { os << "\n\\hfill \n"; diff --git a/src/insets/insethfill.h b/src/insets/insethfill.h index 99bf805a70..93974e6b50 100644 --- a/src/insets/insethfill.h +++ b/src/insets/insethfill.h @@ -33,6 +33,10 @@ public: /// 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; /// We don't need \begin_inset and \end_inset bool directWrite() const { return true; } diff --git a/src/insets/insetspace.C b/src/insets/insetspace.C index 0ec7e91347..ced4160a90 100644 --- a/src/insets/insetspace.C +++ b/src/insets/insetspace.C @@ -213,7 +213,6 @@ int InsetSpace::ascii(Buffer const *, ostream & os, int) const int InsetSpace::linuxdoc(Buffer const *, ostream & os) const { switch (kind_) { - // fixme: correct? case NORMAL: case QUAD: case QQUAD: @@ -234,7 +233,6 @@ int InsetSpace::linuxdoc(Buffer const *, ostream & os) const int InsetSpace::docbook(Buffer const *, ostream & os, bool) const { switch (kind_) { - // fixme: correct? case NORMAL: case QUAD: case QQUAD: