X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetIndex.h;h=80d8149bc4cab58a93814baafe6eef8270800343;hb=3391fed36a574fb729f243888258d1b6d45b0251;hp=642d3ee0dce16bb902fd22bf1df1d48e1e34957b;hpb=882e2eeb7bcea230c24eaa69cd6a3e274369adde;p=features.git diff --git a/src/insets/InsetIndex.h b/src/insets/InsetIndex.h index 642d3ee0dc..80d8149bc4 100644 --- a/src/insets/InsetIndex.h +++ b/src/insets/InsetIndex.h @@ -49,7 +49,7 @@ private: /// InsetCode lyxCode() const { return INDEX_CODE; } /// - docstring name() const { return from_ascii("Index"); } + docstring layoutName() const { return from_ascii("Index"); } /// ColorCode labelColor() const; /// @@ -58,11 +58,10 @@ private: void read(Lexer & lex); /// int docbook(odocstream &, OutputParams const &) const; - /// At the moment, this does nothing. See development/HTML.notes - /// for some remarks on what could be done. - docstring xhtml(odocstream &, OutputParams const &) const; /// - int latex(odocstream &, OutputParams const &) const; + docstring xhtml(XHTMLStream &, OutputParams const &) const; + /// + void latex(otexstream &, OutputParams const &) const; /// bool showInsetDialog(BufferView *) const; /// @@ -72,17 +71,20 @@ private: /// should paragraph indendation be omitted in any case? bool neverIndent() const { return true; } /// - void addToToc(DocIterator const &); - /// - docstring const buttonLabel(BufferView const & bv) const; + void addToToc(DocIterator const & di, bool output_active, + UpdateType utype, TocBackend & backend) const; /// docstring toolTip(BufferView const & bv, int x, int y) const; + /// + docstring const buttonLabel(BufferView const & bv) const; /// Updates needed features for this inset. void validate(LaTeXFeatures & features) const; /// - docstring contextMenu(BufferView const & bv, int x, int y) const; + std::string contextMenuName() const; /// Inset * clone() const { return new InsetIndex(*this); } + /// Is the content of this inset part of the immediate text sequence? + bool isPartOfTextSequence() const { return false; } /// friend class InsetIndexParams; @@ -95,37 +97,51 @@ class InsetPrintIndex : public InsetCommand { public: /// InsetPrintIndex(Buffer * buf, InsetCommandParams const &); - /// - InsetCode lyxCode() const { return INDEX_PRINT_CODE; } + /// \name Public functions inherited from Inset class + //@{ /// - static ParamInfo const & findInfo(std::string const &); - /// - static std::string defaultCommand() { return "printindex"; }; + InsetCode lyxCode() const { return INDEX_PRINT_CODE; } /// - static bool isCompatibleCommand(std::string const & s); + void latex(otexstream &, OutputParams const &) const; /// - int latex(odocstream &, OutputParams const &) const; - /// Does nothing yet. - docstring xhtml(odocstream &, OutputParams const &) const; + docstring xhtml(XHTMLStream &, OutputParams const &) const; /// void doDispatch(Cursor & cur, FuncRequest & cmd); /// bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const; /// - virtual docstring contextMenu(BufferView const & bv, int x, int y) const; -private: + std::string contextMenuName() const; /// Updates needed features for this inset. void validate(LaTeXFeatures & features) const; /// bool hasSettings() const; - /// DisplayType display() const { return AlignCenter; } + //@} + + /// \name Static public methods obligated for InsetCommand derived classes + //@{ /// - docstring screenLabel() const; + static ParamInfo const & findInfo(std::string const &); + /// + static std::string defaultCommand() { return "printindex"; } + /// + static bool isCompatibleCommand(std::string const & s); + //@} + +private: + /// \name Private functions inherited from Inset class + //@{ /// Inset * clone() const { return new InsetPrintIndex(*this); } + //@} + + /// \name Private functions inherited from InsetCommand class + //@{ + /// + docstring screenLabel() const; + //@} };