]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetindex.h
insetcharstyle drawing cosmetics
[lyx.git] / src / insets / insetindex.h
index 5ead498423faf49c68350ffe3021acc097b93a39..997ec4a76a4551a41b51ec7376f1c2f93129ec9b 100644 (file)
@@ -6,7 +6,7 @@
  *
  * \author Lars Gullik Bjønnes
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef INSET_INDEX_H
@@ -24,21 +24,18 @@ public:
        ///
        InsetIndex(InsetCommandParams const &);
        ///
-       ~InsetIndex();
-       ///
-       virtual InsetBase * clone() const {
-               return new InsetIndex(params());
+       virtual std::auto_ptr<InsetBase> clone() const {
+               return std::auto_ptr<InsetBase>(new InsetIndex(params()));
        }
        ///
-       dispatch_result localDispatch(FuncRequest const & cmd);
-       ///
-       string const getScreenLabel(Buffer const *) const;
+       std::string const getScreenLabel(Buffer const &) const;
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       Inset::Code lyxCode() const;
+       InsetOld::Code lyxCode() const;
        ///
-       int docbook(Buffer const *, std::ostream &, bool mixcont) const;
+       int docbook(Buffer const &, std::ostream &,
+                   OutputParams const &) const;
 };
 
 
@@ -47,25 +44,19 @@ public:
        ///
        InsetPrintIndex(InsetCommandParams const &);
        ///
-       ~InsetPrintIndex();
-       ///
-       InsetBase * clone() const {
-               return new InsetPrintIndex(params());
+       virtual std::auto_ptr<InsetBase> clone() const {
+               return std::auto_ptr<InsetBase>(new InsetPrintIndex(params()));
        }
-       ///
-       //dispatch_result localDispatch(FuncRequest const & cmd);
        /// Updates needed features for this inset.
        void validate(LaTeXFeatures & features) const;
        ///
        EDITABLE editable() const { return NOT_EDITABLE; }
        ///
-       bool display() const { return true; }
-       ///
-       Inset::Code lyxCode() const;
+       InsetOld::Code lyxCode() const;
        ///
-       string const getScreenLabel(Buffer const *) const;
+       bool display() const { return true; }
        ///
-       virtual bool needFullRow() const { return true; }
+       std::string const getScreenLabel(Buffer const &) const;
 };
 
 #endif