]> git.lyx.org Git - lyx.git/blobdiff - src/DepTable.C
split LyXText::rowlist_ into individual Paragraph::rows_ chunks
[lyx.git] / src / DepTable.C
index 8e0997f8cef643a55594c7430c86eb86bbfdae82..90849bb0d770ca7e2e5687a8abadcda0eab15609 100644 (file)
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
 #include "DepTable.h"
 #include "debug.h"
 
@@ -37,6 +33,8 @@
 using std::time;
 #endif
 
+using namespace lyx::support;
+
 using std::make_pair;
 using std::ofstream;
 using std::ifstream;
@@ -61,7 +59,7 @@ void DepTable::insert(string const & fi, bool upd)
                di.crc_prev = 0;
                if (upd) {
                        lyxerr[Debug::DEPEND] << " CRC..." << flush;
-                       di.crc_cur = lyx::sum(f);
+                       di.crc_cur = sum(f);
                        lyxerr[Debug::DEPEND] << "done." << endl;
                        struct stat f_info;
                        stat(fi.c_str(), &f_info);
@@ -94,7 +92,7 @@ void DepTable::update()
                        } else {
                                di.crc_prev = di.crc_cur;
                                lyxerr[Debug::DEPEND] << itr->first << " CRC... ";
-                               di.crc_cur = lyx::sum(itr->first);
+                               di.crc_cur = sum(itr->first);
                                lyxerr[Debug::DEPEND] << "done";
                        }
                } else {
@@ -238,7 +236,7 @@ void DepTable::write(string const & f) const
 }
 
 
-void DepTable::read(string const & f)
+bool DepTable::read(string const & f)
 {
        ifstream ifs(f.c_str());
        string nome;
@@ -256,4 +254,5 @@ void DepTable::read(string const & f)
                }
                deplist[nome] = di;
        }
+       return deplist.size();
 }