]> git.lyx.org Git - lyx.git/blobdiff - src/insets/inset.C
Add support for compilers which do not have cname headers
[lyx.git] / src / insets / inset.C
index 1fe5599af21ab5cfcef15ddab545deb3ff27c1d8..8216147c35c0e6492cf74b230a923a48fec57769 100644 (file)
@@ -15,7 +15,7 @@
 #endif
 
 #include "lyxinset.h"
-#include "error.h"
+#include "debug.h"
 #include "support/lstrings.h"
 
 /* Insets default methods */
@@ -71,34 +71,34 @@ LyXFont Inset::ConvertFont(LyXFont font)
 
 void UpdatableInset::InsetButtonPress(int x, int y, int button)
 {
-       lyxerr.debug(string("Inset Button Press x=")+ tostr(x) +
-                     ", y=" + tostr(y) + ", button=" + tostr(button));
+       lyxerr.debug() << "Inset Button Press x=" << x
+                      << ", y=" << y << ", button=" << button << endl;
 }
 
 
 void UpdatableInset::InsetButtonRelease(int x, int y, int button)
 {
-       lyxerr.debug(string("Inset Button Release x=")+ tostr(x) +
-                     ", y=" + tostr(y) + ", button=" + tostr(button));
+       lyxerr.debug() << "Inset Button Release x=" << x
+                      << ", y=" << y << ", button=" << button << endl;
 }
 
 
 void UpdatableInset::InsetKeyPress(XKeyEvent *)
 {
-       lyxerr.debug("Inset Keypress");
+       lyxerr.debug() << "Inset Keypress" << endl;
 }
 
 
 void UpdatableInset::InsetMotionNotify(int x, int y, int state)
 {
-       lyxerr.debug(string("Inset Motion Notify x=")+ tostr(x) +
-                     ", y=" + tostr(y) + ", state=" + tostr(state));
+       lyxerr.debug() << "Inset Motion Notify x=" << x
+                      << ", y=" << y << ", state=" << state << endl;
 }
 
 
 void UpdatableInset::InsetUnlock()
 {
-       lyxerr.debug("Inset Unlock", Error::ANY);
+       lyxerr.debug() << "Inset Unlock" << endl;
 }