]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetref.C
Clean up InsetGraphics::Cache and rename as GraphicsInset.
[lyx.git] / src / insets / insetref.C
index 72cb13da36882dc05957a1bc76496c565ac74640..eab61a905d3541178157cb7676fb33489886e4b9 100644 (file)
 
 using std::ostream;
 
-InsetRef::InsetRef(InsetCommandParams const & p, Buffer const & buf, bool)
+InsetRef::InsetRef(InsetCommandParams const & p, Buffer const & buf)
        : InsetCommand(p), isLatex(buf.isLatex())
 {}
 
 
+InsetRef::InsetRef(InsetRef const & ir)
+       : InsetCommand(ir), isLatex(ir.isLatex)
+{
+}
+
+
 InsetRef::~InsetRef()
 {
        InsetCommandMailer("ref", *this).hideDialog();
@@ -37,7 +43,7 @@ InsetRef::~InsetRef()
 dispatch_result InsetRef::localDispatch(FuncRequest const & cmd)
 {
        switch (cmd.action) {
-       case LFUN_INSET_EDIT:   
+       case LFUN_INSET_EDIT:
                // Eventually trigger dialog with button 3 not 1
                if (cmd.button() == mouse_button::button3)
                        cmd.view()->owner()->
@@ -45,9 +51,9 @@ dispatch_result InsetRef::localDispatch(FuncRequest const & cmd)
                if (cmd.button() == mouse_button::button1)
                        InsetCommandMailer("ref", *this).showDialog(cmd.view());
                return DISPATCHED;
-       
+
        default:
-               return UNDISPATCHED;
+               return InsetCommand::localDispatch(cmd);
        }
 }