]> git.lyx.org Git - features.git/commitdiff
Reduce 115 dependencies on RowList.h to just 10 dependencies on lyxrow.h.
authorAngus Leeming <leeming@lyx.org>
Sat, 6 Sep 2003 11:01:50 +0000 (11:01 +0000)
committerAngus Leeming <leeming@lyx.org>
Sat, 6 Sep 2003 11:01:50 +0000 (11:01 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7692 a592a061-630c-0410-9148-cb99ea01b6c8

14 files changed:
src/ChangeLog
src/RowList_fwd.h [new file with mode: 0644]
src/bufferview_funcs.C
src/insets/insettext.h
src/lyxfunc.C
src/lyxrow_funcs.C
src/lyxrow_funcs.h
src/lyxtext.h
src/paragraph.C
src/paragraph.h
src/rowpainter.C
src/text.C
src/text2.C
src/text3.C

index 0faef9cb16c26f96c91db4d21b392e40764a5a3e..1496ab7b925448ca14a56192aeea8f25e7445add 100644 (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):
diff --git a/src/RowList_fwd.h b/src/RowList_fwd.h
new file mode 100644 (file)
index 0000000..8f79e3e
--- /dev/null
@@ -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
index 5cd72133304c067da672b8f9a41da9a41f8a76cd..fd17fb7721e8ada2b1b7ad44700126da60a74b3d 100644 (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"
index 1add1fcd5574096f2395c835af007247fab9a886..af7410d8fb8eb9d112da09dda816a02881103b86 100644 (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"
 
index f76005cf1309787da8883f96b98915e4dff66900..a09e9555dfe82220eb49f3df6dca1041ecf82e2b 100644 (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"
index cfec4ef432d25cb58909ad6e98703288bd05b2a7..a9b4cf7cd3970c9bf01fb096c4b3ee5054c8c3af 100644 (file)
@@ -15,6 +15,7 @@
 #include "lyxtext.h"
 #include "lyxlayout.h"
 #include "debug.h"
+#include "RowList.h"
 
 #include "support/LAssert.h"
 
index a3f012054cfcfba6f8cce8d8f4f29ecc41aa52cc..57a774bcc3ef24e7507daeb9111db1080b3af947 100644 (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;
index 59108b3936e473df429d875a7262e82da20db457..c3f898bd6d6d36e2b4331b59700c3277765c0fff 100644 (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"
 
index 567b299ad59735e5ba9618d7b9e4b79f8d056202..7db14f10eeccde5a17fe32fc884eeac58efb0696 100644 (file)
@@ -26,6 +26,7 @@
 #include "gettext.h"
 #include "language.h"
 #include "latexrunparams.h"
+#include "RowList.h"
 
 #include "support/std_sstream.h"
 
index 2a8b930534a313e101c64aecfaaa98aa052ef8a1..815d215e997e6b38e49207b34bf924d685893f5c 100644 (file)
@@ -24,7 +24,7 @@
 
 #include "support/types.h"
 #include "changes.h"
-#include "RowList.h"
+#include "RowList_fwd.h"
 
 #include "support/std_string.h"
 
index 75ee4ee86514fa1d65601e263f48fe1b3146f69d..1a9af53402fb13b8248421bb69b5e8ce13896e25 100644 (file)
@@ -27,6 +27,7 @@
 #include "rowpainter.h"
 #include "lyxrow_funcs.h"
 #include "metricsinfo.h"
+#include "RowList.h"
 
 
 using namespace lyx::support;
index dc4974a2887a5d0ebc6785121c390eace3370172..00cee79417ab56781fc75a7827e06b72379dcfd1 100644 (file)
@@ -33,6 +33,7 @@
 #include "paragraph_funcs.h"
 #include "rowpainter.h"
 #include "lyxrow_funcs.h"
+#include "RowList.h"
 
 #include "insets/insettext.h"
 
index 3adfdbbba7428d9552bab03c4c618b8afb0c22f4..39df99f560e1f235ec887eecc1338e1696f9aac4 100644 (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"
index 94b988f437e2ec9273685d8dc1e193998b4f9b2f..99b05090e5981121df04c041607325f50d829a8b 100644 (file)
@@ -38,6 +38,7 @@
 #include "insets/insetnewline.h"
 #include "undo_funcs.h"
 #include "text_funcs.h"
+#include "RowList.h"
 
 #include <clocale>