2001-06-25 00:06:33 +00:00
|
|
|
// -*- C++ -*-
|
2002-06-10 21:04:06 +00:00
|
|
|
/**
|
|
|
|
* \file paragraph.h
|
|
|
|
* Copyright 1995 Matthias Ettrich
|
|
|
|
* Copyright 2002 the LyX Team
|
|
|
|
* Read the file COPYING
|
|
|
|
*/
|
2001-06-25 00:06:33 +00:00
|
|
|
|
|
|
|
#ifndef PARAGRAPH_H
|
|
|
|
#define PARAGRAPH_H
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "LString.h"
|
|
|
|
|
2002-06-24 20:28:12 +00:00
|
|
|
#include "lyxlayout_ptr_fwd.h"
|
2001-07-29 15:34:18 +00:00
|
|
|
#include "insets/inset.h" // Just for Inset::Code
|
2001-11-29 17:12:21 +00:00
|
|
|
#include "lyxfont.h" // Just for LyXFont::FONT_SIZE
|
2001-11-26 16:42:04 +00:00
|
|
|
#include "support/types.h"
|
2001-06-25 00:06:33 +00:00
|
|
|
|
|
|
|
class ParagraphParameters;
|
|
|
|
class BufferParams;
|
|
|
|
class TexRow;
|
2001-11-29 17:12:21 +00:00
|
|
|
class LaTeXFeatures;
|
2001-06-25 00:06:33 +00:00
|
|
|
class InsetBibKey;
|
|
|
|
class BufferView;
|
|
|
|
class Language;
|
|
|
|
|
|
|
|
// After 1.2.0 is released, during 1.3.0cvs, we enable this. And after
|
|
|
|
// a while we verify that reading of 1.2.x files work perfectly we remove
|
|
|
|
// this code completely. (Lgb)
|
2002-05-22 12:33:02 +00:00
|
|
|
#define NO_PEXTRA_REALLY 1
|
2001-06-25 00:06:33 +00:00
|
|
|
|
|
|
|
// Define this if you want to try out the new storage container for
|
|
|
|
// paragraphs. std::container instead of obfuscated homegrown
|
|
|
|
// linked list. (Lgb)
|
|
|
|
// This is non working and far from finished.
|
|
|
|
// #define NO_NEXT 1
|
|
|
|
|
|
|
|
/// A Paragraph holds all text, attributes and insets in a text paragraph
|
|
|
|
class Paragraph {
|
|
|
|
public:
|
|
|
|
#ifndef NO_PEXTRA_REALLY
|
|
|
|
///
|
|
|
|
enum PEXTRA_TYPE {
|
|
|
|
///
|
|
|
|
PEXTRA_NONE,
|
|
|
|
///
|
|
|
|
PEXTRA_INDENT,
|
|
|
|
///
|
|
|
|
PEXTRA_MINIPAGE,
|
|
|
|
///
|
|
|
|
PEXTRA_FLOATFLT
|
|
|
|
};
|
|
|
|
///
|
|
|
|
enum MINIPAGE_ALIGNMENT {
|
|
|
|
///
|
|
|
|
MINIPAGE_ALIGN_TOP,
|
|
|
|
///
|
|
|
|
MINIPAGE_ALIGN_MIDDLE,
|
|
|
|
///
|
|
|
|
MINIPAGE_ALIGN_BOTTOM
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
///
|
|
|
|
enum META_KIND {
|
|
|
|
///
|
|
|
|
META_HFILL = 1,
|
|
|
|
///
|
|
|
|
META_NEWLINE,
|
|
|
|
///
|
|
|
|
META_INSET
|
|
|
|
};
|
|
|
|
///
|
|
|
|
typedef char value_type;
|
2002-03-21 17:27:08 +00:00
|
|
|
/// The same as ParameterStruct::depth_type
|
2001-06-25 00:06:33 +00:00
|
|
|
typedef unsigned int depth_type;
|
|
|
|
|
|
|
|
///
|
|
|
|
Paragraph();
|
|
|
|
/// this constructor inserts the new paragraph in a list
|
|
|
|
explicit
|
|
|
|
Paragraph(Paragraph * par);
|
|
|
|
///
|
2001-09-09 22:02:19 +00:00
|
|
|
Paragraph(Paragraph const &, bool same_ids);
|
2001-06-25 00:06:33 +00:00
|
|
|
/// the destructor removes the new paragraph from the list
|
|
|
|
~Paragraph();
|
|
|
|
|
|
|
|
///
|
|
|
|
Language const * getParLanguage(BufferParams const &) const;
|
|
|
|
///
|
|
|
|
bool isRightToLeftPar(BufferParams const &) const;
|
|
|
|
///
|
|
|
|
void changeLanguage(BufferParams const & bparams,
|
|
|
|
Language const * from, Language const * to);
|
|
|
|
///
|
|
|
|
bool isMultiLingual(BufferParams const &);
|
|
|
|
|
2001-11-26 16:52:24 +00:00
|
|
|
///
|
2001-06-25 00:06:33 +00:00
|
|
|
string const asString(Buffer const *, bool label);
|
|
|
|
///
|
2001-11-27 10:34:16 +00:00
|
|
|
string const asString(Buffer const *, lyx::pos_type beg, lyx::pos_type end,
|
2001-09-12 10:41:25 +00:00
|
|
|
bool label);
|
2002-03-21 17:27:08 +00:00
|
|
|
|
2001-06-25 00:06:33 +00:00
|
|
|
///
|
|
|
|
void writeFile(Buffer const *, std::ostream &, BufferParams const &,
|
|
|
|
depth_type) const;
|
|
|
|
///
|
|
|
|
void validate(LaTeXFeatures &) const;
|
2002-03-21 17:27:08 +00:00
|
|
|
|
2001-06-25 00:06:33 +00:00
|
|
|
///
|
|
|
|
int id() const;
|
|
|
|
///
|
|
|
|
void id(int id_arg);
|
|
|
|
///
|
|
|
|
void read();
|
|
|
|
|
|
|
|
///
|
|
|
|
Paragraph * TeXOnePar(Buffer const *, BufferParams const &,
|
|
|
|
std::ostream &, TexRow & texrow,
|
|
|
|
bool moving_arg);
|
2002-01-19 20:24:04 +00:00
|
|
|
|
2002-03-21 17:27:08 +00:00
|
|
|
///
|
2002-07-01 14:31:57 +00:00
|
|
|
int startTeXParParams(BufferParams const &, std::ostream &, bool) const;
|
2002-01-19 20:24:04 +00:00
|
|
|
|
2002-03-21 17:27:08 +00:00
|
|
|
///
|
2002-07-01 14:31:57 +00:00
|
|
|
int endTeXParParams(BufferParams const &, std::ostream &, bool) const;
|
2002-01-19 20:24:04 +00:00
|
|
|
|
2002-03-21 17:27:08 +00:00
|
|
|
|
2001-06-25 00:06:33 +00:00
|
|
|
///
|
|
|
|
bool simpleTeXOnePar(Buffer const *, BufferParams const &,
|
|
|
|
std::ostream &, TexRow & texrow, bool moving_arg);
|
|
|
|
|
|
|
|
///
|
|
|
|
Paragraph * TeXEnvironment(Buffer const *, BufferParams const &,
|
|
|
|
std::ostream &, TexRow & texrow);
|
|
|
|
///
|
|
|
|
bool hasSameLayout(Paragraph const * par) const;
|
2001-07-29 15:34:18 +00:00
|
|
|
|
2001-06-25 00:06:33 +00:00
|
|
|
///
|
|
|
|
void makeSameLayout(Paragraph const * par);
|
|
|
|
|
|
|
|
/// Is it the first par with same depth and layout?
|
|
|
|
bool isFirstInSequence() const;
|
|
|
|
|
|
|
|
/** Check if the current paragraph is the last paragraph in a
|
|
|
|
proof environment */
|
2002-06-24 20:28:12 +00:00
|
|
|
int getEndLabel() const;
|
2001-06-25 00:06:33 +00:00
|
|
|
///
|
2001-07-11 12:10:46 +00:00
|
|
|
Inset * inInset() const;
|
2001-06-25 00:06:33 +00:00
|
|
|
///
|
|
|
|
void setInsetOwner(Inset * i);
|
|
|
|
///
|
|
|
|
void deleteInsetsLyXText(BufferView *);
|
|
|
|
///
|
|
|
|
void resizeInsetsLyXText(BufferView *);
|
|
|
|
|
|
|
|
///
|
2001-11-27 10:34:16 +00:00
|
|
|
lyx::pos_type size() const;
|
2001-06-25 00:06:33 +00:00
|
|
|
///
|
|
|
|
void setContentsFromPar(Paragraph * par);
|
|
|
|
///
|
|
|
|
void clearContents();
|
|
|
|
|
|
|
|
///
|
2002-06-24 20:28:12 +00:00
|
|
|
LyXLayout_ptr const & layout() const;
|
2002-03-02 16:39:54 +00:00
|
|
|
///
|
2002-06-24 20:28:12 +00:00
|
|
|
void layout(LyXLayout_ptr const & new_layout);
|
2002-03-21 17:27:08 +00:00
|
|
|
|
2001-06-25 00:06:33 +00:00
|
|
|
///
|
|
|
|
void setCounter(int i, int v);
|
|
|
|
///
|
|
|
|
int getCounter(int i) const;
|
|
|
|
///
|
|
|
|
void incCounter(int i);
|
|
|
|
|
|
|
|
///
|
|
|
|
char enumdepth;
|
2002-03-21 17:27:08 +00:00
|
|
|
|
2001-06-25 00:06:33 +00:00
|
|
|
///
|
|
|
|
char itemdepth;
|
|
|
|
|
2002-03-21 17:27:08 +00:00
|
|
|
///
|
2001-11-26 16:42:04 +00:00
|
|
|
InsetBibKey * bibkey; // ale970302
|
2001-06-25 00:06:33 +00:00
|
|
|
|
|
|
|
///
|
|
|
|
void next(Paragraph *);
|
|
|
|
/** these function are able to hide closed footnotes
|
|
|
|
*/
|
|
|
|
Paragraph * next();
|
|
|
|
///
|
|
|
|
Paragraph const * next() const;
|
|
|
|
|
|
|
|
///
|
|
|
|
void previous(Paragraph *);
|
|
|
|
///
|
|
|
|
Paragraph * previous();
|
|
|
|
///
|
|
|
|
Paragraph const * previous() const;
|
|
|
|
|
|
|
|
/// for the environments
|
|
|
|
Paragraph * depthHook(depth_type depth);
|
|
|
|
/// for the environments
|
|
|
|
Paragraph const * depthHook(depth_type depth) const;
|
2002-03-21 17:27:08 +00:00
|
|
|
///
|
2001-06-25 00:06:33 +00:00
|
|
|
Paragraph * outerHook();
|
2002-03-21 17:27:08 +00:00
|
|
|
///
|
2001-06-25 00:06:33 +00:00
|
|
|
Paragraph const * outerHook() const;
|
|
|
|
///
|
|
|
|
int beginningOfMainBody() const;
|
|
|
|
///
|
|
|
|
string const & getLabelstring() const;
|
2002-03-21 17:27:08 +00:00
|
|
|
|
2001-06-25 00:06:33 +00:00
|
|
|
/// the next two functions are for the manual labels
|
|
|
|
string const getLabelWidthString() const;
|
|
|
|
///
|
|
|
|
void setLabelWidthString(string const & s);
|
|
|
|
///
|
|
|
|
char getAlign() const;
|
2002-02-28 15:07:11 +00:00
|
|
|
/// The nesting depth of a paragraph
|
2001-06-25 00:06:33 +00:00
|
|
|
depth_type getDepth() const;
|
2002-02-28 15:07:11 +00:00
|
|
|
/// The maximal possible depth of a paragraph after this one
|
2002-06-24 20:28:12 +00:00
|
|
|
depth_type getMaxDepthAfter() const;
|
2001-06-25 00:06:33 +00:00
|
|
|
///
|
2002-06-24 20:28:12 +00:00
|
|
|
void applyLayout(LyXLayout_ptr const & new_layout);
|
2001-06-25 00:06:33 +00:00
|
|
|
///
|
|
|
|
int getFirstCounter(int i) const;
|
|
|
|
///
|
2001-11-27 10:34:16 +00:00
|
|
|
void erase(lyx::pos_type pos);
|
2001-06-25 00:06:33 +00:00
|
|
|
/** the flag determines wether the layout should be copied
|
2002-03-21 17:27:08 +00:00
|
|
|
*/
|
2001-11-27 10:34:16 +00:00
|
|
|
void breakParagraph(BufferParams const &, lyx::pos_type pos, int flag);
|
2001-06-25 00:06:33 +00:00
|
|
|
///
|
2001-11-27 10:34:16 +00:00
|
|
|
void breakParagraphConservative(BufferParams const &, lyx::pos_type pos);
|
2001-06-25 00:06:33 +00:00
|
|
|
/** Get unistantiated font setting. Returns the difference
|
|
|
|
between the characters font and the layoutfont.
|
|
|
|
This is what is stored in the fonttable
|
|
|
|
*/
|
|
|
|
LyXFont const
|
2001-11-27 10:34:16 +00:00
|
|
|
getFontSettings(BufferParams const &, lyx::pos_type pos) const;
|
2001-06-25 00:06:33 +00:00
|
|
|
///
|
|
|
|
LyXFont const getFirstFontSettings() const;
|
|
|
|
|
|
|
|
/** Get fully instantiated font. If pos == -1, use the layout
|
|
|
|
font attached to this paragraph.
|
|
|
|
If pos == -2, use the label font of the layout attached here.
|
|
|
|
In all cases, the font is instantiated, i.e. does not have any
|
2002-03-21 17:27:08 +00:00
|
|
|
attributes with values LyXFont::INHERIT, LyXFont::IGNORE or
|
2001-06-25 00:06:33 +00:00
|
|
|
LyXFont::TOGGLE.
|
|
|
|
*/
|
2001-11-27 10:34:16 +00:00
|
|
|
LyXFont const getFont(BufferParams const &, lyx::pos_type pos) const;
|
2001-08-03 18:28:11 +00:00
|
|
|
LyXFont const getLayoutFont(BufferParams const &) const;
|
|
|
|
LyXFont const getLabelFont(BufferParams const &) const;
|
2001-06-25 00:06:33 +00:00
|
|
|
///
|
2001-11-27 10:34:16 +00:00
|
|
|
value_type getChar(lyx::pos_type pos) const;
|
2001-06-25 00:06:33 +00:00
|
|
|
///
|
2001-11-27 10:34:16 +00:00
|
|
|
value_type getUChar(BufferParams const &, lyx::pos_type pos) const;
|
2001-06-25 00:06:33 +00:00
|
|
|
/// The position must already exist.
|
2001-11-27 10:34:16 +00:00
|
|
|
void setChar(lyx::pos_type pos, value_type c);
|
2002-05-30 03:37:24 +00:00
|
|
|
/// pos <= size() (there is a dummy font change at the end of each par)
|
2001-11-27 10:34:16 +00:00
|
|
|
void setFont(lyx::pos_type pos, LyXFont const & font);
|
2001-06-25 00:06:33 +00:00
|
|
|
/// Returns the height of the highest font in range
|
2001-11-27 10:34:16 +00:00
|
|
|
LyXFont::FONT_SIZE highestFontInRange(lyx::pos_type startpos,
|
2002-03-21 17:27:08 +00:00
|
|
|
lyx::pos_type endpos,
|
2001-12-12 09:56:03 +00:00
|
|
|
LyXFont::FONT_SIZE const def_size) const;
|
2001-06-25 00:06:33 +00:00
|
|
|
///
|
2001-11-27 10:34:16 +00:00
|
|
|
void insertChar(lyx::pos_type pos, value_type c);
|
2001-06-25 00:06:33 +00:00
|
|
|
///
|
2001-11-27 10:34:16 +00:00
|
|
|
void insertChar(lyx::pos_type pos, value_type c, LyXFont const &);
|
2001-06-25 00:06:33 +00:00
|
|
|
///
|
2001-07-27 12:03:36 +00:00
|
|
|
bool checkInsertChar(LyXFont &);
|
|
|
|
///
|
2001-11-27 10:34:16 +00:00
|
|
|
void insertInset(lyx::pos_type pos, Inset * inset);
|
2001-06-25 00:06:33 +00:00
|
|
|
///
|
2001-11-27 10:34:16 +00:00
|
|
|
void insertInset(lyx::pos_type pos, Inset * inset, LyXFont const &);
|
2001-06-25 00:06:33 +00:00
|
|
|
///
|
2001-07-19 08:52:59 +00:00
|
|
|
bool insetAllowed(Inset::Code code);
|
2001-06-25 00:06:33 +00:00
|
|
|
///
|
2001-11-27 10:34:16 +00:00
|
|
|
Inset * getInset(lyx::pos_type pos);
|
2001-06-25 00:06:33 +00:00
|
|
|
///
|
2001-11-27 10:34:16 +00:00
|
|
|
Inset const * getInset(lyx::pos_type pos) const;
|
2001-06-25 00:06:33 +00:00
|
|
|
/** important for cut and paste
|
|
|
|
Temporary change from BufferParams to Buffer. Will revert when we
|
2001-06-28 10:25:20 +00:00
|
|
|
get rid of the argument to Inset::clone(Buffer const &) */
|
2001-11-27 10:34:16 +00:00
|
|
|
void copyIntoMinibuffer(Buffer const &, lyx::pos_type pos) const;
|
2001-06-25 00:06:33 +00:00
|
|
|
///
|
2001-11-27 10:34:16 +00:00
|
|
|
void cutIntoMinibuffer(BufferParams const &, lyx::pos_type pos);
|
2001-06-25 00:06:33 +00:00
|
|
|
///
|
2001-11-27 10:34:16 +00:00
|
|
|
bool insertFromMinibuffer(lyx::pos_type pos);
|
2001-06-25 00:06:33 +00:00
|
|
|
|
|
|
|
///
|
2001-11-27 10:34:16 +00:00
|
|
|
bool isHfill(lyx::pos_type pos) const;
|
2001-06-25 00:06:33 +00:00
|
|
|
///
|
2001-11-27 10:34:16 +00:00
|
|
|
bool isInset(lyx::pos_type pos) const;
|
2001-06-25 00:06:33 +00:00
|
|
|
///
|
2001-11-27 10:34:16 +00:00
|
|
|
bool isNewline(lyx::pos_type pos) const;
|
2001-06-25 00:06:33 +00:00
|
|
|
///
|
2001-11-27 10:34:16 +00:00
|
|
|
bool isSeparator(lyx::pos_type pos) const;
|
2001-06-25 00:06:33 +00:00
|
|
|
///
|
2001-11-27 10:34:16 +00:00
|
|
|
bool isLineSeparator(lyx::pos_type pos) const;
|
2001-06-25 00:06:33 +00:00
|
|
|
///
|
2001-11-27 10:34:16 +00:00
|
|
|
bool isKomma(lyx::pos_type pos) const;
|
2001-06-25 00:06:33 +00:00
|
|
|
/// Used by the spellchecker
|
2001-11-27 10:34:16 +00:00
|
|
|
bool isLetter(lyx::pos_type pos) const;
|
2002-03-21 17:27:08 +00:00
|
|
|
///
|
2001-11-27 10:34:16 +00:00
|
|
|
bool isWord(lyx::pos_type pos) const;
|
2001-06-25 00:06:33 +00:00
|
|
|
|
|
|
|
/** paste this paragraph with the next one
|
|
|
|
be carefull, this doesent make any check at all
|
2002-03-21 17:27:08 +00:00
|
|
|
*/
|
2001-06-25 00:06:33 +00:00
|
|
|
void pasteParagraph(BufferParams const &);
|
|
|
|
|
|
|
|
/// returns -1 if inset not found
|
2001-12-13 11:35:25 +00:00
|
|
|
int getPositionOfInset(Inset const * inset) const;
|
2001-06-25 00:06:33 +00:00
|
|
|
|
2001-07-06 15:57:54 +00:00
|
|
|
/// some good comment here John?
|
|
|
|
Paragraph * getParFromID(int id) const;
|
|
|
|
|
2001-06-25 00:06:33 +00:00
|
|
|
///
|
2002-06-24 20:28:12 +00:00
|
|
|
int stripLeadingSpaces();
|
2001-06-25 00:06:33 +00:00
|
|
|
|
|
|
|
#ifndef NO_PEXTRA_REALLY
|
2001-11-26 16:42:04 +00:00
|
|
|
/* If I set a PExtra Indent on one paragraph of a ENV_LIST-TYPE
|
|
|
|
I have to set it on each of it's elements */
|
2001-06-25 00:06:33 +00:00
|
|
|
///
|
2001-11-26 16:42:04 +00:00
|
|
|
void setPExtraType(BufferParams const &, int type,
|
2001-06-25 00:06:33 +00:00
|
|
|
string const & width, string const & widthp);
|
|
|
|
///
|
2001-11-26 16:42:04 +00:00
|
|
|
void unsetPExtraType(BufferParams const &);
|
2001-06-25 00:06:33 +00:00
|
|
|
#endif
|
|
|
|
///
|
2001-11-08 11:32:18 +00:00
|
|
|
bool sgmlConvertChar(char c, string & sgml_string);
|
2001-11-29 16:29:30 +00:00
|
|
|
///
|
|
|
|
bool isFreeSpacing() const;
|
2001-06-25 00:06:33 +00:00
|
|
|
|
|
|
|
ParagraphParameters & params();
|
|
|
|
ParagraphParameters const & params() const;
|
|
|
|
private:
|
2002-03-02 16:39:54 +00:00
|
|
|
///
|
2002-06-24 20:28:12 +00:00
|
|
|
LyXLayout_ptr layout_;
|
2002-06-10 07:57:39 +00:00
|
|
|
public:
|
|
|
|
/** Both these definitions must be made public to keep Compaq cxx 6.5
|
|
|
|
* happy.
|
|
|
|
*/
|
2001-06-25 00:06:33 +00:00
|
|
|
///
|
|
|
|
struct InsetTable {
|
|
|
|
///
|
2001-11-27 10:34:16 +00:00
|
|
|
lyx::pos_type pos;
|
2001-06-25 00:06:33 +00:00
|
|
|
///
|
|
|
|
Inset * inset;
|
|
|
|
///
|
2001-11-27 10:34:16 +00:00
|
|
|
InsetTable(lyx::pos_type p, Inset * i) : pos(p), inset(i) {}
|
2001-06-25 00:06:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
///
|
|
|
|
typedef std::vector<InsetTable> InsetList;
|
2002-06-10 07:57:39 +00:00
|
|
|
private:
|
2001-06-25 00:06:33 +00:00
|
|
|
///
|
|
|
|
InsetList insetlist;
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
class inset_iterator {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
inset_iterator() {}
|
|
|
|
//
|
|
|
|
inset_iterator(InsetList::iterator const & iter);
|
|
|
|
///
|
|
|
|
inset_iterator & operator++() {
|
|
|
|
++it;
|
|
|
|
return *this;
|
|
|
|
}
|
|
|
|
///
|
2001-07-12 11:11:10 +00:00
|
|
|
Inset * operator*() { return it->inset; }
|
2001-12-28 21:17:18 +00:00
|
|
|
///
|
|
|
|
Inset * operator->() { return it->inset; }
|
2002-03-21 17:27:08 +00:00
|
|
|
|
2001-06-25 00:06:33 +00:00
|
|
|
///
|
2001-11-27 10:34:16 +00:00
|
|
|
lyx::pos_type getPos() const { return it->pos; }
|
2001-06-25 00:06:33 +00:00
|
|
|
///
|
|
|
|
bool operator==(inset_iterator const & iter) const {
|
|
|
|
return it == iter.it;
|
|
|
|
}
|
|
|
|
///
|
|
|
|
bool operator!=(inset_iterator const & iter) const {
|
|
|
|
return it != iter.it;
|
|
|
|
}
|
|
|
|
private:
|
|
|
|
///
|
|
|
|
InsetList::iterator it;
|
|
|
|
};
|
2001-06-29 15:17:05 +00:00
|
|
|
///
|
|
|
|
friend class inset_iterator;
|
2002-03-21 17:27:08 +00:00
|
|
|
|
2001-06-25 00:06:33 +00:00
|
|
|
///
|
|
|
|
inset_iterator inset_iterator_begin();
|
|
|
|
///
|
|
|
|
inset_iterator inset_iterator_end();
|
2002-06-10 21:04:06 +00:00
|
|
|
/// returns inset iterator of the first inset at or after pos.
|
2001-11-27 10:34:16 +00:00
|
|
|
inset_iterator InsetIterator(lyx::pos_type pos);
|
2001-06-25 00:06:33 +00:00
|
|
|
|
|
|
|
private:
|
2001-09-09 22:02:19 +00:00
|
|
|
/// if anything uses this we don't want it to.
|
|
|
|
Paragraph(Paragraph const &);
|
2001-06-25 00:06:33 +00:00
|
|
|
///
|
|
|
|
Paragraph * next_;
|
|
|
|
///
|
|
|
|
Paragraph * previous_;
|
|
|
|
|
|
|
|
struct Pimpl;
|
|
|
|
///
|
|
|
|
friend struct Paragraph::Pimpl;
|
|
|
|
///
|
|
|
|
Pimpl * pimpl_;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|