Properly define MultiPar status of caption in the layout definition.

Also remove hardcoded paragraph break disabling.

Candidate for branch.
This commit is contained in:
Juergen Spitzmueller 2015-03-10 18:31:55 +01:00
parent dbc4c71ef5
commit 9d824a04d1
8 changed files with 8 additions and 4 deletions

View File

@ -530,6 +530,7 @@ InsetLayout Caption:FigCaption
LabelString fig.
LaTeXType command
LatexName figcaption
MultiPar false
Argument 1
LabelString "Filename"
Tooltip "Filename to identify the corresponding figure file"

View File

@ -208,6 +208,7 @@ InsetLayout Caption:Table
LaTeXType command
LatexName tablecaption
NeedProtect 1
MultiPar false
HTMLStyle
div.float-caption {
text-align: center;

View File

@ -252,6 +252,7 @@ InsetLayout Caption:Centered
LaTeXType command
LatexName centeredcaption
NeedProtect 1
MultiPar false
Argument 1
LabelString "Short Title|S"
Tooltip "The caption as it appears in the list of figures/tables"

View File

@ -352,6 +352,7 @@ InsetLayout Caption:Centered
LaTeXType command
LatexName centeredcaption
NeedProtect 1
MultiPar false
Argument 1
LabelString "Short Title|S"
Tooltip "The caption as it appears in the list of figures/tables"

View File

@ -41,6 +41,7 @@ InsetLayout Caption:Bicaption
LaTeXType command
LatexName bicaption
NeedProtect 1
MultiPar false
Argument 1
LabelString "Main Language Short Title"
Tooltip "Short title for the main(document) language"

View File

@ -270,6 +270,7 @@ InsetLayout Caption:Above
LaTeXType command
LatexName captionabove
NeedProtect 1
MultiPar false
Argument 1
LabelString "Short Title|S"
Tooltip "The caption as it appears in the list of figures/tables"
@ -291,6 +292,7 @@ InsetLayout Caption:Below
LaTeXType command
LatexName captionbelow
NeedProtect 1
MultiPar false
Argument 1
LabelString "Short Title|S"
Tooltip "The caption as it appears in the list of figures/tables"

View File

@ -557,6 +557,7 @@ InsetLayout Caption:Standard
LaTeXType command
LatexName caption
NeedProtect 1
MultiPar false
Argument 1
LabelString "Short Title|S"
Tooltip "The caption as it appears in the list of figures/tables"

View File

@ -237,10 +237,6 @@ bool InsetCaption::getStatus(Cursor & cur, FuncRequest const & cmd,
return InsetText::getStatus(cur, cmd, status);
}
case LFUN_PARAGRAPH_BREAK:
status.setEnabled(false);
return true;
case LFUN_INSET_TOGGLE:
// pass back to owner
cur.undispatched();