Apparently, the cell is not queried in all cases.
This commit is contained in:
Juergen Spitzmueller 2024-02-08 09:00:57 +01:00
parent 2f871a2c16
commit 61aa19ef9c
2 changed files with 21 additions and 0 deletions

View File

@ -4518,6 +4518,25 @@ void InsetTabular::setBuffer(Buffer & buf)
}
bool InsetTabular::insetAllowed(InsetCode code) const
{
switch (code) {
case FLOAT_CODE:
case MARGIN_CODE:
case MATHMACRO_CODE:
case WRAP_CODE:
return false;
case CAPTION_CODE:
// this is handled on cell level
return false;
default:
return true;
}
}
bool InsetTabular::allowMultiPar() const
{
for (col_type c = 0; c < tabular.ncols(); ++c) {

View File

@ -1037,6 +1037,8 @@ public:
///
bool hasSettings() const override { return true; }
///
bool insetAllowed(InsetCode code) const override;
///
bool allowSpellCheck() const override { return true; }
///
bool canTrackChanges() const override { return true; }