X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetbox.h;h=8786c1c649efb1301eeaec92995e0f9d7ddc9f63;hb=e28331ed63062dea10d0a21b9ec12034b4b17b9a;hp=448feb4ce252bc56dd336b93d6aa551cdd2e8896;hpb=6c300f72a217722652dc27db9108e1050028979c;p=lyx.git diff --git a/src/insets/insetbox.h b/src/insets/insetbox.h index 448feb4ce2..8786c1c649 100644 --- a/src/insets/insetbox.h +++ b/src/insets/insetbox.h @@ -72,7 +72,7 @@ public: /// void setButtonLabel(); /// - void metrics(MetricsInfo &, Dimension &) const; + bool metrics(MetricsInfo &, Dimension &) const; /// show the Box dialog bool showInsetDialog(BufferView * bv) const; /// @@ -80,7 +80,7 @@ public: /// bool forceDefaultParagraphs(idx_type) const; /// - bool neverIndent() const { return true; } + bool neverIndent(Buffer const &) const { return true; } /// bool noFontChange() const { return true; } /// @@ -108,6 +108,8 @@ public: protected: InsetBox(InsetBox const &); virtual void doDispatch(LCursor & cur, FuncRequest & cmd); + /// Is the width forced to some value? + virtual bool hasFixedWidth() const; private: friend class InsetBoxParams;