#ifndef INSETBRANCH_H
#define INSETBRANCH_H
-#include "InsetCollapsable.h"
+#include "InsetCollapsible.h"
namespace lyx {
/// The Branch inset for alternative, conditional output.
-class InsetBranch : public InsetCollapsable
+class InsetBranch : public InsetCollapsible
{
public:
///
///
std::string contextMenuName() const;
///
- void addToToc(DocIterator const & di, bool output_active,
- UpdateType utype) const;
+ void updateBuffer(ParIterator const & it, UpdateType utype);
///
void setParams(InsetBranchParams const & params) { params_ = params; }
\c buffer. \p child only checks within child documents.
*/
bool isBranchSelected(bool const child = false) const;
- ///
- bool isBranchActive(bool const child = false) const
- // XOR
- { return isBranchSelected(child) != params_.inverted; }
/*!
* Is the content of this inset part of the output document?
*
- * Note that Branch insets are only considered part of the
- * document when they are selected.
+ * Note that Branch insets are considered part of the
+ * document when they are selected XOR inverted.
*/
- bool producesOutput() const { return isBranchSelected(); }
+ bool producesOutput() const;
///
bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
///