From 15a971fec2b7425cf692cda1ba68b0e37004a465 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Matox?= Date: Fri, 2 Nov 2001 16:11:19 +0000 Subject: [PATCH] Added suport for index and caption insets. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2958 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 9 +++++++++ src/insets/insetcaption.C | 9 ++++++--- src/insets/insetindex.C | 7 +++++++ src/insets/insetindex.h | 2 ++ 4 files changed, 24 insertions(+), 3 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 586d6cd26b..4bb894608a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,12 @@ +2001-11-02 Ben Guillon + + * insetindex.h (docbook): + * insetindex.C (docbook): added support for docbook export. + +2001-11-02 José Matos + + * insetcaption.C(docbook): added support for docbook export. + 2001-10-31 Jean-Marc Lasgouttes * gettext.C (locale_init): set LC_NUMERIC to "C" even if nls is diff --git a/src/insets/insetcaption.C b/src/insets/insetcaption.C index cd793a2d73..f1ba9df2de 100644 --- a/src/insets/insetcaption.C +++ b/src/insets/insetcaption.C @@ -120,8 +120,11 @@ int InsetCaption::ascii(Buffer const * /*buf*/, } -int InsetCaption::docbook(Buffer const * /*buf*/, ostream & /*os*/) const +int InsetCaption::docbook(Buffer const * buf, ostream & os) const { - // Fix: Implement me! - return 0; + int ret; + os << ""; + ret = InsetText::docbook(buf, os); + os << "\n"; + return ret; } diff --git a/src/insets/insetindex.C b/src/insets/insetindex.C index dc91d1f3c8..73e24fc274 100644 --- a/src/insets/insetindex.C +++ b/src/insets/insetindex.C @@ -34,6 +34,13 @@ void InsetIndex::edit(BufferView * bv, bool) } +int InsetIndex::docbook(Buffer const *, ostream & os) const +{ + os << "" << getContents() << ""; + return 0; +} + + Inset::Code InsetIndex::lyxCode() const { return Inset::INDEX_CODE; diff --git a/src/insets/insetindex.h b/src/insets/insetindex.h index 36707af81d..2f4baef458 100644 --- a/src/insets/insetindex.h +++ b/src/insets/insetindex.h @@ -40,6 +40,8 @@ public: void edit(BufferView * bv, bool front = true); /// Inset::Code lyxCode() const; + /// + int docbook(Buffer const *, std::ostream &) const; }; -- 2.39.2