// -*- C++ -*-
-/* This file is part of
- * ======================================================
- *
- * LyX, The Document Processor
- *
- * Copyright 1995 Matthias Ettrich
- * Copyright 1995-2001 The LyX Team.
- *
- * ====================================================== */
+/**
+ * \file paragraph.h
+ * Copyright 1995 Matthias Ettrich
+ * Copyright 2002 the LyX Team
+ * Read the file COPYING
+ */
#ifndef PARAGRAPH_H
#define PARAGRAPH_H
#include "LString.h"
+#include "lyxlayout_ptr_fwd.h"
#include "insets/inset.h" // Just for Inset::Code
#include "lyxfont.h" // Just for LyXFont::FONT_SIZE
#include "support/types.h"
/** Check if the current paragraph is the last paragraph in a
proof environment */
- int getEndLabel(BufferParams const &) const;
+ int getEndLabel() const;
///
Inset * inInset() const;
///
void clearContents();
///
- string const & layout() const;
+ LyXLayout_ptr const & layout() const;
///
- void layout(string const & new_layout);
+ void layout(LyXLayout_ptr const & new_layout);
///
void setCounter(int i, int v);
/// 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;
+ depth_type getMaxDepthAfter() const;
///
- void applyLayout(string const & new_layout);
+ void applyLayout(LyXLayout_ptr const & new_layout);
///
int getFirstCounter(int i) const;
///
value_type getUChar(BufferParams const &, lyx::pos_type pos) const;
/// The position must already exist.
void setChar(lyx::pos_type pos, value_type c);
- ///
+ /// pos <= size() (there is a dummy font change at the end of each par)
void setFont(lyx::pos_type pos, LyXFont const & font);
/// Returns the height of the highest font in range
LyXFont::FONT_SIZE highestFontInRange(lyx::pos_type startpos,
Paragraph * getParFromID(int id) const;
///
- int stripLeadingSpaces(lyx::textclass_type tclass);
+ int stripLeadingSpaces();
#ifndef NO_PEXTRA_REALLY
/* If I set a PExtra Indent on one paragraph of a ENV_LIST-TYPE
ParagraphParameters const & params() const;
private:
///
- string layout_;
+ LyXLayout_ptr layout_;
+public:
+ /** Both these definitions must be made public to keep Compaq cxx 6.5
+ * happy.
+ */
///
struct InsetTable {
///
///
typedef std::vector<InsetTable> InsetList;
+private:
///
InsetList insetlist;
public:
inset_iterator inset_iterator_begin();
///
inset_iterator inset_iterator_end();
- ///
+ /// returns inset iterator of the first inset at or after pos.
inset_iterator InsetIterator(lyx::pos_type pos);
private: