]> git.lyx.org Git - features.git/commitdiff
Make URL a standard inset
authorMartin Vermeer <martin.vermeer@hut.fi>
Tue, 13 Nov 2007 10:03:16 +0000 (10:03 +0000)
committerMartin Vermeer <martin.vermeer@hut.fi>
Tue, 13 Nov 2007 10:03:16 +0000 (10:03 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21576 a592a061-630c-0410-9148-cb99ea01b6c8

lib/layouts/stdinsets.inc
lib/layouts/url.module [deleted file]
lib/ui/stdmenus.inc
src/Text3.cpp

index bfeac92d4eed6feed7535f1e7803decd117ebceb..779876927f9202e45b2925d8f12567192189455e 100644 (file)
@@ -202,3 +202,24 @@ InsetLayout table
        MultiPar              true
 End
 
+InsetLayout URL
+       LyXType               standard
+       LatexName             url
+       Decoration            minimalistic
+       LabelString           URL
+       PassThru              true
+       ForceLTR              true
+       Font
+         Family              Typewriter
+         Color               Blue
+       EndFont
+       LabelFont
+         Family              Typewriter
+         Color               Blue
+         Size                Small
+       EndFont
+       Preamble
+         \usepackage{url}
+       EndPreamble
+End
+
diff --git a/lib/layouts/url.module b/lib/layouts/url.module
deleted file mode 100644 (file)
index 1217669..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-#\DeclareLyXModule[url.sty]{Adds a character style for the \url command.}{URL}
-
-Format 4
-
-InsetLayout URL
-  LyXType charstyle
-  LatexType command
-  LatexName url
-  Decoration minimalistic
-  LabelString URL
-  PassThru true
-  ForceLTR true
-  Font
-    Family Typewriter
-    Color Blue
-  EndFont
-  LabelFont
-    Family Typewriter
-    Color Blue
-    Size Small
-  EndFont
-  Preamble
-    \usepackage{url}
-  EndPreamble
-End
index c14f7ea8e96e4e9235245dd48a169c99e790a21b..309b3da976a6d4d0a63c158d9008abafd064ce2d 100644 (file)
@@ -328,6 +328,7 @@ Menuset
                Separator
                Item "Table...|T" "tabular-insert"
                Item "Graphics...|G" "dialog-show-new-inset graphics"
+               Item "URL" "flex-insert URL"
                Item "Hyperlink|k" "href-insert"
                Item "Footnote|F" "footnote-insert"
                Item "Marginal Note|M" "marginalnote-insert"
index 026d51e839f9b88bb6e0d229b273acc8e63b4d83..8a1456b232212868efe94d07f8d7d56dbcd1fb70 100644 (file)
@@ -1907,7 +1907,8 @@ bool Text::getStatus(Cursor & cur, FuncRequest const & cmd,
                InsetLayout il =  cur.buffer().params().getTextClass().insetlayout(from_utf8(s));
                if (il.lyxtype != "charstyle" &&
                    il.lyxtype != "custom" &&
-                   il.lyxtype != "element")
+                   il.lyxtype != "element" &&
+                   il.lyxtype != "standard")
                        enable = false;
                break;
                }