#include "BufferView.h"
#include "DispatchResult.h"
#include "FuncRequest.h"
-#include "LyXFont.h"
-#include "LyXLex.h"
+#include "Font.h"
+#include "Lexer.h"
#include "Paragraph.h"
#include "ParagraphList.h"
}
-auto_ptr<InsetBase> InsetBibitem::doClone() const
+auto_ptr<Inset> InsetBibitem::doClone() const
{
auto_ptr<InsetBibitem> b(new InsetBibitem(params()));
b->setCounter(counter);
- return auto_ptr<InsetBase>(b);
+ return auto_ptr<Inset>(b);
}
-void InsetBibitem::doDispatch(LCursor & cur, FuncRequest & cmd)
+void InsetBibitem::doDispatch(Cursor & cur, FuncRequest & cmd)
{
switch (cmd.action) {
}
if (p["key"] != params()["key"])
cur.bv().buffer()->changeRefsIfUnique(params()["key"],
- p["key"], InsetBase::CITE_CODE);
+ p["key"], Inset::CITE_CODE);
setParams(p);
}
}
-void InsetBibitem::read(Buffer const & buf, LyXLex & lex)
+void InsetBibitem::read(Buffer const & buf, Lexer & lex)
{
InsetCommand::read(buf, lex);
to use a hardcoded font like "Times" or so.
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 LyXFont
+ 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
metrics replacement, e.g. by hardcoding the metrics of the standard TeX
font.
*/
- LyXFont font;
+ Font font;
ParagraphList::const_iterator it = buffer.paragraphs().begin();
ParagraphList::const_iterator end = buffer.paragraphs().end();