#include "LString.h"
#include "insets/inset.h" // Just for Inset::Code
-#include "layout.h"
+#include "lyxfont.h" // Just for LyXFont::FONT_SIZE
#include "support/types.h"
class ParagraphParameters;
class BufferParams;
class TexRow;
-struct LaTeXFeatures;
+class LaTeXFeatures;
class InsetBibKey;
class BufferView;
class Language;
Paragraph * TeXOnePar(Buffer const *, BufferParams const &,
std::ostream &, TexRow & texrow,
bool moving_arg);
+
+ ///
+ int startTeXParParams(BufferParams const &, std::ostream &) const;
+
+ ///
+ int endTeXParParams(BufferParams const &, std::ostream &) const;
+
+
///
bool simpleTeXOnePar(Buffer const *, BufferParams const &,
std::ostream &, TexRow & texrow, bool moving_arg);
void clearContents();
///
- lyx::layout_type layout;
-
+ string const & layout() const;
+ ///
+ void layout(string const & new_layout);
+
///
void setCounter(int i, int v);
///
///
void setLabelWidthString(string const & s);
///
- lyx::layout_type getLayout() const;
- ///
char getAlign() const;
- ///
+ /// The nesting depth of a paragraph
depth_type getDepth() const;
+ /// The maximal possible depth of a paragraph after this one
+ depth_type getMaxDepthAfter(Buffer const *) const;
///
- void setLayout(lyx::layout_type new_layout);
- ///
- void setOnlyLayout(lyx::layout_type new_layout);
+ void applyLayout(string const & new_layout);
///
int getFirstCounter(int i) const;
///
/// Returns the height of the highest font in range
LyXFont::FONT_SIZE highestFontInRange(lyx::pos_type startpos,
lyx::pos_type endpos,
- LyXFont::FONT_SIZE const def_size) const;
+ LyXFont::FONT_SIZE const def_size) const;
///
void insertChar(lyx::pos_type pos, value_type c);
///
*/
void pasteParagraph(BufferParams const &);
- /// used to remove the error messages
- int autoDeleteInsets();
-
/// returns -1 if inset not found
- int getPositionOfInset(Inset * inset) const;
+ int getPositionOfInset(Inset const * inset) const;
/// some good comment here John?
Paragraph * getParFromID(int id) const;
///
- int stripLeadingSpaces(LyXTextClassList::size_type tclass);
+ int stripLeadingSpaces(lyx::textclass_type tclass);
#ifndef NO_PEXTRA_REALLY
/* If I set a PExtra Indent on one paragraph of a ENV_LIST-TYPE
#endif
///
bool sgmlConvertChar(char c, string & sgml_string);
+ ///
+ bool isFreeSpacing() const;
ParagraphParameters & params();
ParagraphParameters const & params() const;
private:
-
+ ///
+ string layout_;
///
struct InsetTable {
///
}
///
Inset * operator*() { return it->inset; }
+ ///
+ Inset * operator->() { return it->inset; }
+
///
lyx::pos_type getPos() const { return it->pos; }
///