]> git.lyx.org Git - lyx.git/blobdiff - src/paragraph.h
add missing writeNormal() methods to some insets
[lyx.git] / src / paragraph.h
index 102f685b7d0b0b12a18982b77ef215fc094a15b2..0b4ba210e805f5d0a091f54ce084d2200ec31a17 100644 (file)
@@ -94,7 +94,7 @@ public:
        explicit
        Paragraph(Paragraph * par);
        ///
-       Paragraph(Paragraph const &, bool same_ids = false);
+       Paragraph(Paragraph const &, bool same_ids);
        /// the destructor removes the new paragraph from the list
        ~Paragraph();
 
@@ -111,7 +111,8 @@ public:
 
        string const asString(Buffer const *, bool label);
        ///
-       string const asString(Buffer const *, size_type beg, size_type end);
+       string const asString(Buffer const *, size_type beg, size_type end,
+                             bool label);
        
        ///
        void writeFile(Buffer const *, std::ostream &, BufferParams const &,
@@ -252,6 +253,8 @@ public:
            LyXFont::TOGGLE.
        */
        LyXFont const getFont(BufferParams const &, size_type pos) const;
+       LyXFont const getLayoutFont(BufferParams const &) const;
+       LyXFont const getLabelFont(BufferParams const &) const;
        ///
        value_type getChar(size_type pos) const;
        ///
@@ -262,7 +265,8 @@ public:
        void setFont(size_type pos, LyXFont const & font);
        /// Returns the height of the highest font in range
        LyXFont::FONT_SIZE highestFontInRange(size_type startpos,
-                                             size_type endpos) const;
+                                             size_type endpos,
+                                                                                 LyXFont::FONT_SIZE const def_size) const;
        ///
        void insertChar(size_type pos, value_type c);
        ///
@@ -397,6 +401,8 @@ public:
        inset_iterator InsetIterator(size_type pos);
 
 private:
+       /// if anything uses this we don't want it to.
+       Paragraph(Paragraph const &);
        ///
        Paragraph * next_;
        ///