Added suport for index and caption insets.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2958 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
José Matox 2001-11-02 16:11:19 +00:00
parent 44b7b7fc71
commit 15a971fec2
4 changed files with 24 additions and 3 deletions

View File

@ -1,3 +1,12 @@
2001-11-02 Ben Guillon <nicolas.marsgui@libertysurf.fr>
* insetindex.h (docbook):
* insetindex.C (docbook): added support for docbook export.
2001-11-02 José Matos <jamatos@fep.up.pt>
* insetcaption.C(docbook): added support for docbook export.
2001-10-31 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* gettext.C (locale_init): set LC_NUMERIC to "C" even if nls is

View File

@ -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 << "<title>";
ret = InsetText::docbook(buf, os);
os << "</title>\n";
return ret;
}

View File

@ -34,6 +34,13 @@ void InsetIndex::edit(BufferView * bv, bool)
}
int InsetIndex::docbook(Buffer const *, ostream & os) const
{
os << "<indexterm><primary>" << getContents() << "</primary></indexterm>";
return 0;
}
Inset::Code InsetIndex::lyxCode() const
{
return Inset::INDEX_CODE;

View File

@ -40,6 +40,8 @@ public:
void edit(BufferView * bv, bool front = true);
///
Inset::Code lyxCode() const;
///
int docbook(Buffer const *, std::ostream &) const;
};