#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:
///
int plaintext(odocstringstream & ods, OutputParams const & op,
size_t max_length = INT_MAX) const;
///
- int docbook(odocstream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const;
///
- docstring xhtml(XHTMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const;
///
void toString(odocstream &) const;
///
///
std::string contextMenuName() const;
///
- void addToToc(DocIterator const & di, bool output_active,
- UpdateType utype) const;
- ///
- void setParams(InsetBranchParams const & params) { params_ = params; }
+ void updateBuffer(ParIterator const & it, UpdateType utype, bool const deleted = false);
/** \returns true if params_.branch is listed as 'selected' in
\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;
///