mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Mark inverted branch insets
This commit is contained in:
parent
2d57c7199c
commit
54028c3eea
@ -35523,8 +35523,18 @@ There are also inverted branch insets, whose content is output just in case
|
|||||||
\emph on
|
\emph on
|
||||||
not
|
not
|
||||||
\emph default
|
\emph default
|
||||||
activated.
|
activated
|
||||||
This make it easy to add alternative text for different versions of a document.
|
\change_inserted 244031559 1635284375
|
||||||
|
(they are marked with ~ before the name)
|
||||||
|
\change_unchanged
|
||||||
|
.
|
||||||
|
|
||||||
|
\change_deleted 244031559 1635284383
|
||||||
|
This
|
||||||
|
\change_inserted 244031559 1635284385
|
||||||
|
Such insets
|
||||||
|
\change_unchanged
|
||||||
|
make it easy to add alternative text for different versions of a document.
|
||||||
To control whether a particular inset is inverted, right-click on the inset
|
To control whether a particular inset is inverted, right-click on the inset
|
||||||
button and choose
|
button and choose
|
||||||
\family sans
|
\family sans
|
||||||
|
@ -112,8 +112,10 @@ docstring const InsetBranch::buttonLabel(BufferView const &) const
|
|||||||
if (inchild && master_selected != child_selected)
|
if (inchild && master_selected != child_selected)
|
||||||
symb += (child_selected ? tick : cross);
|
symb += (child_selected ? tick : cross);
|
||||||
|
|
||||||
|
docstring inv_symb = from_ascii(params_.inverted ? "~" : "");
|
||||||
|
|
||||||
if (decoration() == InsetDecoration::MINIMALISTIC)
|
if (decoration() == InsetDecoration::MINIMALISTIC)
|
||||||
return symb + params_.branch;
|
return symb + inv_symb + params_.branch;
|
||||||
|
|
||||||
docstring s;
|
docstring s;
|
||||||
if (inmaster && inchild)
|
if (inmaster && inchild)
|
||||||
@ -124,7 +126,7 @@ docstring const InsetBranch::buttonLabel(BufferView const &) const
|
|||||||
s = _("Branch (master): ");
|
s = _("Branch (master): ");
|
||||||
else // !inmaster && !inchild
|
else // !inmaster && !inchild
|
||||||
s = _("Branch (undefined): ");
|
s = _("Branch (undefined): ");
|
||||||
s += params_.branch;
|
s += inv_symb + params_.branch;
|
||||||
|
|
||||||
return symb + s;
|
return symb + s;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user