-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)
- continue;
-
- InsetBranch * inset = static_cast<InsetBranch *>(it->inset);
- if (inset->isBranchSelected(buf.params().branchlist())) {
- inset->open();
- } else {
- inset->close();
- }
- }
-}