#include "Floating.h"
#include "FloatList.h"
#include "gettext.h"
+#include "language.h"
#include "LaTeX.h"
#include "lyxtextclass.h"
#include "paragraph.h"
int id_start = -1;
int pos_start = -1;
int errorrow = cit->error_in_line;
- buf.texrow().getIdFromRow(errorrow, id_start, pos_start);
+ bool found = buf.texrow().getIdFromRow(errorrow, id_start,
+ pos_start);
int id_end = -1;
int pos_end = -1;
do {
++errorrow;
- buf.texrow().getIdFromRow(errorrow, id_end, pos_end);
- } while (id_start == id_end && pos_start == pos_end);
+ found = buf.texrow().getIdFromRow(errorrow, id_end,
+ pos_end);
+ } while (found && id_start == id_end && pos_start == pos_end);
buf.error(ErrorItem(cit->error_desc, cit->error_text,
id_start, pos_start, pos_end));
counters.step(enumcounter);
- par.params().labelString(counters.enumLabel(enumcounter));
+ string format;
+
+ switch (par.itemdepth) {
+ case 0:
+ format = N_("\\arabic{enumi}.");
+ break;
+ case 1:
+ format = N_("(\\alph{enumii})");
+ break;
+ case 2:
+ format = N_("\\roman{enumiii}.");
+ break;
+ case 3:
+ format = N_("\\Alph{enumiv}.");
+ break;
+ default:
+ // not a valid enumdepth...
+ break;
+ }
+
+ par.params().labelString(counters.counterLabel(buf.B_(format)));
} else if (layout->labeltype == LABEL_BIBLIO) {// ale970302
counters.step("bibitem");
int number = counters.value("bibitem");
--i;
InsetBase * const in = &it[i].inset();
if (in->lyxCode() == InsetBase::FLOAT_CODE
- || in->lyxCode() == InsetBase::WRAP_CODE)
+ || in->lyxCode() == InsetBase::WRAP_CODE) {
type = in->getInsetName();
break;
+ }
}
string s;