mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
Allow customization of label string for note insets. We actually had
strings in the layout file, but they were not used. Question: Should we just remove InsetNote::setButtonLabel() now? The only purpose it is serving is to provide a backup in case no label is defined. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36884 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
f659c8f420
commit
d1e0a0e4ed
@ -77,7 +77,7 @@ InsetLayout Foot
|
||||
End
|
||||
|
||||
InsetLayout Note:Comment
|
||||
LabelString comment
|
||||
LabelString Comment
|
||||
LatexType environment
|
||||
LatexName comment
|
||||
BgColor commentbg
|
||||
@ -92,7 +92,7 @@ End
|
||||
|
||||
|
||||
InsetLayout Note:Note
|
||||
LabelString note
|
||||
LabelString Note
|
||||
LatexType command
|
||||
LatexName note
|
||||
BgColor notebg
|
||||
@ -107,7 +107,7 @@ End
|
||||
|
||||
|
||||
InsetLayout Note:Greyedout
|
||||
LabelString greyedout
|
||||
LabelString Greyedout
|
||||
LatexType environment
|
||||
LatexName lyxgreyedout
|
||||
BgColor greyedoutbg
|
||||
|
@ -156,7 +156,11 @@ void InsetNote::read(Lexer & lex)
|
||||
|
||||
void InsetNote::setButtonLabel()
|
||||
{
|
||||
docstring const label = notetranslator_loc().find(params_.type);
|
||||
docstring label = getLayout().labelstring();
|
||||
if (label.empty())
|
||||
label = notetranslator_loc().find(params_.type);
|
||||
else
|
||||
label = translateIfPossible(label);
|
||||
setLabel(label);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user