]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBibitem.cpp
InsetListings: change the interface of diaplay function and allow AlignLeft. Applied...
[lyx.git] / src / insets / InsetBibitem.cpp
index 2b282a3d910009a0e6ce2b96d240aca15440a9f2..602a3f601f671fdc4a2979c0766022cd1fd9f2cd 100644 (file)
@@ -16,7 +16,7 @@
 #include "BufferView.h"
 #include "DispatchResult.h"
 #include "FuncRequest.h"
-#include "LyXFont.h"
+#include "Font.h"
 #include "Lexer.h"
 #include "Paragraph.h"
 #include "ParagraphList.h"
@@ -46,15 +46,15 @@ InsetBibitem::InsetBibitem(InsetCommandParams const & p)
 }
 
 
-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) {
 
@@ -67,7 +67,7 @@ void InsetBibitem::doDispatch(LCursor & cur, FuncRequest & cmd)
                }
                if (p["key"] != params()["key"])
                        cur.bv().buffer()->changeRefsIfUnique(params()["key"],
-                                                      p["key"], InsetBase::CITE_CODE);
+                                                      p["key"], Inset::CITE_CODE);
                setParams(p);
        }
 
@@ -143,13 +143,13 @@ docstring const bibitemWidest(Buffer const & buffer)
        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();