]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetTOC.h
Make logic clearer, with help from Lars.
[lyx.git] / src / insets / InsetTOC.h
index 334a0a33e0e31438b2db7f49b26674516ff11eea..f38643bb9ae2eecf59bc58a43e77e88d0bd8e08b 100644 (file)
@@ -28,9 +28,9 @@ public:
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       InsetBase::Code lyxCode() const;
+       Inset::Code lyxCode() const;
        ///
-       bool display() const { return true; }
+       DisplayType display() const { return AlignCenter; }
        ///
        int plaintext(Buffer const &, odocstream &,
                      OutputParams const &) const;
@@ -38,7 +38,7 @@ public:
        int docbook(Buffer const &, odocstream &,
                    OutputParams const &) const;
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual std::auto_ptr<Inset> doClone() const;
 };