mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
parent
567d0e8fb4
commit
cd3116bbf9
@ -879,12 +879,21 @@ bool InsetFloat::insetAllowed(InsetCode code) const
|
||||
}
|
||||
|
||||
|
||||
void InsetFloat::updateBuffer(ParIterator const & it, UpdateType utype, bool const deleted)
|
||||
{
|
||||
InsetCaptionable::updateBuffer(it, utype);
|
||||
bool const subflt = (it.innerInsetOfType(FLOAT_CODE)
|
||||
|| it.innerInsetOfType(WRAP_CODE));
|
||||
setSubfloat(subflt);
|
||||
}
|
||||
|
||||
|
||||
void InsetFloat::setWide(bool w, bool update_label)
|
||||
{
|
||||
if (!buffer().params().documentClass().floats().allowsWide(params_.type))
|
||||
params_.wide = false;
|
||||
else
|
||||
params_.wide = w;
|
||||
params_.wide = w;
|
||||
if (update_label)
|
||||
setNewLabel();
|
||||
}
|
||||
|
@ -111,6 +111,8 @@ private:
|
||||
///
|
||||
bool hasSubCaptions(ParIterator const & it) const override;
|
||||
///
|
||||
void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false) override;
|
||||
///
|
||||
void doDispatch(Cursor & cur, FuncRequest & cmd) override;
|
||||
///
|
||||
Inset * clone() const override { return new InsetFloat(*this); }
|
||||
|
Loading…
Reference in New Issue
Block a user