up the dialogs. Cursor has to be in front of the inset (i.e.
start of row) for this to function.
+2003-09-04 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * bufferview_funcs.C (currentState): output row information
+
2003-09-04 Lars Gullik Bjønnes <larsbj@lyx.org>
* bufferview_funcs.C (currentState): output paragraph position
#ifdef DEVEL_VERSION
state << _(", Paragraph: ") << text->cursor.par()->id();
state << _(", Position: ") << text->cursor.pos();
+ RowList::iterator rit = text->cursorRow();
+ state << bformat(_(", Row b:%1$d e:%2$d"), rit->pos(), rit->end());
state << _(", Inset: ") <<
(text->cursor.par()->inInset() ? text->cursor.par()->inInset()->id() : -1);
#endif
+2003-09-04 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * lstrings.[Ch] (bformat): add a variant taking two ints.
+
2003-09-04 Angus Leeming <leeming@lyx.org>
* filetools.h:
}
+string bformat(string const & fmt, int arg1, int arg2)
+{
+ return STRCONV((boost::format(STRCONV(fmt)) % arg1 % arg2).str());
+}
+
+
string bformat(string const & fmt, string const & arg1, string const & arg2,
string const & arg3)
{
}
+string bformat(string const & fmt, int arg1, int arg2)
+{
+ Assert(contains(fmt, "%1$d"));
+ Assert(contains(fmt, "%2$d"));
+ string str = subst(fmt, "%1$d", arg1);
+ str = subst(str, "%2$d", arg2);
+ return subst(str, "%%", "%");
+}
+
+
string bformat(string const & fmt, string const & arg1, string const & arg2,
string const & arg3)
{
string bformat(string const & fmt, string const & arg1);
// arguments %1$s and %2$s
string bformat(string const & fmt, string const & arg1, string const & arg2);
+// arguments %1$d and %2$d
+string bformat(string const & fmt, int arg1, int arg2);
// arguments %1$s and %2$s and %3$s
string bformat(string const & fmt, string const & arg1, string const & arg2,
string const & arg3);