InsetTabular.cpp: output the caption for docbook according to the docbook documentation http://docbook.org/tdg/en/html/caption.html and this example: http://sources.redhat.com/ml/docbook/2004-06/msg00017.html

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28463 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2009-02-12 02:37:14 +00:00
parent cb81a4e0d4
commit ff677ecfdb

View File

@ -2513,13 +2513,24 @@ int Tabular::docbook(odocstream & os, OutputParams const & runparams) const
//+ Long Tabular case +
//+---------------------------------------------------------------------
// output caption info
if (haveLTCaption()) {
os << "<caption>\n";
++ret;
for (row_type i = 0; i < row_info.size(); ++i) {
if (row_info[i].caption) {
ret += docbookRow(os, i, runparams);
}
}
os << "</caption>\n";
++ret;
}
// output header info
if (haveLTHead() || haveLTFirstHead()|| haveLTCaption()) {
if (haveLTHead() || haveLTFirstHead()) {
os << "<thead>\n";
++ret;
for (row_type i = 0; i < row_info.size(); ++i) {
if (row_info[i].endhead || row_info[i].endfirsthead
|| row_info[i].caption) {
if (row_info[i].endhead || row_info[i].endfirsthead) {
ret += docbookRow(os, i, runparams);
}
}