mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Add XML elements as a third flex inset variant
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20105 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
eca79a8a09
commit
ef743fc5d5
@ -319,7 +319,7 @@ End
|
||||
# Inside AGU-journal:
|
||||
|
||||
InsetLayout CharStyle:ISSN
|
||||
LyXType charstyle
|
||||
LyXType element
|
||||
LabelString ISSN
|
||||
LatexType Command
|
||||
LatexName ISSN
|
||||
@ -330,7 +330,7 @@ End
|
||||
|
||||
|
||||
InsetLayout CharStyle:CODEN
|
||||
LyXType charstyle
|
||||
LyXType element
|
||||
LabelString CODEN
|
||||
LatexType Command
|
||||
LatexName CODEN
|
||||
@ -342,7 +342,7 @@ End
|
||||
# Inside Special-section:
|
||||
|
||||
InsetLayout CharStyle:SS-Code
|
||||
LyXType charstyle
|
||||
LyXType element
|
||||
LabelString SS-Code
|
||||
LatexType Command
|
||||
LatexName ss-code
|
||||
@ -353,7 +353,7 @@ End
|
||||
|
||||
|
||||
InsetLayout CharStyle:SS-Title
|
||||
LyXType charstyle
|
||||
LyXType element
|
||||
LabelString SS-Title
|
||||
LatexType Command
|
||||
LatexName ss-title
|
||||
@ -365,7 +365,7 @@ End
|
||||
# Inside Copyright:
|
||||
|
||||
InsetLayout CharStyle:CCC-Code
|
||||
LyXType charstyle
|
||||
LyXType element
|
||||
LabelString CCC-Code
|
||||
LatexType Command
|
||||
LatexName CCCcode
|
||||
@ -378,7 +378,7 @@ End
|
||||
# Inside Index-term:
|
||||
|
||||
InsetLayout CharStyle:Code
|
||||
LyXType charstyle
|
||||
LyXType element
|
||||
LabelString Code
|
||||
LatexType Command
|
||||
LatexName code
|
||||
@ -389,7 +389,7 @@ End
|
||||
|
||||
|
||||
InsetLayout CharStyle:Dscr
|
||||
LyXType charstyle
|
||||
LyXType element
|
||||
LabelString Dscr
|
||||
LatexType Command
|
||||
LatexName dscr
|
||||
@ -401,7 +401,7 @@ End
|
||||
# Inside Keywords:
|
||||
|
||||
InsetLayout CharStyle:Keyword
|
||||
LyXType charstyle
|
||||
LyXType element
|
||||
LabelString Keyword
|
||||
LatexType Command
|
||||
LatexName keyword
|
||||
@ -413,7 +413,7 @@ End
|
||||
#inside Affiliation:
|
||||
|
||||
InsetLayout CharStyle:Orgdiv
|
||||
LyXType charstyle
|
||||
LyXType element
|
||||
LabelString Orgdiv
|
||||
LatexType Command
|
||||
LatexName orgdiv
|
||||
@ -424,7 +424,7 @@ End
|
||||
|
||||
|
||||
InsetLayout CharStyle:Orgname
|
||||
LyXType charstyle
|
||||
LyXType element
|
||||
LabelString Orgname
|
||||
LatexType Command
|
||||
LatexName orgname
|
||||
@ -435,7 +435,7 @@ End
|
||||
|
||||
|
||||
InsetLayout CharStyle:Street
|
||||
LyXType charstyle
|
||||
LyXType element
|
||||
LabelString Street
|
||||
LatexType Command
|
||||
LatexName street
|
||||
@ -446,7 +446,7 @@ End
|
||||
|
||||
|
||||
InsetLayout CharStyle:City
|
||||
LyXType charstyle
|
||||
LyXType element
|
||||
LabelString City
|
||||
LatexType Command
|
||||
LatexName city
|
||||
@ -457,7 +457,7 @@ End
|
||||
|
||||
|
||||
InsetLayout CharStyle:State
|
||||
LyXType charstyle
|
||||
LyXType element
|
||||
LabelString State
|
||||
LatexType Command
|
||||
LatexName state
|
||||
@ -468,7 +468,7 @@ End
|
||||
|
||||
|
||||
InsetLayout CharStyle:Postcode
|
||||
LyXType charstyle
|
||||
LyXType element
|
||||
LabelString Postcode
|
||||
LatexType Command
|
||||
LatexName postcode
|
||||
@ -479,7 +479,7 @@ End
|
||||
|
||||
|
||||
InsetLayout CharStyle:Country
|
||||
LyXType charstyle
|
||||
LyXType element
|
||||
LabelString Country
|
||||
LatexType Command
|
||||
LatexName country
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
Format 5
|
||||
InsetLayout CharStyle:Filename
|
||||
LyXType charstyle
|
||||
LyXType element
|
||||
LabelString Filename
|
||||
LatexType Command
|
||||
LatexName filename
|
||||
@ -18,7 +18,7 @@ InsetLayout CharStyle:Filename
|
||||
End
|
||||
|
||||
InsetLayout CharStyle:Directory
|
||||
LyXType charstyle
|
||||
LyXType element
|
||||
LabelString Directory
|
||||
LatexType Command
|
||||
LatexName filename
|
||||
@ -33,7 +33,7 @@ InsetLayout CharStyle:Directory
|
||||
End
|
||||
|
||||
InsetLayout CharStyle:Firstname
|
||||
LyXType charstyle
|
||||
LyXType element
|
||||
LabelString Firstname
|
||||
LatexType Command
|
||||
LatexName firstname
|
||||
@ -44,7 +44,7 @@ InsetLayout CharStyle:Firstname
|
||||
End
|
||||
|
||||
InsetLayout CharStyle:Surname
|
||||
LyXType charstyle
|
||||
LyXType element
|
||||
LabelString Surname
|
||||
LatexType Command
|
||||
LatexName surname
|
||||
@ -55,7 +55,7 @@ InsetLayout CharStyle:Surname
|
||||
End
|
||||
|
||||
InsetLayout CharStyle:Literal
|
||||
LyXType charstyle
|
||||
LyXType element
|
||||
LabelString Literal
|
||||
LatexType Command
|
||||
LatexName literal
|
||||
@ -69,7 +69,7 @@ InsetLayout CharStyle:Literal
|
||||
End
|
||||
|
||||
InsetLayout CharStyle:Email
|
||||
LyXType charstyle
|
||||
LyXType element
|
||||
LabelString Email
|
||||
LatexType Command
|
||||
LatexName email
|
||||
@ -83,7 +83,7 @@ InsetLayout CharStyle:Email
|
||||
End
|
||||
|
||||
InsetLayout CharStyle:KeyCombo
|
||||
LyXType charstyle
|
||||
LyXType element
|
||||
LabelString KeyCombo
|
||||
LatexType Command
|
||||
LatexName keycombo
|
||||
@ -97,7 +97,7 @@ InsetLayout CharStyle:KeyCombo
|
||||
End
|
||||
|
||||
InsetLayout CharStyle:KeyCap
|
||||
LyXType charstyle
|
||||
LyXType element
|
||||
LabelString KeyCap
|
||||
LatexType Command
|
||||
LatexName keycap
|
||||
@ -111,7 +111,7 @@ InsetLayout CharStyle:KeyCap
|
||||
End
|
||||
|
||||
InsetLayout CharStyle:GuiMenu
|
||||
LyXType charstyle
|
||||
LyXType element
|
||||
LabelString GuiMenu
|
||||
LatexType Command
|
||||
LatexName guimenu
|
||||
@ -125,7 +125,7 @@ InsetLayout CharStyle:GuiMenu
|
||||
End
|
||||
|
||||
InsetLayout CharStyle:GuiMenuItem
|
||||
LyXType charstyle
|
||||
LyXType element
|
||||
LabelString GuiMenuItem
|
||||
LatexType Command
|
||||
LatexName guimenuitem
|
||||
@ -139,7 +139,7 @@ InsetLayout CharStyle:GuiMenuItem
|
||||
End
|
||||
|
||||
InsetLayout CharStyle:GuiButton
|
||||
LyXType charstyle
|
||||
LyXType element
|
||||
LabelString GuiButton
|
||||
LatexType Command
|
||||
LatexName guibutton
|
||||
@ -153,7 +153,7 @@ InsetLayout CharStyle:GuiButton
|
||||
End
|
||||
|
||||
InsetLayout CharStyle:MenuChoice
|
||||
LyXType charstyle
|
||||
LyXType element
|
||||
LabelString MenuChoice
|
||||
LatexType Command
|
||||
LatexName menuchoice
|
||||
|
@ -141,6 +141,7 @@ Menuset
|
||||
|
||||
Menu "edit_textstyles"
|
||||
CharStyles
|
||||
Elements
|
||||
Separator
|
||||
Item "Customized...|C" "dialog-show character"
|
||||
Separator
|
||||
|
@ -219,6 +219,7 @@ Menu & Menu::read(Lexer & lex)
|
||||
md_bookmarks,
|
||||
md_charstyles,
|
||||
md_custom,
|
||||
md_elements,
|
||||
md_endmenu,
|
||||
md_exportformats,
|
||||
md_importformats,
|
||||
@ -243,6 +244,7 @@ Menu & Menu::read(Lexer & lex)
|
||||
{ "charstyles", md_charstyles },
|
||||
{ "custom", md_custom },
|
||||
{ "documents", md_documents },
|
||||
{ "elements", md_elements },
|
||||
{ "end", md_endmenu },
|
||||
{ "exportformats", md_exportformats },
|
||||
{ "floatinsert", md_floatinsert },
|
||||
@ -300,6 +302,10 @@ Menu & Menu::read(Lexer & lex)
|
||||
add(MenuItem(MenuItem::Custom));
|
||||
break;
|
||||
|
||||
case md_elements:
|
||||
add(MenuItem(MenuItem::Elements));
|
||||
break;
|
||||
|
||||
case md_documents:
|
||||
add(MenuItem(MenuItem::Documents));
|
||||
break;
|
||||
@ -891,6 +897,10 @@ void MenuBackend::expand(Menu const & frommenu, Menu & tomenu,
|
||||
expandFlexInsert(tomenu, buf, "custom");
|
||||
break;
|
||||
|
||||
case MenuItem::Elements:
|
||||
expandFlexInsert(tomenu, buf, "element");
|
||||
break;
|
||||
|
||||
case MenuItem::FloatListInsert:
|
||||
expandFloatListInsert(tomenu, buf);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user