]> git.lyx.org Git - features.git/commitdiff
Rename InsetMathHull::isTable to allowsTabularFeatures
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 22 Apr 2016 13:50:51 +0000 (15:50 +0200)
committerRichard Heck <rgheck@lyx.org>
Sun, 29 May 2016 21:55:42 +0000 (17:55 -0400)
The old name conflicted with the newly introduced Inset::isTable.

Now the meaning is as follows.
* Inset::isTable() is true when the inset is composed of lines and columns
* InsetMathHull::allowsTabularFeatures is true when the current type of hull allows for tabular-like functions.

src/mathed/InsetMathHull.cpp
src/mathed/InsetMathHull.h

index e684d237f5547fe487ec66d743c9a4be10669ab4..6fa50e44b9862aeb1cc6e9680168ae7691a37ec2 100644 (file)
@@ -1097,7 +1097,7 @@ void InsetMathHull::footer_write(WriteStream & os) const
 }
 
 
-bool InsetMathHull::isTable() const
+bool InsetMathHull::allowsTabularFeatures() const
 {
        switch (type_) {
        case hullEqnArray:
@@ -1859,7 +1859,7 @@ void InsetMathHull::doDispatch(Cursor & cur, FuncRequest & cmd)
        }
 
        case LFUN_TABULAR_FEATURE:
-               if (!isTable())
+               if (!allowsTabularFeatures())
                        cur.undispatched();
                else
                        InsetMathGrid::doDispatch(cur, cmd);
@@ -1980,7 +1980,7 @@ bool InsetMathHull::getStatus(Cursor & cur, FuncRequest const & cmd,
                return InsetMathGrid::getStatus(cur, cmd, status);
 
        case LFUN_TABULAR_FEATURE: {
-               if (!isTable())
+               if (!allowsTabularFeatures())
                        return false;
                string s = cmd.getArg(0);
                if (!rowChangeOK()
index b79b515ac2e392864b01e5f5e42618d88f3a6a55..c12fcc75931fd1c45972cc98772de1fd126770aa 100644 (file)
@@ -241,7 +241,7 @@ private:
        /// consistency check
        void check() const;
        /// does it understand tabular-feature commands?
-       bool isTable() const;
+       bool allowsTabularFeatures() const;
        /// can this change its number of rows?
        bool rowChangeOK() const;
        /// can this change its number of cols?