Make URL a standard inset

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21576 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Martin Vermeer 2007-11-13 10:03:16 +00:00
parent c4db1d0f5a
commit 979239a248
4 changed files with 24 additions and 26 deletions

View 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

View File

@ -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

View 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"

View 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;
}