#include "Counters.h"
#include "DispatchResult.h"
#include "FuncRequest.h"
-#include "Font.h"
#include "InsetIterator.h"
#include "InsetList.h"
#include "Lexer.h"
#include "Paragraph.h"
#include "ParagraphList.h"
+#include "TextClass.h"
#include "support/lstrings.h"
-#include "support/std_ostream.h"
+#include "support/docstream.h"
#include "support/convert.h"
+#include <ostream>
+
+using namespace std;
+using namespace lyx::support;
namespace lyx {
}
+CommandInfo const * InsetBibitem::findInfo(string const & /* cmdName */)
+{
+ static const char * const paramnames[] = {"label", "key", ""};
+ static const bool isoptional[] = {true, false};
+ static const CommandInfo info = {2, paramnames, isoptional};
+ return &info;
+}
+
+
Inset * InsetBibitem::clone() const
{
InsetBibitem * b = new InsetBibitem(params());
{
InsetCommand::read(buf, lex);
- if (support::prefixIs(getParam("key"), key_prefix)) {
+ if (prefixIs(getParam("key"), key_prefix)) {
int const key = convert<int>(getParam("key").substr(key_prefix.length()));
- key_counter = std::max(key_counter, key);
+ key_counter = max(key_counter, key);
}
}
It is very important that the result of this function is the same both with
and without GUI. After thinking about this it is clear that no Font
metrics should be used here, since these come from the gui. If we can't
- easily get the LaTeX font metrics we should make our own poor mans front
+ easily get the LaTeX font metrics we should make our own poor mans font
metrics replacement, e.g. by hardcoding the metrics of the standard TeX
font.
*/
- Font font;
ParagraphList::const_iterator it = buffer.paragraphs().begin();
ParagraphList::const_iterator end = buffer.paragraphs().end();