X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathHull.h;h=f3ea8a8166d5a4036907d3aa06e0214c730a47a7;hb=3bc08a76c42cd350a3141f00f37082bc9fab8967;hp=5462acd8ef9ab961ddf053569743e4da0dd00961;hpb=11c2b7792caf22219b346f8bb69a01f6abbf362d;p=lyx.git diff --git a/src/mathed/InsetMathHull.h b/src/mathed/InsetMathHull.h index 5462acd8ef..f3ea8a8166 100644 --- a/src/mathed/InsetMathHull.h +++ b/src/mathed/InsetMathHull.h @@ -17,7 +17,7 @@ #include "DocIterator.h" #include "OutputEnums.h" -#include +#include "support/unique_ptr.h" namespace lyx { @@ -51,7 +51,8 @@ public: /// void updateBuffer(ParIterator const &, UpdateType); /// - void addToToc(DocIterator const & di, bool output_active) const; + void addToToc(DocIterator const & di, bool output_active, + UpdateType utype) const; /// InsetMathHull & operator=(InsetMathHull const &); /// @@ -104,12 +105,16 @@ public: /// get type HullType getType() const; + /// is mutation implemented for this type? + static bool isMutable(HullType type); /// change type void mutate(HullType newtype); /// int defaultColSpace(col_type col); /// + int displayColSpace(col_type col) const; + /// char defaultColAlign(col_type col); /// char displayColAlign(idx_type idx) const; @@ -151,7 +156,7 @@ public: /// void toString(odocstream &) const; /// - void forOutliner(docstring &, size_t) const; + void forOutliner(docstring &, size_t const, bool const) const; /// get notification when the cursor leaves this inset bool notifyCursorLeaves(Cursor const & old, Cursor & cur); @@ -180,6 +185,8 @@ public: std::string contextMenuName() const; /// InsetCode lyxCode() const { return MATH_HULL_CODE; } + /// + bool canPaintChange(BufferView const &) const; protected: InsetMathHull(InsetMathHull const &); @@ -230,11 +237,13 @@ private: /// change number of columns, split or combine columns if necessary. void changeCols(col_type); /// - docstring standardFont() const; + std::string standardFont() const; /// ColorCode standardColor() const; /// consistency check void check() const; + /// does it understand tabular-feature commands? + bool allowsTabularFeatures() const; /// can this change its number of rows? bool rowChangeOK() const; /// can this change its number of cols? @@ -251,9 +260,7 @@ private: /// std::vector label_; /// - boost::scoped_ptr preview_; - /// - mutable bool use_preview_; + unique_ptr preview_; /// DocIterator docit_; ///