]> git.lyx.org Git - lyx.git/blobdiff - src/insets/inseturl.C
insetcharstyle drawing cosmetics
[lyx.git] / src / insets / inseturl.C
index 741dc0220a1a982a78cde6cae6581c178cc1ae4b..0f052738d8a104ec28abe54120f696a70d771b33 100644 (file)
@@ -29,35 +29,10 @@ using std::ostream;
 
 
 InsetUrl::InsetUrl(InsetCommandParams const & p)
-               : InsetCommand(p)
+       : InsetCommand(p, "url")
 {}
 
 
-// InsetUrl::InsetUrl(InsetCommandParams const & p, bool)
-//             : InsetCommand(p, false)
-// {}
-
-
-InsetUrl::~InsetUrl()
-{
-       InsetCommandMailer("url", *this).hideDialog();
-}
-
-
-DispatchResult
-InsetUrl::priv_dispatch(FuncRequest const & cmd,
-                       idx_type & idx, pos_type & pos)
-{
-       switch (cmd.action) {
-               case LFUN_MOUSE_PRESS:
-                       InsetCommandMailer("url", *this).showDialog(cmd.view());
-                       return DispatchResult(true, true);
-               default:
-                       return InsetCommand::priv_dispatch(cmd, idx, pos);
-       }
-}
-
-
 string const InsetUrl::getScreenLabel(Buffer const &) const
 {
        string temp;