mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-29 05:01:49 +00:00
Mark some intentional fall-throughs (in a way understandable to gcc)
This silences -Wimplicit-fallthrough warnings with gcc7.
This commit is contained in:
parent
df5c26da81
commit
6dc1884d05
@ -1,5 +1,5 @@
|
|||||||
#LyX 2.3 created this file. For more info see http://www.lyx.org/
|
#LyX 2.3 created this file. For more info see http://www.lyx.org/
|
||||||
\lyxformat 544
|
\lyxformat 541
|
||||||
\begin_document
|
\begin_document
|
||||||
\begin_header
|
\begin_header
|
||||||
\save_transient_properties true
|
\save_transient_properties true
|
||||||
@ -101,7 +101,6 @@
|
|||||||
\suppress_date true
|
\suppress_date true
|
||||||
\justification true
|
\justification true
|
||||||
\use_refstyle 0
|
\use_refstyle 0
|
||||||
\use_minted 0
|
|
||||||
\notefontcolor #0000ff
|
\notefontcolor #0000ff
|
||||||
\index Index
|
\index Index
|
||||||
\shortcut idx
|
\shortcut idx
|
||||||
@ -112,9 +111,7 @@
|
|||||||
\paragraph_separation skip
|
\paragraph_separation skip
|
||||||
\defskip medskip
|
\defskip medskip
|
||||||
\is_math_indent 0
|
\is_math_indent 0
|
||||||
\math_numbering_side default
|
|
||||||
\quotes_style swiss
|
\quotes_style swiss
|
||||||
\dynamic_quotes 0
|
|
||||||
\papercolumns 1
|
\papercolumns 1
|
||||||
\papersides 1
|
\papersides 1
|
||||||
\paperpagestyle default
|
\paperpagestyle default
|
||||||
@ -829,37 +826,27 @@ status open
|
|||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
\series bold
|
\series bold
|
||||||
Nota:
|
\lang english
|
||||||
|
Note:
|
||||||
\series default
|
\series default
|
||||||
si vous avez un index dans votre document et si vous utiliser un des modules
|
If you have an index list in your document and use one of the AMS theorem
|
||||||
pour les théorèmes AMS, il vous faut ajouter l'option
|
modules, you have to add the option
|
||||||
\series bold
|
\series bold
|
||||||
noglobalbang
|
noglobalbang
|
||||||
\series default
|
\series default
|
||||||
dans le champ des options de classe des paramètres du document.
|
to the document class options in the document settings.
|
||||||
Ceci autorise l'usage du caractère
|
This enables the usage of the '!' character in index entries (necessary
|
||||||
\begin_inset Quotes cld
|
for subentries) but might cause troubles with the align environments (which
|
||||||
|
are described in section
|
||||||
|
\begin_inset Quotes eld
|
||||||
\end_inset
|
\end_inset
|
||||||
|
|
||||||
!
|
Align Environments
|
||||||
\begin_inset Quotes crd
|
\begin_inset Quotes erd
|
||||||
\end_inset
|
\end_inset
|
||||||
|
|
||||||
dans les entrées d'index (nécessaire pour saisir des sous-entrées) mais
|
of \SpecialChar LyX
|
||||||
peut créer des problèmes de conflit dans les environnements
|
's Math manual).
|
||||||
\family sans
|
|
||||||
align
|
|
||||||
\family default
|
|
||||||
(décrits à la section
|
|
||||||
\begin_inset Quotes cld
|
|
||||||
\end_inset
|
|
||||||
|
|
||||||
Les environnements align
|
|
||||||
\begin_inset Quotes crd
|
|
||||||
\end_inset
|
|
||||||
|
|
||||||
du manuel Math de \SpecialChar LyX
|
|
||||||
's).
|
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\end_inset
|
\end_inset
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#LyX 2.3 created this file. For more info see http://www.lyx.org/
|
#LyX 2.3 created this file. For more info see http://www.lyx.org/
|
||||||
\lyxformat 544
|
\lyxformat 541
|
||||||
\begin_document
|
\begin_document
|
||||||
\begin_header
|
\begin_header
|
||||||
\save_transient_properties true
|
\save_transient_properties true
|
||||||
@ -90,7 +90,6 @@ linguistics
|
|||||||
\suppress_date false
|
\suppress_date false
|
||||||
\justification true
|
\justification true
|
||||||
\use_refstyle 0
|
\use_refstyle 0
|
||||||
\use_minted 0
|
|
||||||
\index Index
|
\index Index
|
||||||
\shortcut idx
|
\shortcut idx
|
||||||
\color #008000
|
\color #008000
|
||||||
@ -100,9 +99,7 @@ linguistics
|
|||||||
\paragraph_separation indent
|
\paragraph_separation indent
|
||||||
\paragraph_indentation default
|
\paragraph_indentation default
|
||||||
\is_math_indent 0
|
\is_math_indent 0
|
||||||
\math_numbering_side default
|
\quotes_style swiss
|
||||||
\quotes_style french
|
|
||||||
\dynamic_quotes 0
|
|
||||||
\papercolumns 1
|
\papercolumns 1
|
||||||
\papersides 1
|
\papersides 1
|
||||||
\paperpagestyle default
|
\paperpagestyle default
|
||||||
@ -780,27 +777,23 @@ inline false
|
|||||||
status open
|
status open
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
% Éviter les sauts de page dans les gloses de deux lignes
|
% Éviter les sauts de page dans les gloses de deux lignes
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
|
|
||||||
\backslash
|
\backslash
|
||||||
AtBeginDocument{%
|
AtBeginDocument{%
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
|
|
||||||
\backslash
|
\backslash
|
||||||
renewenvironment{linggloss}[2][]{%
|
renewenvironment{linggloss}[2][]{%
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
|
|
||||||
\backslash
|
\backslash
|
||||||
def
|
def
|
||||||
\backslash
|
\backslash
|
||||||
@ -811,7 +804,6 @@ glt #1}%
|
|||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
|
|
||||||
\backslash
|
\backslash
|
||||||
begin{minipage}{.7
|
begin{minipage}{.7
|
||||||
\backslash
|
\backslash
|
||||||
@ -820,7 +812,6 @@ textwidth}
|
|||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
|
|
||||||
\backslash
|
\backslash
|
||||||
gll #2}{
|
gll #2}{
|
||||||
\backslash
|
\backslash
|
||||||
@ -832,7 +823,6 @@ end{minipage}}
|
|||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
}
|
}
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
@ -852,27 +842,23 @@ inline false
|
|||||||
status open
|
status open
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
% Éviter les sauts de page dans les gloses de trois lignes
|
% Éviter les sauts de page dans les gloses de trois lignes
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
|
|
||||||
\backslash
|
\backslash
|
||||||
AtBeginDocument{%
|
AtBeginDocument{%
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
|
|
||||||
\backslash
|
\backslash
|
||||||
renewenvironment{lingglosss}[2][]{%
|
renewenvironment{lingglosss}[2][]{%
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
|
|
||||||
\backslash
|
\backslash
|
||||||
def
|
def
|
||||||
\backslash
|
\backslash
|
||||||
@ -883,7 +869,6 @@ glt #1}%
|
|||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
|
|
||||||
\backslash
|
\backslash
|
||||||
begin{minipage}{.7
|
begin{minipage}{.7
|
||||||
\backslash
|
\backslash
|
||||||
@ -892,7 +877,6 @@ textwidth}
|
|||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
|
|
||||||
\backslash
|
\backslash
|
||||||
glll #2}{
|
glll #2}{
|
||||||
\backslash
|
\backslash
|
||||||
@ -904,7 +888,6 @@ end{minipage}}
|
|||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
}
|
}
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
@ -994,18 +977,15 @@ inline false
|
|||||||
status open
|
status open
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
Fournit covington 1
|
Fournit covington 1
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
AddToPreamble
|
AddToPreamble
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
|
|
||||||
\backslash
|
\backslash
|
||||||
let
|
let
|
||||||
\backslash
|
\backslash
|
||||||
@ -1016,7 +996,6 @@ relax
|
|||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
|
|
||||||
\backslash
|
\backslash
|
||||||
let
|
let
|
||||||
\backslash
|
\backslash
|
||||||
@ -1027,7 +1006,6 @@ relax
|
|||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
|
|
||||||
\backslash
|
\backslash
|
||||||
let
|
let
|
||||||
\backslash
|
\backslash
|
||||||
@ -1038,7 +1016,6 @@ relax
|
|||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
|
|
||||||
\backslash
|
\backslash
|
||||||
let
|
let
|
||||||
\backslash
|
\backslash
|
||||||
@ -1049,13 +1026,11 @@ relax
|
|||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
|
|
||||||
\backslash
|
\backslash
|
||||||
usepackage{covington}
|
usepackage{covington}
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
EndPreamble
|
EndPreamble
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
@ -1476,14 +1451,12 @@ status open
|
|||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
|
|
||||||
\backslash
|
\backslash
|
||||||
floatstyle{plaintop}
|
floatstyle{plaintop}
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
|
|
||||||
\backslash
|
\backslash
|
||||||
restylefloat{tableau}
|
restylefloat{tableau}
|
||||||
\end_layout
|
\end_layout
|
||||||
@ -1506,14 +1479,12 @@ status open
|
|||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
|
|
||||||
\backslash
|
\backslash
|
||||||
floatstyle{komaabove}
|
floatstyle{komaabove}
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
|
|
||||||
\backslash
|
\backslash
|
||||||
restylefloat{tableau}
|
restylefloat{tableau}
|
||||||
\end_layout
|
\end_layout
|
||||||
@ -1637,7 +1608,6 @@ status open
|
|||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
|
|
||||||
\backslash
|
\backslash
|
||||||
renewcommand
|
renewcommand
|
||||||
\backslash
|
\backslash
|
||||||
@ -1979,9 +1949,14 @@ literal "true"
|
|||||||
status open
|
status open
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
Si vous utilisez les traitements usuels \SpecialChar LaTeX
|
|
||||||
ou PDF\SpecialChar LaTeX
|
\lang english
|
||||||
, le paquetage
|
If you use traditional \SpecialChar LaTeX
|
||||||
|
or PDF\SpecialChar LaTeX
|
||||||
|
, a prerequisite to use \SpecialChar LyX
|
||||||
|
's IPA support is
|
||||||
|
the \SpecialChar LaTeX
|
||||||
|
package
|
||||||
\emph on
|
\emph on
|
||||||
tipa
|
tipa
|
||||||
\emph default
|
\emph default
|
||||||
@ -1993,64 +1968,64 @@ literal "true"
|
|||||||
|
|
||||||
\end_inset
|
\end_inset
|
||||||
|
|
||||||
est un prérequis à l'utilisation des fonctionnalités IPA de LyX; ce paquetage
|
, which is automatically loaded by \SpecialChar LyX
|
||||||
est chargé automatiquement par \SpecialChar LyX
|
if you follow the procedure described
|
||||||
si vous respectez la procédure ci-après.
|
below.
|
||||||
Si vous utilisez Xe\SpecialChar TeX
|
If you use Xe\SpecialChar TeX
|
||||||
ou Lua\SpecialChar TeX
|
or Lua\SpecialChar TeX
|
||||||
(i.
|
(i.
|
||||||
\begin_inset space \thinspace{}
|
\begin_inset space \thinspace{}
|
||||||
\end_inset
|
\end_inset
|
||||||
|
|
||||||
e., si vous avez sélectionné
|
e., if you have clicked
|
||||||
\begin_inset Quotes cld
|
\begin_inset Quotes eld
|
||||||
\end_inset
|
\end_inset
|
||||||
|
|
||||||
Utiliser des polices non-\SpecialChar TeX
|
Use non-\SpecialChar TeX
|
||||||
|
fonts
|
||||||
\begin_inset Quotes crd
|
\begin_inset Quotes erd
|
||||||
\end_inset
|
\end_inset
|
||||||
|
|
||||||
via
|
in
|
||||||
\family sans
|
\family sans
|
||||||
Document\SpecialChar menuseparator
|
Document\SpecialChar menuseparator
|
||||||
Paramètres\SpecialChar menuseparator
|
Settings\SpecialChar menuseparator
|
||||||
Polices
|
Fonts
|
||||||
\family default
|
\family default
|
||||||
), le paquetage
|
), the package
|
||||||
\emph on
|
\emph on
|
||||||
xunicode
|
xunicode
|
||||||
\emph default
|
\emph default
|
||||||
est chargé à la place (du fait que
|
is loaded instead (since
|
||||||
\emph on
|
\emph on
|
||||||
tipa
|
tipa
|
||||||
\emph default
|
\emph default
|
||||||
ne fonctionne pas dans ce contexte).
|
does not work in this context).
|
||||||
Le paquetage
|
The
|
||||||
\emph on
|
\emph on
|
||||||
xunicode
|
xunicode
|
||||||
\emph default
|
\emph default
|
||||||
émule le résultat
|
package emulates the
|
||||||
\emph on
|
\emph on
|
||||||
tipa
|
tipa
|
||||||
\emph default
|
\emph default
|
||||||
, mais pas parfaitement, et certaines choses n'apparaîtront pas comme prévu.
|
output, but is not perfect at that, so some things might not look as expected.
|
||||||
De plus, il faut prendre soin de sélectionner une police non-TeX qui inclue
|
Furthermore, you need to take care in this case to use a non-TeX font that
|
||||||
les glyphes IPA (comme
|
includes the IPA glyphs (such as
|
||||||
\emph on
|
\emph on
|
||||||
CMU Serif
|
CMU Serif
|
||||||
\emph default
|
\emph default
|
||||||
ou
|
or
|
||||||
\emph on
|
\emph on
|
||||||
SIL Doulos
|
SIL Doulos
|
||||||
\emph default
|
\emph default
|
||||||
).
|
).
|
||||||
Vous pouvez également spécifier une police supplémentaire uniquement pour
|
You can also specify an extra font only for IPA by adding the following
|
||||||
IPA en ajoutant ceci à
|
to
|
||||||
\family sans
|
\family sans
|
||||||
Document\SpecialChar menuseparator
|
Document\SpecialChar menuseparator
|
||||||
Paramètres\SpecialChar menuseparator
|
Settings\SpecialChar menuseparator
|
||||||
Préambule LaTeX
|
LaTeX Preamble
|
||||||
\family default
|
\family default
|
||||||
:
|
:
|
||||||
\end_layout
|
\end_layout
|
||||||
@ -2101,12 +2076,14 @@ ipafont}
|
|||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
Enfin, et indépendamment de l'approche utilisée, il faut que le paquetage
|
|
||||||
|
|
||||||
|
\lang english
|
||||||
|
Additionally, and independent from which of the above approaches you use,
|
||||||
|
if you want to have instant preview, you should have the
|
||||||
\emph on
|
\emph on
|
||||||
preview-latex
|
preview-latex
|
||||||
\emph default
|
\emph default
|
||||||
|
package
|
||||||
\begin_inset CommandInset citation
|
\begin_inset CommandInset citation
|
||||||
LatexCommand cite
|
LatexCommand cite
|
||||||
key "preview"
|
key "preview"
|
||||||
@ -2114,7 +2091,7 @@ literal "true"
|
|||||||
|
|
||||||
\end_inset
|
\end_inset
|
||||||
|
|
||||||
soit installé pour avoir un aperçu sur le vif.
|
installed.
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\end_inset
|
\end_inset
|
||||||
@ -2192,6 +2169,7 @@ Notez que si vous souhaitez insérer des diacritiques, ils doivent être saisis
|
|||||||
\begin_inset IPA
|
\begin_inset IPA
|
||||||
|
|
||||||
\begin_layout Standard
|
\begin_layout Standard
|
||||||
|
|
||||||
[d̥]
|
[d̥]
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
|
@ -4912,8 +4912,10 @@ void Buffer::Impl::setLabel(ParIterator & it, UpdateType utype) const
|
|||||||
switch (par.itemdepth) {
|
switch (par.itemdepth) {
|
||||||
case 2:
|
case 2:
|
||||||
enumcounter += 'i';
|
enumcounter += 'i';
|
||||||
|
// fall through
|
||||||
case 1:
|
case 1:
|
||||||
enumcounter += 'i';
|
enumcounter += 'i';
|
||||||
|
// fall through
|
||||||
case 0:
|
case 0:
|
||||||
enumcounter += 'i';
|
enumcounter += 'i';
|
||||||
break;
|
break;
|
||||||
|
167
src/LyXRC.cpp
167
src/LyXRC.cpp
File diff suppressed because it is too large
Load Diff
@ -3871,13 +3871,13 @@ void Paragraph::locateWord(pos_type & from, pos_type & to,
|
|||||||
to = from;
|
to = from;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// no break here, we go to the next
|
// fall through
|
||||||
|
|
||||||
case WHOLE_WORD:
|
case WHOLE_WORD:
|
||||||
// If we are already at the beginning of a word, do nothing
|
// If we are already at the beginning of a word, do nothing
|
||||||
if (!from || isWordSeparator(from - 1))
|
if (!from || isWordSeparator(from - 1))
|
||||||
break;
|
break;
|
||||||
// no break here, we go to the next
|
// fall through
|
||||||
|
|
||||||
case PREVIOUS_WORD:
|
case PREVIOUS_WORD:
|
||||||
// always move the cursor to the beginning of previous word
|
// always move the cursor to the beginning of previous word
|
||||||
|
@ -2070,9 +2070,8 @@ void GuiApplication::dispatch(FuncRequest const & cmd, DispatchResult & dr)
|
|||||||
if (current_view_ == 0)
|
if (current_view_ == 0)
|
||||||
createView();
|
createView();
|
||||||
}
|
}
|
||||||
// fall through
|
|
||||||
}
|
}
|
||||||
|
// fall through
|
||||||
default:
|
default:
|
||||||
// The LFUN must be for one of GuiView, BufferView, Buffer or Cursor;
|
// The LFUN must be for one of GuiView, BufferView, Buffer or Cursor;
|
||||||
// let's try that:
|
// let's try that:
|
||||||
|
@ -1989,7 +1989,8 @@ bool GuiView::getStatus(FuncRequest const & cmd, FuncStatus & flag)
|
|||||||
|
|
||||||
case LFUN_DIALOG_TOGGLE:
|
case LFUN_DIALOG_TOGGLE:
|
||||||
flag.setOnOff(isDialogVisible(cmd.getArg(0)));
|
flag.setOnOff(isDialogVisible(cmd.getArg(0)));
|
||||||
// fall through to set "enable"
|
// to set "enable"
|
||||||
|
// fall through
|
||||||
case LFUN_DIALOG_SHOW: {
|
case LFUN_DIALOG_SHOW: {
|
||||||
string const name = cmd.getArg(0);
|
string const name = cmd.getArg(0);
|
||||||
if (!doc_buffer)
|
if (!doc_buffer)
|
||||||
|
@ -209,6 +209,8 @@ void InsetCaption::doDispatch(Cursor & cur, FuncRequest & cmd)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// no "changetype":
|
||||||
|
// fall through
|
||||||
|
|
||||||
default:
|
default:
|
||||||
InsetText::doDispatch(cur, cmd);
|
InsetText::doDispatch(cur, cmd);
|
||||||
|
@ -209,6 +209,8 @@ bool InsetFloat::getStatus(Cursor & cur, FuncRequest const & cmd,
|
|||||||
flag.setEnabled(false);
|
flag.setEnabled(false);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
// no subfloat:
|
||||||
|
// fall through
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return InsetCaptionable::getStatus(cur, cmd, flag);
|
return InsetCaptionable::getStatus(cur, cmd, flag);
|
||||||
|
@ -214,6 +214,8 @@ bool InsetLabel::getStatus(Cursor & cur, FuncRequest const & cmd,
|
|||||||
enabled = false;
|
enabled = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
// no "changetype":
|
||||||
|
// fall through
|
||||||
default:
|
default:
|
||||||
return InsetCommand::getStatus(cur, cmd, status);
|
return InsetCommand::getStatus(cur, cmd, status);
|
||||||
}
|
}
|
||||||
|
@ -441,6 +441,7 @@ bool InsetListings::getStatus(Cursor & cur, FuncRequest const & cmd,
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// fall through
|
||||||
default:
|
default:
|
||||||
return InsetCaptionable::getStatus(cur, cmd, status);
|
return InsetCaptionable::getStatus(cur, cmd, status);
|
||||||
}
|
}
|
||||||
|
@ -4676,12 +4676,14 @@ bool InsetTabular::getFeatureStatus(Cursor & cur, string const & s,
|
|||||||
// therefore allow always left but right and center only if there is no width
|
// therefore allow always left but right and center only if there is no width
|
||||||
case Tabular::M_ALIGN_LEFT:
|
case Tabular::M_ALIGN_LEFT:
|
||||||
flag = false;
|
flag = false;
|
||||||
|
// fall through
|
||||||
case Tabular::ALIGN_LEFT:
|
case Tabular::ALIGN_LEFT:
|
||||||
status.setOnOff(tabular.getAlignment(cur.idx(), flag) == LYX_ALIGN_LEFT);
|
status.setOnOff(tabular.getAlignment(cur.idx(), flag) == LYX_ALIGN_LEFT);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Tabular::M_ALIGN_RIGHT:
|
case Tabular::M_ALIGN_RIGHT:
|
||||||
flag = false;
|
flag = false;
|
||||||
|
// fall through
|
||||||
case Tabular::ALIGN_RIGHT:
|
case Tabular::ALIGN_RIGHT:
|
||||||
status.setEnabled(!(tabular.isMultiRow(cur.idx())
|
status.setEnabled(!(tabular.isMultiRow(cur.idx())
|
||||||
&& !tabular.getPWidth(cur.idx()).zero()));
|
&& !tabular.getPWidth(cur.idx()).zero()));
|
||||||
@ -4690,6 +4692,7 @@ bool InsetTabular::getFeatureStatus(Cursor & cur, string const & s,
|
|||||||
|
|
||||||
case Tabular::M_ALIGN_CENTER:
|
case Tabular::M_ALIGN_CENTER:
|
||||||
flag = false;
|
flag = false;
|
||||||
|
// fall through
|
||||||
case Tabular::ALIGN_CENTER:
|
case Tabular::ALIGN_CENTER:
|
||||||
status.setEnabled(!(tabular.isMultiRow(cur.idx())
|
status.setEnabled(!(tabular.isMultiRow(cur.idx())
|
||||||
&& !tabular.getPWidth(cur.idx()).zero()));
|
&& !tabular.getPWidth(cur.idx()).zero()));
|
||||||
@ -4710,6 +4713,7 @@ bool InsetTabular::getFeatureStatus(Cursor & cur, string const & s,
|
|||||||
|
|
||||||
case Tabular::M_VALIGN_TOP:
|
case Tabular::M_VALIGN_TOP:
|
||||||
flag = false;
|
flag = false;
|
||||||
|
// fall through
|
||||||
case Tabular::VALIGN_TOP:
|
case Tabular::VALIGN_TOP:
|
||||||
status.setEnabled(!tabular.getPWidth(cur.idx()).zero()
|
status.setEnabled(!tabular.getPWidth(cur.idx()).zero()
|
||||||
&& !tabular.isMultiRow(cur.idx()));
|
&& !tabular.isMultiRow(cur.idx()));
|
||||||
@ -4719,6 +4723,7 @@ bool InsetTabular::getFeatureStatus(Cursor & cur, string const & s,
|
|||||||
|
|
||||||
case Tabular::M_VALIGN_BOTTOM:
|
case Tabular::M_VALIGN_BOTTOM:
|
||||||
flag = false;
|
flag = false;
|
||||||
|
// fall through
|
||||||
case Tabular::VALIGN_BOTTOM:
|
case Tabular::VALIGN_BOTTOM:
|
||||||
status.setEnabled(!tabular.getPWidth(cur.idx()).zero()
|
status.setEnabled(!tabular.getPWidth(cur.idx()).zero()
|
||||||
&& !tabular.isMultiRow(cur.idx()));
|
&& !tabular.isMultiRow(cur.idx()));
|
||||||
@ -4728,6 +4733,7 @@ bool InsetTabular::getFeatureStatus(Cursor & cur, string const & s,
|
|||||||
|
|
||||||
case Tabular::M_VALIGN_MIDDLE:
|
case Tabular::M_VALIGN_MIDDLE:
|
||||||
flag = false;
|
flag = false;
|
||||||
|
// fall through
|
||||||
case Tabular::VALIGN_MIDDLE:
|
case Tabular::VALIGN_MIDDLE:
|
||||||
status.setEnabled(!tabular.getPWidth(cur.idx()).zero()
|
status.setEnabled(!tabular.getPWidth(cur.idx()).zero()
|
||||||
&& !tabular.isMultiRow(cur.idx()));
|
&& !tabular.isMultiRow(cur.idx()));
|
||||||
@ -5006,7 +5012,7 @@ bool InsetTabular::getStatus(Cursor & cur, FuncRequest const & cmd,
|
|||||||
status.setEnabled(false);
|
status.setEnabled(false);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
// Fall back
|
// fall through
|
||||||
case LFUN_NEWLINE_INSERT: {
|
case LFUN_NEWLINE_INSERT: {
|
||||||
if (tabular.getPWidth(cur.idx()).zero()) {
|
if (tabular.getPWidth(cur.idx()).zero()) {
|
||||||
status.setEnabled(false);
|
status.setEnabled(false);
|
||||||
@ -5660,6 +5666,7 @@ void InsetTabular::tabularFeatures(Cursor & cur,
|
|||||||
case Tabular::M_VALIGN_BOTTOM:
|
case Tabular::M_VALIGN_BOTTOM:
|
||||||
case Tabular::M_VALIGN_MIDDLE:
|
case Tabular::M_VALIGN_MIDDLE:
|
||||||
flag = false;
|
flag = false;
|
||||||
|
// fall through
|
||||||
case Tabular::VALIGN_TOP:
|
case Tabular::VALIGN_TOP:
|
||||||
case Tabular::VALIGN_BOTTOM:
|
case Tabular::VALIGN_BOTTOM:
|
||||||
case Tabular::VALIGN_MIDDLE:
|
case Tabular::VALIGN_MIDDLE:
|
||||||
@ -5782,6 +5789,7 @@ void InsetTabular::tabularFeatures(Cursor & cur,
|
|||||||
|
|
||||||
case Tabular::SET_ALL_LINES:
|
case Tabular::SET_ALL_LINES:
|
||||||
setLines = true;
|
setLines = true;
|
||||||
|
// fall through
|
||||||
case Tabular::UNSET_ALL_LINES:
|
case Tabular::UNSET_ALL_LINES:
|
||||||
for (row_type r = sel_row_start; r <= sel_row_end; ++r)
|
for (row_type r = sel_row_start; r <= sel_row_end; ++r)
|
||||||
for (col_type c = sel_col_start; c <= sel_col_end; ++c) {
|
for (col_type c = sel_col_start; c <= sel_col_end; ++c) {
|
||||||
@ -5906,6 +5914,7 @@ void InsetTabular::tabularFeatures(Cursor & cur,
|
|||||||
|
|
||||||
case Tabular::UNSET_LTFIRSTHEAD:
|
case Tabular::UNSET_LTFIRSTHEAD:
|
||||||
flag = false;
|
flag = false;
|
||||||
|
// fall through
|
||||||
case Tabular::SET_LTFIRSTHEAD:
|
case Tabular::SET_LTFIRSTHEAD:
|
||||||
tabular.getRowOfLTFirstHead(row, ltt);
|
tabular.getRowOfLTFirstHead(row, ltt);
|
||||||
checkLongtableSpecial(ltt, value, flag);
|
checkLongtableSpecial(ltt, value, flag);
|
||||||
@ -5914,6 +5923,7 @@ void InsetTabular::tabularFeatures(Cursor & cur,
|
|||||||
|
|
||||||
case Tabular::UNSET_LTHEAD:
|
case Tabular::UNSET_LTHEAD:
|
||||||
flag = false;
|
flag = false;
|
||||||
|
// fall through
|
||||||
case Tabular::SET_LTHEAD:
|
case Tabular::SET_LTHEAD:
|
||||||
tabular.getRowOfLTHead(row, ltt);
|
tabular.getRowOfLTHead(row, ltt);
|
||||||
checkLongtableSpecial(ltt, value, flag);
|
checkLongtableSpecial(ltt, value, flag);
|
||||||
@ -5922,6 +5932,7 @@ void InsetTabular::tabularFeatures(Cursor & cur,
|
|||||||
|
|
||||||
case Tabular::UNSET_LTFOOT:
|
case Tabular::UNSET_LTFOOT:
|
||||||
flag = false;
|
flag = false;
|
||||||
|
// fall through
|
||||||
case Tabular::SET_LTFOOT:
|
case Tabular::SET_LTFOOT:
|
||||||
tabular.getRowOfLTFoot(row, ltt);
|
tabular.getRowOfLTFoot(row, ltt);
|
||||||
checkLongtableSpecial(ltt, value, flag);
|
checkLongtableSpecial(ltt, value, flag);
|
||||||
@ -5930,6 +5941,7 @@ void InsetTabular::tabularFeatures(Cursor & cur,
|
|||||||
|
|
||||||
case Tabular::UNSET_LTLASTFOOT:
|
case Tabular::UNSET_LTLASTFOOT:
|
||||||
flag = false;
|
flag = false;
|
||||||
|
// fall through
|
||||||
case Tabular::SET_LTLASTFOOT:
|
case Tabular::SET_LTLASTFOOT:
|
||||||
tabular.getRowOfLTLastFoot(row, ltt);
|
tabular.getRowOfLTLastFoot(row, ltt);
|
||||||
checkLongtableSpecial(ltt, value, flag);
|
checkLongtableSpecial(ltt, value, flag);
|
||||||
@ -5938,6 +5950,7 @@ void InsetTabular::tabularFeatures(Cursor & cur,
|
|||||||
|
|
||||||
case Tabular::UNSET_LTNEWPAGE:
|
case Tabular::UNSET_LTNEWPAGE:
|
||||||
flag = false;
|
flag = false;
|
||||||
|
// fall through
|
||||||
case Tabular::SET_LTNEWPAGE:
|
case Tabular::SET_LTNEWPAGE:
|
||||||
tabular.setLTNewPage(row, flag);
|
tabular.setLTNewPage(row, flag);
|
||||||
break;
|
break;
|
||||||
|
@ -1028,8 +1028,8 @@ void TeXOnePar(Buffer const & buf,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// possible
|
||||||
// fall through possible
|
// fall through
|
||||||
default:
|
default:
|
||||||
// we don't need it for the last paragraph!!!
|
// we don't need it for the last paragraph!!!
|
||||||
if (nextpar)
|
if (nextpar)
|
||||||
|
Loading…
Reference in New Issue
Block a user