2002-08-20 19:41:13 +00:00
|
|
|
|
// -*- C++ -*-
|
2002-09-12 14:58:06 +00:00
|
|
|
|
/**
|
|
|
|
|
* \file paragraph_funcs.h
|
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
2002-08-21 17:35:24 +00:00
|
|
|
|
*
|
2002-09-12 14:58:06 +00:00
|
|
|
|
* \author Lars Gullik Bj<EFBFBD>nnes
|
2002-08-21 17:35:24 +00:00
|
|
|
|
*
|
2002-09-12 14:58:06 +00:00
|
|
|
|
* Full author contact details are available in file CREDITS
|
|
|
|
|
*/
|
2002-08-20 19:41:13 +00:00
|
|
|
|
|
|
|
|
|
#ifndef PARAGRAPH_FUNCS_H
|
|
|
|
|
#define PARAGRAPH_FUNCS_H
|
|
|
|
|
|
|
|
|
|
#include "support/types.h"
|
|
|
|
|
|
2003-03-03 21:15:49 +00:00
|
|
|
|
class Buffer;
|
2002-08-20 19:41:13 +00:00
|
|
|
|
class BufferParams;
|
2002-08-21 17:45:22 +00:00
|
|
|
|
class Paragraph;
|
2003-03-03 21:15:49 +00:00
|
|
|
|
class TexRow;
|
2002-08-20 19:41:13 +00:00
|
|
|
|
|
|
|
|
|
///
|
|
|
|
|
void breakParagraph(BufferParams const & bparams,
|
|
|
|
|
Paragraph *,
|
|
|
|
|
lyx::pos_type pos,
|
|
|
|
|
int flag);
|
|
|
|
|
|
|
|
|
|
///
|
|
|
|
|
void breakParagraphConservative(BufferParams const & bparams,
|
|
|
|
|
Paragraph *,
|
|
|
|
|
lyx::pos_type pos);
|
|
|
|
|
|
2002-10-21 16:21:56 +00:00
|
|
|
|
/**
|
|
|
|
|
* Append the next paragraph onto the tail of this one.
|
|
|
|
|
* Be careful, this doesent make any check at all.
|
|
|
|
|
*/
|
|
|
|
|
void mergeParagraph(BufferParams const & bparams, Paragraph *);
|
2002-08-20 19:41:13 +00:00
|
|
|
|
|
|
|
|
|
|
2002-08-21 17:35:24 +00:00
|
|
|
|
#if 0
|
2002-08-20 19:41:13 +00:00
|
|
|
|
/// for the environments
|
|
|
|
|
Paragraph * depthHook(Paragraph * par, Paragraph::depth_type depth);
|
|
|
|
|
|
|
|
|
|
Paragraph * outerHook(Paragraph * par);
|
|
|
|
|
|
|
|
|
|
/// Is it the first par with same depth and layout?
|
|
|
|
|
bool isFirstInSequence(Paragraph * par);
|
|
|
|
|
|
|
|
|
|
/** Check if the current paragraph is the last paragraph in a
|
|
|
|
|
proof environment */
|
|
|
|
|
int getEndLabel(Paragraph * para, BufferParams const & bparams);
|
|
|
|
|
#endif
|
|
|
|
|
|
2003-03-03 21:15:49 +00:00
|
|
|
|
Paragraph * TeXDeeper(Buffer const * buf,
|
|
|
|
|
BufferParams const & bparams,
|
|
|
|
|
Paragraph * pit,
|
|
|
|
|
std::ostream & os, TexRow & texrow);
|
|
|
|
|
|
|
|
|
|
Paragraph * TeXEnvironment(Buffer const * buf,
|
|
|
|
|
BufferParams const & bparams,
|
|
|
|
|
Paragraph * pit,
|
|
|
|
|
std::ostream & os, TexRow & texrow);
|
|
|
|
|
|
|
|
|
|
Paragraph * TeXOnePar(Buffer const * buf,
|
|
|
|
|
BufferParams const & bparams,
|
|
|
|
|
Paragraph * pit,
|
|
|
|
|
std::ostream & os, TexRow & texrow,
|
|
|
|
|
bool moving_arg);
|
|
|
|
|
|
2002-09-12 14:58:06 +00:00
|
|
|
|
#endif // PARAGRAPH_FUNCS_H
|