mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
parent
2f871a2c16
commit
61aa19ef9c
@ -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) {
|
||||
|
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user