From: Angus Leeming Date: Sat, 6 Sep 2003 11:01:50 +0000 (+0000) Subject: Reduce 115 dependencies on RowList.h to just 10 dependencies on lyxrow.h. X-Git-Tag: 1.6.10~16146 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b0a5773d95a73a57db7a2c9290616757715375c0;p=features.git 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 --- diff --git a/src/ChangeLog b/src/ChangeLog index 0faef9cb16..1496ab7b92 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,22 @@ +2003-09-06 Angus Leeming + + * 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 * factory.C (createInset): diff --git a/src/RowList_fwd.h b/src/RowList_fwd.h new file mode 100644 index 0000000000..8f79e3e50f --- /dev/null +++ b/src/RowList_fwd.h @@ -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 + +class Row; + +typedef std::list RowList; + +#endif diff --git a/src/bufferview_funcs.C b/src/bufferview_funcs.C index 5cd7213330..fd17fb7721 100644 --- a/src/bufferview_funcs.C +++ b/src/bufferview_funcs.C @@ -20,6 +20,7 @@ #include "language.h" #include "gettext.h" #include "ParagraphParameters.h" +#include "RowList.h" #include "frontends/LyXView.h" #include "frontends/Alert.h" diff --git a/src/insets/insettext.h b/src/insets/insettext.h index 1add1fcd55..af7410d8fb 100644 --- a/src/insets/insettext.h +++ b/src/insets/insettext.h @@ -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" diff --git a/src/lyxfunc.C b/src/lyxfunc.C index f76005cf13..a09e9555df 100644 --- a/src/lyxfunc.C +++ b/src/lyxfunc.C @@ -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" diff --git a/src/lyxrow_funcs.C b/src/lyxrow_funcs.C index cfec4ef432..a9b4cf7cd3 100644 --- a/src/lyxrow_funcs.C +++ b/src/lyxrow_funcs.C @@ -15,6 +15,7 @@ #include "lyxtext.h" #include "lyxlayout.h" #include "debug.h" +#include "RowList.h" #include "support/LAssert.h" diff --git a/src/lyxrow_funcs.h b/src/lyxrow_funcs.h index a3f012054c..57a774bcc3 100644 --- a/src/lyxrow_funcs.h +++ b/src/lyxrow_funcs.h @@ -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; diff --git a/src/lyxtext.h b/src/lyxtext.h index 59108b3936..c3f898bd6d 100644 --- a/src/lyxtext.h +++ b/src/lyxtext.h @@ -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" diff --git a/src/paragraph.C b/src/paragraph.C index 567b299ad5..7db14f10ee 100644 --- a/src/paragraph.C +++ b/src/paragraph.C @@ -26,6 +26,7 @@ #include "gettext.h" #include "language.h" #include "latexrunparams.h" +#include "RowList.h" #include "support/std_sstream.h" diff --git a/src/paragraph.h b/src/paragraph.h index 2a8b930534..815d215e99 100644 --- a/src/paragraph.h +++ b/src/paragraph.h @@ -24,7 +24,7 @@ #include "support/types.h" #include "changes.h" -#include "RowList.h" +#include "RowList_fwd.h" #include "support/std_string.h" diff --git a/src/rowpainter.C b/src/rowpainter.C index 75ee4ee865..1a9af53402 100644 --- a/src/rowpainter.C +++ b/src/rowpainter.C @@ -27,6 +27,7 @@ #include "rowpainter.h" #include "lyxrow_funcs.h" #include "metricsinfo.h" +#include "RowList.h" using namespace lyx::support; diff --git a/src/text.C b/src/text.C index dc4974a288..00cee79417 100644 --- a/src/text.C +++ b/src/text.C @@ -33,6 +33,7 @@ #include "paragraph_funcs.h" #include "rowpainter.h" #include "lyxrow_funcs.h" +#include "RowList.h" #include "insets/insettext.h" diff --git a/src/text2.C b/src/text2.C index 3adfdbbba7..39df99f560 100644 --- a/src/text2.C +++ b/src/text2.C @@ -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" diff --git a/src/text3.C b/src/text3.C index 94b988f437..99b05090e5 100644 --- a/src/text3.C +++ b/src/text3.C @@ -38,6 +38,7 @@ #include "insets/insetnewline.h" #include "undo_funcs.h" #include "text_funcs.h" +#include "RowList.h" #include