mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-19 22:40:26 +00:00
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:
parent
c4db1d0f5a
commit
979239a248
@ -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
|
||||
|
||||
|
@ -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
|
@ -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"
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user