]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetNomencl.h
New DocBook support
[lyx.git] / src / insets / InsetNomencl.h
index f445066550ea8f24bd7b86b48bb479c6d4649741..b36527c7bb02036ea192898ef133058ae82d0c6d 100644 (file)
@@ -28,9 +28,6 @@ public:
        ///
        InsetNomencl(Buffer * buf, InsetCommandParams const &);
 
-       ///
-       int docbookGlossary(odocstream &) const;
-
        /// \name Public functions inherited from Inset class
        //@{
        ///
@@ -40,11 +37,17 @@ public:
        /// Updates needed features for this inset.
        void validate(LaTeXFeatures & features) const;
        ///
+       void addToToc(DocIterator const & di, bool output_active,
+                                 UpdateType utype, TocBackend & backend) const;
+       ///
        InsetCode lyxCode() const { return NOMENCL_CODE; }
        ///
-       int docbook(odocstream &, OutputParams const &) const;
+       int plaintext(odocstringstream & ods, OutputParams const & op,
+                     size_t max_length = INT_MAX) const;
+       ///
+       void docbook(XMLStream &, OutputParams const &) const;
        /// Does nothing at the moment.
-       docstring xhtml(XHTMLStream &, OutputParams const &) const;
+       docstring xhtml(XMLStream &, OutputParams const &) const;
        //@}
 
        /// \name Static public methods obligated for InsetCommand derived classes
@@ -52,9 +55,9 @@ public:
        ///
        static ParamInfo const & findInfo(std::string const &);
        ///
-       static std::string defaultCommand() { return "nomenclature"; };
+       static std::string defaultCommand() { return "nomenclature"; }
        ///
-       static bool isCompatibleCommand(std::string const & s) 
+       static bool isCompatibleCommand(std::string const & s)
                { return s == "nomenclature"; }
        //@}
 
@@ -86,19 +89,19 @@ public:
        /// Updates needed features for this inset.
        void validate(LaTeXFeatures & features) const;
        ///
-       int docbook(odocstream &, OutputParams const &) const;
-       /// Does nothing at the moment.
-       docstring xhtml(XHTMLStream &, OutputParams const &) const;
+       void docbook(XMLStream &, OutputParams const &) const;
+       ///
+       docstring xhtml(XMLStream &, OutputParams const &) const;
        ///
        InsetCode lyxCode() const;
        ///
        bool hasSettings() const { return true; }
        ///
-       DisplayType display() const { return AlignCenter; }
+       RowFlags rowFlags() const { return Display; }
        ///
        void latex(otexstream &, OutputParams const &) const;
        ///
-       docstring contextMenuName() const;
+       std::string contextMenuName() const;
        //@}
 
        /// \name Static public methods obligated for InsetCommand derived classes
@@ -106,9 +109,9 @@ public:
        ///
        static ParamInfo const & findInfo(std::string const &);
        ///
-       static std::string defaultCommand() { return "printnomenclature"; };
+       static std::string defaultCommand() { return "printnomenclature"; }
        ///
-       static bool isCompatibleCommand(std::string const & s) 
+       static bool isCompatibleCommand(std::string const & s)
                { return s == "printnomenclature"; }
        //@}
 
@@ -121,6 +124,8 @@ private:
        bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus & status) const;
        ///
        void doDispatch(Cursor & cur, FuncRequest & cmd);
+       ///
+       docstring layoutName() const { return from_ascii("PrintNomencl"); }
        //@}
 
        /// \name Private functions inherited from InsetCommand class