]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetindex.h
insetcharstyle drawing cosmetics
[lyx.git] / src / insets / insetindex.h
index cef3b995cc1ccb22a5bf1c750a1035a8e469fe41..997ec4a76a4551a41b51ec7376f1c2f93129ec9b 100644 (file)
@@ -24,21 +24,18 @@ public:
        ///
        InsetIndex(InsetCommandParams const &);
        ///
-       ~InsetIndex();
-       ///
        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; }
        ///
        InsetOld::Code lyxCode() const;
        ///
-       int docbook(Buffer const *, std::ostream &, bool mixcont) const;
+       int docbook(Buffer const &, std::ostream &,
+                   OutputParams const &) const;
 };
 
 
@@ -47,13 +44,9 @@ public:
        ///
        InsetPrintIndex(InsetCommandParams const &);
        ///
-       ~InsetPrintIndex();
-       ///
        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;
        ///
@@ -61,16 +54,9 @@ public:
        ///
        InsetOld::Code lyxCode() const;
        ///
-       string const getScreenLabel(Buffer const *) const;
-       ///
-       //virtual bool needFullRow() const { return true; }
-       ///
-       void metrics(MetricsInfo &, Dimension &) const; 
-       ///
-       void draw(PainterInfo & pi, int x, int y) const;
-private:
+       bool display() const { return true; }
        ///
-       mutable unsigned int center_indent_;
+       std::string const getScreenLabel(Buffer const &) const;
 };
 
 #endif