mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Properly define MultiPar status of caption in the layout definition.
Also remove hardcoded paragraph break disabling. Candidate for branch.
This commit is contained in:
parent
dbc4c71ef5
commit
9d824a04d1
@ -530,6 +530,7 @@ InsetLayout Caption:FigCaption
|
|||||||
LabelString fig.
|
LabelString fig.
|
||||||
LaTeXType command
|
LaTeXType command
|
||||||
LatexName figcaption
|
LatexName figcaption
|
||||||
|
MultiPar false
|
||||||
Argument 1
|
Argument 1
|
||||||
LabelString "Filename"
|
LabelString "Filename"
|
||||||
Tooltip "Filename to identify the corresponding figure file"
|
Tooltip "Filename to identify the corresponding figure file"
|
||||||
|
@ -208,6 +208,7 @@ InsetLayout Caption:Table
|
|||||||
LaTeXType command
|
LaTeXType command
|
||||||
LatexName tablecaption
|
LatexName tablecaption
|
||||||
NeedProtect 1
|
NeedProtect 1
|
||||||
|
MultiPar false
|
||||||
HTMLStyle
|
HTMLStyle
|
||||||
div.float-caption {
|
div.float-caption {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
@ -252,6 +252,7 @@ InsetLayout Caption:Centered
|
|||||||
LaTeXType command
|
LaTeXType command
|
||||||
LatexName centeredcaption
|
LatexName centeredcaption
|
||||||
NeedProtect 1
|
NeedProtect 1
|
||||||
|
MultiPar false
|
||||||
Argument 1
|
Argument 1
|
||||||
LabelString "Short Title|S"
|
LabelString "Short Title|S"
|
||||||
Tooltip "The caption as it appears in the list of figures/tables"
|
Tooltip "The caption as it appears in the list of figures/tables"
|
||||||
|
@ -352,6 +352,7 @@ InsetLayout Caption:Centered
|
|||||||
LaTeXType command
|
LaTeXType command
|
||||||
LatexName centeredcaption
|
LatexName centeredcaption
|
||||||
NeedProtect 1
|
NeedProtect 1
|
||||||
|
MultiPar false
|
||||||
Argument 1
|
Argument 1
|
||||||
LabelString "Short Title|S"
|
LabelString "Short Title|S"
|
||||||
Tooltip "The caption as it appears in the list of figures/tables"
|
Tooltip "The caption as it appears in the list of figures/tables"
|
||||||
|
@ -41,6 +41,7 @@ InsetLayout Caption:Bicaption
|
|||||||
LaTeXType command
|
LaTeXType command
|
||||||
LatexName bicaption
|
LatexName bicaption
|
||||||
NeedProtect 1
|
NeedProtect 1
|
||||||
|
MultiPar false
|
||||||
Argument 1
|
Argument 1
|
||||||
LabelString "Main Language Short Title"
|
LabelString "Main Language Short Title"
|
||||||
Tooltip "Short title for the main(document) language"
|
Tooltip "Short title for the main(document) language"
|
||||||
|
@ -270,6 +270,7 @@ InsetLayout Caption:Above
|
|||||||
LaTeXType command
|
LaTeXType command
|
||||||
LatexName captionabove
|
LatexName captionabove
|
||||||
NeedProtect 1
|
NeedProtect 1
|
||||||
|
MultiPar false
|
||||||
Argument 1
|
Argument 1
|
||||||
LabelString "Short Title|S"
|
LabelString "Short Title|S"
|
||||||
Tooltip "The caption as it appears in the list of figures/tables"
|
Tooltip "The caption as it appears in the list of figures/tables"
|
||||||
@ -291,6 +292,7 @@ InsetLayout Caption:Below
|
|||||||
LaTeXType command
|
LaTeXType command
|
||||||
LatexName captionbelow
|
LatexName captionbelow
|
||||||
NeedProtect 1
|
NeedProtect 1
|
||||||
|
MultiPar false
|
||||||
Argument 1
|
Argument 1
|
||||||
LabelString "Short Title|S"
|
LabelString "Short Title|S"
|
||||||
Tooltip "The caption as it appears in the list of figures/tables"
|
Tooltip "The caption as it appears in the list of figures/tables"
|
||||||
|
@ -557,6 +557,7 @@ InsetLayout Caption:Standard
|
|||||||
LaTeXType command
|
LaTeXType command
|
||||||
LatexName caption
|
LatexName caption
|
||||||
NeedProtect 1
|
NeedProtect 1
|
||||||
|
MultiPar false
|
||||||
Argument 1
|
Argument 1
|
||||||
LabelString "Short Title|S"
|
LabelString "Short Title|S"
|
||||||
Tooltip "The caption as it appears in the list of figures/tables"
|
Tooltip "The caption as it appears in the list of figures/tables"
|
||||||
|
@ -237,10 +237,6 @@ bool InsetCaption::getStatus(Cursor & cur, FuncRequest const & cmd,
|
|||||||
return InsetText::getStatus(cur, cmd, status);
|
return InsetText::getStatus(cur, cmd, status);
|
||||||
}
|
}
|
||||||
|
|
||||||
case LFUN_PARAGRAPH_BREAK:
|
|
||||||
status.setEnabled(false);
|
|
||||||
return true;
|
|
||||||
|
|
||||||
case LFUN_INSET_TOGGLE:
|
case LFUN_INSET_TOGGLE:
|
||||||
// pass back to owner
|
// pass back to owner
|
||||||
cur.undispatched();
|
cur.undispatched();
|
||||||
|
Loading…
Reference in New Issue
Block a user