]> git.lyx.org Git - lyx.git/blobdiff - src/TocBackend.cpp
BufferParams.cpp: fix bug 3568:
[lyx.git] / src / TocBackend.cpp
index fb196e46fcc384ff7dbcf01783d268cb7be9ed62..a8c755b148633aa109057d524eb21796ba36a2cd 100644 (file)
@@ -124,7 +124,7 @@ Toc const & TocBackend::toc(std::string const & type) const
 void TocBackend::updateItem(ParConstIterator const & par_it)
 {
        BufferParams const & bufparams = buffer_->params();
-       const int min_toclevel = bufparams.getLyXTextClass().min_toclevel();
+       const int min_toclevel = bufparams.getTextClass().min_toclevel();
 
        TocIterator toc_item = item("tableofcontents", par_it);
 
@@ -149,7 +149,7 @@ void TocBackend::updateItem(ParConstIterator const & par_it)
        }
 
        int const toclevel = toc_item->par_it_->layout()->toclevel;
-       if (toclevel != LyXLayout::NOT_IN_TOC
+       if (toclevel != Layout::NOT_IN_TOC
            && toclevel >= min_toclevel
            && toclevel <= bufparams.tocdepth
                && tocstring.empty())
@@ -164,7 +164,7 @@ void TocBackend::update()
        tocs_.clear();
 
        BufferParams const & bufparams = buffer_->params();
-       const int min_toclevel = bufparams.getLyXTextClass().min_toclevel();
+       const int min_toclevel = bufparams.getTextClass().min_toclevel();
 
        Toc & toc = tocs_["tableofcontents"];
        ParConstIterator pit = buffer_->par_iterator_begin();
@@ -199,7 +199,7 @@ void TocBackend::update()
 
                /// now the toc entry for the paragraph
                int const toclevel = pit->layout()->toclevel;
-               if (toclevel != LyXLayout::NOT_IN_TOC
+               if (toclevel != Layout::NOT_IN_TOC
                    && toclevel >= min_toclevel
                    && toclevel <= bufparams.tocdepth) {
                        // insert this into the table of contents