- bool isBranchSelected(Buffer const & buffer) const;
- ///
- bool getStatus(LCursor &, FuncRequest const &, FuncStatus &) const;
-
-protected:
- InsetBranch(InsetBranch const &);
- virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
-private:
- friend class InsetBranchParams;
-
- virtual std::auto_ptr<InsetBase> doClone() const;
-
- /// used by the constructors
- void init();
+ bool isBranchSelected() const;
+ /*!
+ * 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.
+ */
+ bool producesOutput() const { return isBranchSelected(); }