]> git.lyx.org Git - lyx.git/blobdiff - src/lyxtextclass.C
ws changes only
[lyx.git] / src / lyxtextclass.C
index 5231cf12ac9860a158c5e07124aed14c1d173a55..e713642d50dd6e9b3d061b2b0d9fc64997930708 100644 (file)
@@ -32,7 +32,7 @@ using lyx::support::subst;
 using std::endl;
 using std::find_if;
 using std::remove_if;
-
+using std::string;
 using std::ostream;
 
 
@@ -67,7 +67,6 @@ LyXTextClass::LyXTextClass(string const & fn, string const & cln,
        secnumdepth_ = 3;
        tocdepth_ = 3;
        pagestyle_ = "default";
-       maxcounter_ = 4;
        defaultfont_ = LyXFont(LyXFont::ALL_SANE);
        opt_fontsize_ = "10|11|12";
        opt_pagestyle_ = "empty|plain|headings|fancy";
@@ -111,7 +110,6 @@ enum TextClassTags {
        TC_SIDES,
        TC_PAGESTYLE,
        TC_DEFAULTFONT,
-       TC_MAXCOUNTER,
        TC_SECNUMDEPTH,
        TC_TOCDEPTH,
        TC_CLASSOPTIONS,
@@ -142,7 +140,6 @@ bool LyXTextClass::Read(string const & filename, bool merge)
                { "float",           TC_FLOAT },
                { "input",           TC_INPUT },
                { "leftmargin",      TC_LEFTMARGIN },
-               { "maxcounter",      TC_MAXCOUNTER },
                { "nofloat",         TC_NOFLOAT },
                { "nostyle",         TC_NOSTYLE },
                { "outputtype",      TC_OUTPUTTYPE },
@@ -299,11 +296,6 @@ bool LyXTextClass::Read(string const & filename, bool merge)
                        }
                        break;
 
-               case TC_MAXCOUNTER:
-                       lexrc.next();
-                       maxcounter_ = lexrc.getInteger();
-                       break;
-
                case TC_SECNUMDEPTH:
                        lexrc.next();
                        secnumdepth_ = lexrc.getInteger();
@@ -880,12 +872,6 @@ unsigned int LyXTextClass::columns() const
 }
 
 
-int LyXTextClass::maxcounter() const
-{
-       return maxcounter_;
-}
-
-
 LYX_TITLE_LATEX_TYPES LyXTextClass::titletype() const
 {
        return titletype_;
@@ -898,9 +884,6 @@ string const & LyXTextClass::titlename() const
 }
 
 
-
-
-
 int LyXTextClass::size() const
 {
        return layoutlist_.size();