]> git.lyx.org Git - lyx.git/commitdiff
reintrodoce operator<< fix
authorLars Gullik Bjønnes <larsbj@gullik.org>
Thu, 26 Oct 2000 17:29:55 +0000 (17:29 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Thu, 26 Oct 2000 17:29:55 +0000 (17:29 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1162 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/ButtonPolicies.h

index bc416a5287f05c066caa3c2fb57b040ee68bc65c..45a12769ae03cdc24397b627be1618f9fe971563 100644 (file)
@@ -23,6 +23,8 @@
 #include <vector>
 #include <boost/utility.hpp>
 
+#include "support/LOstream.h"
+
 /** An abstract base class for button policies.
     A state machine implementation of the various button policies used by the
     dialogs. Only the policy is implemented here.  Separate ButtonController
@@ -158,6 +160,22 @@ public:
 };
 
 
+inline
+std::ostream & operator<<(std::ostream & os, ButtonPolicy::State st)
+{
+       os << int(st);
+       return os;
+}
+
+
+inline
+std::ostream & operator<<(std::ostream & os, ButtonPolicy::SMInput smi)
+{
+       os << int(smi);
+       return os;
+}
+
+
 //--------------------- Actual Policy Classes -----------------------------
 
 /** Ok and Cancel buttons for dialogs with read-only operation.