]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetText.h
This optional argument to the InsetCollapsable constructor
[lyx.git] / src / insets / InsetText.h
index afb874a442cf3674ad1869b9b77a281cc6f2a781..1c8d5468fe918845d069376f83cf73fec006364e 100644 (file)
@@ -37,11 +37,9 @@ public:
        ///
        explicit InsetText(Buffer const & buffer);
        ///
-       InsetText();
-       ///
        InsetText(InsetText const &);
        ///
-       void initParagraphs(Buffer const & buffer);
+       void setBuffer(Buffer &);
 
        ///
        Dimension const dimension(BufferView const &) const;
@@ -67,6 +65,9 @@ public:
        ///
        InsetText const * asInsetText() const { return this; }
        ///
+       Text & text() { return text_; }
+       Text const & text() const { return text_; }
+       ///
        int latex(odocstream &, OutputParams const &) const;
        ///
        int plaintext(odocstream &, OutputParams const &) const;
@@ -137,6 +138,8 @@ public:
        // Update the counters of this inset and of its contents
        void updateLabels(ParIterator const &);
        ///
+       void addToToc(DocIterator const &);
+       ///
        Inset * clone() const { return new InsetText(*this); }
        ///
        bool notifyCursorLeaves(Cursor const & old, Cursor & cur);
@@ -165,6 +168,8 @@ public:
        ///
        void doDispatch(Cursor & cur, FuncRequest & cmd);
 private:
+       ///
+       void initParagraphs();
        ///
        void setParagraphOwner();
        ///
@@ -173,8 +178,6 @@ private:
        ColorCode frame_color_;
        ///
        mutable pit_type old_pit;
-
-public:
        ///
        mutable Text text_;
 };