]> git.lyx.org Git - lyx.git/blobdiff - src/Paragraph.h
After a hiatus, I'm returning to the rewrite of InsetCommandParams, the purpose of...
[lyx.git] / src / Paragraph.h
index 81a77288a8073a1ab0f163fd4b10c459f1edc43f..3c9e533562d0bf2e6959df1a973727609a0df5a7 100644 (file)
@@ -23,9 +23,6 @@
 
 #include "support/strfwd.h"
 #include "support/types.h"
-// FIXME: would be nice to forward declare odocstream instead of
-// including this:
-#include "support/docstream.h"
 
 namespace lyx {
 
@@ -46,6 +43,7 @@ class MetricsInfo;
 class OutputParams;
 class PainterInfo;
 class ParagraphParameters;
+class TextClass;
 class TexRow;
 
 
@@ -148,8 +146,11 @@ public:
        ///
        InsetCode ownerCode() const;
        ///
-       bool forceDefaultParagraphs() const;
-
+       bool forceEmptyLayout() const;
+       ///
+       bool allowParagraphCustomization() const;
+       ///
+       bool useEmptyLayout() const;
        ///
        pos_type size() const;
        ///
@@ -158,7 +159,9 @@ public:
        ///
        LayoutPtr const & layout() const;
        ///
-       void layout(LayoutPtr const & new_layout);
+       void setLayout(LayoutPtr const & layout);
+       ///
+       void setEmptyOrDefaultLayout(TextClass const & tc);
 
        /// This is the item depth, only used by enumerate and itemize
        signed char itemdepth;
@@ -201,7 +204,7 @@ public:
        void setBeginOfBody();
 
        ///
-       docstring const & getLabelstring() const;
+       docstring const & labelString() const;
 
        /// the next two functions are for the manual labels
        docstring const getLabelWidthString() const;
@@ -353,7 +356,7 @@ public:
 
        ///
        void changeCase(BufferParams const & bparams, pos_type pos,
-               pos_type right, TextCase action);
+               pos_type right, TextCase action);
 
        /// find \param str string inside Paragraph.
        /// \return true if the specified string is at the specified position