mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 03:11:59 +00:00
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:
parent
44b7b7fc71
commit
15a971fec2
@ -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>
|
2001-10-31 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
|
||||||
|
|
||||||
* gettext.C (locale_init): set LC_NUMERIC to "C" even if nls is
|
* gettext.C (locale_init): set LC_NUMERIC to "C" even if nls is
|
||||||
|
@ -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!
|
int ret;
|
||||||
return 0;
|
os << "<title>";
|
||||||
|
ret = InsetText::docbook(buf, os);
|
||||||
|
os << "</title>\n";
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -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
|
Inset::Code InsetIndex::lyxCode() const
|
||||||
{
|
{
|
||||||
return Inset::INDEX_CODE;
|
return Inset::INDEX_CODE;
|
||||||
|
@ -40,6 +40,8 @@ public:
|
|||||||
void edit(BufferView * bv, bool front = true);
|
void edit(BufferView * bv, bool front = true);
|
||||||
///
|
///
|
||||||
Inset::Code lyxCode() const;
|
Inset::Code lyxCode() const;
|
||||||
|
///
|
||||||
|
int docbook(Buffer const *, std::ostream &) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user