mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
remove ParagraphList_fwd.h
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18030 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
f63d0e05df
commit
345d7c00cd
@ -16,7 +16,6 @@
|
||||
#include "InsetList.h"
|
||||
|
||||
#include "DocIterator.h"
|
||||
#include "ParagraphList_fwd.h"
|
||||
|
||||
#include "support/FileName.h"
|
||||
#include "support/limited_stack.h"
|
||||
@ -52,11 +51,12 @@ class MacroData;
|
||||
class OutputParams;
|
||||
class ParConstIterator;
|
||||
class ParIterator;
|
||||
class ParagraphList;
|
||||
class StableDocIterator;
|
||||
class TeXErrors;
|
||||
class TexRow;
|
||||
class TocBackend;
|
||||
class Undo;
|
||||
class StableDocIterator;
|
||||
|
||||
|
||||
/** The buffer object.
|
||||
|
@ -357,9 +357,11 @@ void copySelectionHelper(Buffer const & buf, ParagraphList & pars,
|
||||
ParagraphList copy_pars(boost::next(pars.begin(), startpit),
|
||||
boost::next(pars.begin(), endpit + 1));
|
||||
|
||||
// Remove the end of the last paragraph; afterwards, remove the beginning
|
||||
// of the first paragraph. Keep this order - there may only be one paragraph!
|
||||
// Do not track deletions here; this is an internal action not visible to the user
|
||||
// Remove the end of the last paragraph; afterwards, remove the
|
||||
// beginning of the first paragraph. Keep this order - there may only
|
||||
// be one paragraph! Do not track deletions here; this is an internal
|
||||
// action not visible to the user
|
||||
|
||||
Paragraph & back = copy_pars.back();
|
||||
back.eraseChars(end, back.size(), false);
|
||||
Paragraph & front = copy_pars.front();
|
||||
|
@ -14,8 +14,6 @@
|
||||
#ifndef CUTANDPASTE_H
|
||||
#define CUTANDPASTE_H
|
||||
|
||||
#include "ParagraphList_fwd.h"
|
||||
|
||||
#include "support/docstring.h"
|
||||
|
||||
#include <vector>
|
||||
@ -27,6 +25,7 @@ class ErrorList;
|
||||
class InsetText;
|
||||
class LyXTextClass;
|
||||
class LCursor;
|
||||
class ParagraphList;
|
||||
|
||||
namespace cap {
|
||||
|
||||
|
@ -13,21 +13,17 @@
|
||||
#define PARITERATOR_H
|
||||
|
||||
#include "DocIterator.h"
|
||||
#include "ParagraphList_fwd.h"
|
||||
|
||||
#include "support/types.h"
|
||||
|
||||
#include <boost/optional.hpp>
|
||||
|
||||
#include <vector>
|
||||
|
||||
|
||||
namespace lyx {
|
||||
|
||||
|
||||
|
||||
class InsetBase;
|
||||
class LyXText;
|
||||
class ParagraphList;
|
||||
|
||||
|
||||
class ParIterator : public std::iterator<std::forward_iterator_tag, Paragraph>,
|
||||
@ -44,7 +40,6 @@ public:
|
||||
///
|
||||
ParIterator() : DocIterator() {}
|
||||
|
||||
|
||||
///
|
||||
ParIterator(InsetBase &, pit_type pit);
|
||||
///
|
||||
|
@ -19,9 +19,17 @@
|
||||
|
||||
namespace lyx {
|
||||
|
||||
/// Container for all kind of Paragraphs used in Lyx.
|
||||
typedef RandomAccessList<Paragraph> ParagraphList;
|
||||
|
||||
/// Container for all kind of Paragraphs used in LyX.
|
||||
class ParagraphList : public RandomAccessList<Paragraph> {
|
||||
public:
|
||||
///
|
||||
ParagraphList() {}
|
||||
///
|
||||
template<class InputIterator>
|
||||
ParagraphList(InputIterator first, InputIterator last)
|
||||
: RandomAccessList<Paragraph>(first, last)
|
||||
{}
|
||||
};
|
||||
|
||||
} // namespace lyx
|
||||
|
||||
|
@ -1,26 +0,0 @@
|
||||
// -*- C++ -*-
|
||||
/**
|
||||
* \file ParagraphList_fwd.h
|
||||
* This file is part of LyX, the document processor.
|
||||
* Licence details can be found in the file COPYING.
|
||||
*
|
||||
* \author Angus Leeming
|
||||
*
|
||||
* Full author contact details are available in file CREDITS.
|
||||
*/
|
||||
|
||||
#ifndef PARAGRAPH_LIST_FWD_H
|
||||
#define PARAGRAPH_LIST_FWD_H
|
||||
|
||||
namespace lyx {
|
||||
|
||||
template <class T>
|
||||
class RandomAccessList;
|
||||
|
||||
class Paragraph;
|
||||
|
||||
typedef RandomAccessList<Paragraph> ParagraphList;
|
||||
|
||||
} // namespace lyx
|
||||
|
||||
#endif
|
@ -18,7 +18,6 @@
|
||||
|
||||
#include "DocIterator.h"
|
||||
#include "BufferParams.h"
|
||||
#include "ParagraphList_fwd.h"
|
||||
|
||||
#include "support/types.h"
|
||||
|
||||
@ -32,6 +31,7 @@ class BufferView;
|
||||
class DocIterator;
|
||||
class LCursor;
|
||||
class MathArray;
|
||||
class ParagraphList;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -16,7 +16,6 @@
|
||||
#include "RowList_fwd.h"
|
||||
#include "LyXFont.h"
|
||||
#include "LyXText.h"
|
||||
#include "ParagraphList_fwd.h"
|
||||
|
||||
#include "support/types.h"
|
||||
|
||||
@ -31,6 +30,7 @@ class BufferView;
|
||||
class CursorSlice;
|
||||
class Dimension;
|
||||
class LColor_color;
|
||||
class ParagraphList;
|
||||
|
||||
|
||||
/**
|
||||
@ -43,8 +43,6 @@ public:
|
||||
explicit InsetText(BufferParams const &);
|
||||
///
|
||||
InsetText();
|
||||
///
|
||||
virtual ~InsetText() {}
|
||||
|
||||
/// empty inset to empty par
|
||||
void clear();
|
||||
|
@ -13,16 +13,13 @@
|
||||
#ifndef OUTPUT_DOCBOOK_H
|
||||
#define OUTPUT_DOCBOOK_H
|
||||
|
||||
#include "ParagraphList_fwd.h"
|
||||
#include "support/docstream.h"
|
||||
|
||||
#include <iosfwd>
|
||||
|
||||
|
||||
namespace lyx {
|
||||
|
||||
class Buffer;
|
||||
class OutputParams;
|
||||
class ParagraphList;
|
||||
|
||||
///
|
||||
void docbookParagraphs(ParagraphList const & subset,
|
||||
|
@ -12,8 +12,6 @@
|
||||
#ifndef OUTPUT_LATEX_H
|
||||
#define OUTPUT_LATEX_H
|
||||
|
||||
#include "ParagraphList_fwd.h"
|
||||
|
||||
#include "support/docstream.h"
|
||||
|
||||
|
||||
@ -22,6 +20,8 @@ namespace lyx {
|
||||
class Buffer;
|
||||
class BufferParams;
|
||||
class Encoding;
|
||||
class Paragraph;
|
||||
class ParagraphList;
|
||||
class OutputParams;
|
||||
class TexRow;
|
||||
|
||||
|
@ -12,8 +12,6 @@
|
||||
#ifndef PARAGRAPH_FUNCS_H
|
||||
#define PARAGRAPH_FUNCS_H
|
||||
|
||||
#include "ParagraphList_fwd.h"
|
||||
|
||||
#include "support/types.h"
|
||||
|
||||
|
||||
@ -24,6 +22,7 @@ class BufferParams;
|
||||
class InsetBase;
|
||||
class LyXFont;
|
||||
class Paragraph;
|
||||
class ParagraphList;
|
||||
|
||||
/**
|
||||
* This breaks a paragraph at the specified position.
|
||||
|
Loading…
Reference in New Issue
Block a user