Apparently, the cell is not queried in all cases.
}
+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) {
///
bool hasSettings() const override { return true; }
///
+ bool insetAllowed(InsetCode code) const override;
+ ///
bool allowSpellCheck() const override { return true; }
///
bool canTrackChanges() const override { return true; }