std::string short_gui_name;
};
static const type_info types[];
- ///
- static int getType(std::string const & name);
///
InsetRef(Buffer * buffer, InsetCommandParams const &);
+ ///
+ void changeTarget(docstring const & new_label);
+
/// \name Public functions inherited from Inset class
//@{
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ docstring layoutName() const override;
///
- bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus & status) const;
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
///
- bool isLabeled() const { return true; }
+ bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus & status) const override;
///
- docstring toolTip(BufferView const &, int, int) const
- { return tooltip_; }
+ bool isLabeled() const override { return true; }
///
- docstring getTOCString() const;
+ docstring toolTip(BufferView const &, int, int) const override
+ { return tooltip_; }
///
- bool hasSettings() const { return true; }
+ docstring getTOCString() const;
///
- InsetCode lyxCode() const { return REF_CODE; }
+ bool hasSettings() const override { return true; }
///
- DisplayType display() const { return Inline; }
+ InsetCode lyxCode() const override { return REF_CODE; }
///
- void latex(otexstream &, OutputParams const &) const;
+ void latex(otexstream &, OutputParams const &) const override;
///
int plaintext(odocstringstream & ods, OutputParams const & op,
- size_t max_length = INT_MAX) const;
+ size_t max_length = INT_MAX) const override;
///
- int docbook(odocstream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
///
- docstring xhtml(XHTMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const override;
///
- void toString(odocstream &) const;
+ void toString(odocstream &) const override;
///
- void forOutliner(docstring &, size_t const, bool const) const;
+ void forOutliner(docstring &, size_t const, bool const) const override;
///
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
///
- void updateBuffer(ParIterator const & it, UpdateType);
+ void updateBuffer(ParIterator const & it, UpdateType, bool const deleted = false) override;
///
void addToToc(DocIterator const & di, bool output_active,
- UpdateType utype, TocBackend & backend) const;
+ UpdateType utype, TocBackend & backend) const override;
///
- bool forceLTR() const { return true; }
+ bool forceLTR(OutputParams const &) const override;
//@}
/// \name Static public methods obligated for InsetCommand derived classes
///
static bool isCompatibleCommand(std::string const & s);
//@}
+ ///
+ bool outputActive() const { return active_; }
+ /// \return the command for a formatted reference to ref
+ /// \param label we're cross-referencing
+ /// \param argument for reference command
+ /// \param prefix of the label (before :)
+ /// Also used by InsetMathRef
+ static docstring getFormattedCmd(docstring const & ref, docstring & label,
+ docstring & prefix, bool use_refstyle, bool use_caps = false);
protected:
///
/// \name Private functions inherited from Inset class
//@{
///
- Inset * clone() const { return new InsetRef(*this); }
+ Inset * clone() const override { return new InsetRef(*this); }
//@}
/// \name Private functions inherited from InsetCommand class
//@{
///
- docstring screenLabel() const;
+ docstring screenLabel() const override;
//@}
/// \return the label with things that need to be escaped escaped
docstring getEscapedLabel(OutputParams const &) const;
- /// \return the command for a formatted reference to ref
- /// \param label we're cross-referencing
- /// \param argument for reference command
- /// \param prefix of the label (before :)
- docstring getFormattedCmd(docstring const & ref, docstring & label,
- docstring & prefix, docstring const & caps) const;
///
mutable docstring screen_label_;
///
mutable bool broken_;
///
+ mutable bool active_;
+ ///
mutable docstring tooltip_;
};