]> git.lyx.org Git - lyx.git/blobdiff - src/DepTable.C
Added html export for LinuxDoc and DocBook. LinuxDoc import now available in file...
[lyx.git] / src / DepTable.C
index 95978313517968c4332b5b4cb04a0186e66f57ea..60b6e65e9734d0378d22fc07ba682066bf00ddfb 100644 (file)
@@ -2,10 +2,10 @@
  * ====================================================== 
  * 
  *           LyX, The Document Processor
- *          Copyright (C) 1995 Matthias Ettrich
- *           Copyright (C) 1995-1998 The LyX Team.
+ *          Copyright 1995 Matthias Ettrich
+ *           Copyright 1995-2000 The LyX Team.
  *
- *           This file is Copyright (C) 1996-1998
+ *           This file is Copyright 1996-2000
  *           Lars Gullik Bjønnes
  *
  * ====================================================== 
@@ -50,9 +50,12 @@ void DepTable::update()
                unsigned long one = (*itr).second.second;
                unsigned long two = lyx::sum((*itr).first.c_str());
                (*itr).second = make_pair(one, two);
-               if (lyxerr.debugging()) {
-                       lyxerr << "update: " << (*itr).first << " "
-                              << one << " " << two << endl;
+               if (lyxerr.debugging(Debug::DEPEND)) {
+                       lyxerr << "Update dep: " << (*itr).first << " "
+                              << one << " " << two;
+                       if (one != two)
+                               lyxerr << " +";
+                       lyxerr << endl;
                }
        }
 }
@@ -93,7 +96,6 @@ bool DepTable::extchanged(string const & ext) const
                                return true;
                }
        }
-                    
        return false;
 }
 
@@ -125,7 +127,7 @@ void DepTable::write(string const & f) const
        for (DepList::const_iterator cit = deplist.begin();
             cit != deplist.end();
             ++cit) {
-               if (lyxerr.debugging()) {
+               if (lyxerr.debugging(Debug::DEPEND)) {
                        lyxerr << "Write dep: "
                               << (*cit).first << " "
                               << (*cit).second.first << " "
@@ -145,8 +147,8 @@ void DepTable::read(string const & f)
        unsigned long one = 0;
        unsigned long two = 0;
        while(ifs >> nome >> one >> two) {
-               if (lyxerr.debugging()) {
-                       lyxerr << "read dep: "
+               if (lyxerr.debugging(Debug::DEPEND)) {
+                       lyxerr << "Read dep: "
                               << nome << " "
                               << one << " "
                               << two << endl;