]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insettoc.h
* In the process of fixing the math background color bug, this commit transfer backgr...
[lyx.git] / src / insets / insettoc.h
index 98813a7f1ad706e0d7254b91cbd59342f022a588..81b135c9b1579fb317ac5ca9835401f76a25d3bd 100644 (file)
 #include "insetcommand.h"
 
 
+namespace lyx {
+
+
 /// Used to insert table of contents and similar lists
 class InsetTOC : public InsetCommand {
 public:
        ///
        explicit InsetTOC(InsetCommandParams const &);
        ///
-       std::auto_ptr<InsetBase> clone() const;
-       ///
-       std::string const getScreenLabel(Buffer const &) const;
+       docstring const getScreenLabel(Buffer const &) const;
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       InsetOld::Code lyxCode() const;
+       InsetBase::Code lyxCode() const;
        ///
        bool display() const { return true; }
        ///
-       int plaintext(Buffer const &, std::ostream &,
-                 OutputParams const &) const;
+       int plaintext(Buffer const &, odocstream &,
+                     OutputParams const &) const;
        ///
-       int linuxdoc(Buffer const &, std::ostream &,
-                    OutputParams const &) const;
-       ///
-       int docbook(Buffer const &, std::ostream &,
-                   OutputParams const &) const;
+       int docbook(Buffer const &, odocstream &,
+                   OutputParams const &) const;
+private:
+       virtual std::auto_ptr<InsetBase> doClone() const;
 };
 
+
+} // namespace lyx
+
 #endif