using std::endl;
using std::find_if;
using std::remove_if;
-
+using std::string;
using std::ostream;
secnumdepth_ = 3;
tocdepth_ = 3;
pagestyle_ = "default";
- maxcounter_ = 4;
defaultfont_ = LyXFont(LyXFont::ALL_SANE);
opt_fontsize_ = "10|11|12";
opt_pagestyle_ = "empty|plain|headings|fancy";
TC_SIDES,
TC_PAGESTYLE,
TC_DEFAULTFONT,
- TC_MAXCOUNTER,
TC_SECNUMDEPTH,
TC_TOCDEPTH,
TC_CLASSOPTIONS,
{ "float", TC_FLOAT },
{ "input", TC_INPUT },
{ "leftmargin", TC_LEFTMARGIN },
- { "maxcounter", TC_MAXCOUNTER },
{ "nofloat", TC_NOFLOAT },
{ "nostyle", TC_NOSTYLE },
{ "outputtype", TC_OUTPUTTYPE },
if (le == TC_ENVIRONMENT)
lay.is_environment = true;
if (!(error = do_readStyle(lexrc, lay)))
- layoutlist_.push_back
- (boost::shared_ptr<LyXLayout>(new LyXLayout(lay)));
+ layoutlist_.push_back(
+ boost::shared_ptr<LyXLayout>(new LyXLayout(lay))
+ );
+
if (defaultlayout_.empty()) {
// We do not have a default
// layout yet, so we choose
}
break;
- case TC_MAXCOUNTER:
- lexrc.next();
- maxcounter_ = lexrc.getInteger();
- break;
-
case TC_SECNUMDEPTH:
lexrc.next();
secnumdepth_ = lexrc.getInteger();
}
-int LyXTextClass::maxcounter() const
-{
- return maxcounter_;
-}
-
-
LYX_TITLE_LATEX_TYPES LyXTextClass::titletype() const
{
return titletype_;
}
-
-
-
int LyXTextClass::size() const
{
return layoutlist_.size();