-
-
-void InsetList::insetsOpenCloseBranch(Buffer const & buf)
-{
- List::iterator it = list.begin();
- List::iterator end = list.end();
- for (; it != end; ++it) {
- if (it->inset && it->inset->lyxCode() == InsetOld::BRANCH_CODE) {
- InsetBranch * inset = static_cast<InsetBranch *>(it->inset);
- if (buf.params().branchlist().selected(inset->params().branch)) {
- inset->open();
- } else {
- inset->close();
- }
- }
- }
-}