From: Lars Gullik Bjønnes Date: Thu, 26 Oct 2000 17:29:55 +0000 (+0000) Subject: reintrodoce operator<< fix X-Git-Tag: 1.6.10~21871 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a235c8b10f71c3d77930ba0fb3270991b1134203;p=lyx.git reintrodoce operator<< fix git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1162 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/ButtonPolicies.h b/src/frontends/ButtonPolicies.h index bc416a5287..45a12769ae 100644 --- a/src/frontends/ButtonPolicies.h +++ b/src/frontends/ButtonPolicies.h @@ -23,6 +23,8 @@ #include #include +#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.