Reduce 115 dependencies on RowList.h to just 10 dependencies on lyxrow.h.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7692 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2003-09-06 11:01:50 +00:00
parent b5f20ef5ce
commit b0a5773d95
14 changed files with 52 additions and 4 deletions

View File

@ -1,3 +1,22 @@
2003-09-06 Angus Leeming <leeming@lyx.org>
* RowList_fwd.h: new file, forward-declaring Row rather than
#including lyxrow.h
* lyxrow_funcs.h:
* lyxtext.h:
* paragraph.h:
* insets/insettext.h: use it instead of RowList.h
* bufferview_funcs.C:
* lyxfunc.C:
* lyxrow_funcs.C:
* paragraph.C:
* rowpainter.C:
* text.C:
* text2.C:
* text3.C: #include "RowList.h".
2003-09-05 Angus Leeming <leeming@lyx.org>
* factory.C (createInset):

21
src/RowList_fwd.h Normal file
View File

@ -0,0 +1,21 @@
// -*- C++ -*-
/**
* \file RowList_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 ROW_LIST_FWD_H
#define ROW_LIST_FWD_H
#include <list>
class Row;
typedef std::list<Row> RowList;
#endif

View File

@ -20,6 +20,7 @@
#include "language.h"
#include "gettext.h"
#include "ParagraphParameters.h"
#include "RowList.h"
#include "frontends/LyXView.h"
#include "frontends/Alert.h"

View File

@ -16,7 +16,7 @@
#include "support/std_string.h"
#include "LColor.h"
#include "ParagraphList.h"
#include "RowList.h"
#include "RowList_fwd.h"
#include "dimension.h"
#include "lyxtext.h"

View File

@ -44,6 +44,7 @@
#include "lyxfind.h"
#include "undo_funcs.h"
#include "ParagraphParameters.h"
#include "RowList.h"
#include "insets/insetcommand.h"
#include "insets/insetexternal.h"

View File

@ -15,6 +15,7 @@
#include "lyxtext.h"
#include "lyxlayout.h"
#include "debug.h"
#include "RowList.h"
#include "support/LAssert.h"

View File

@ -13,7 +13,7 @@
#ifndef LYXROW_FUNCS_H
#define LYXROW_FUNCS_H
#include "RowList.h"
#include "RowList_fwd.h"
#include "support/types.h"
class Paragraph;

View File

@ -18,7 +18,7 @@
#include "layout.h"
#include "LColor.h"
#include "insets/inset.h"
#include "RowList.h"
#include "RowList_fwd.h"
#include "bufferview_funcs.h"
#include "textcursor.h"

View File

@ -26,6 +26,7 @@
#include "gettext.h"
#include "language.h"
#include "latexrunparams.h"
#include "RowList.h"
#include "support/std_sstream.h"

View File

@ -24,7 +24,7 @@
#include "support/types.h"
#include "changes.h"
#include "RowList.h"
#include "RowList_fwd.h"
#include "support/std_string.h"

View File

@ -27,6 +27,7 @@
#include "rowpainter.h"
#include "lyxrow_funcs.h"
#include "metricsinfo.h"
#include "RowList.h"
using namespace lyx::support;

View File

@ -33,6 +33,7 @@
#include "paragraph_funcs.h"
#include "rowpainter.h"
#include "lyxrow_funcs.h"
#include "RowList.h"
#include "insets/insettext.h"

View File

@ -40,6 +40,7 @@
#include "lyxrow_funcs.h"
#include "metricsinfo.h"
#include "paragraph_funcs.h"
#include "RowList.h"
#include "insets/insetbibitem.h"
#include "insets/insetenv.h"

View File

@ -38,6 +38,7 @@
#include "insets/insetnewline.h"
#include "undo_funcs.h"
#include "text_funcs.h"
#include "RowList.h"
#include <clocale>