]> git.lyx.org Git - lyx.git/blobdiff - src/support/lyxmanip.h
small changes read ChangeLog
[lyx.git] / src / support / lyxmanip.h
index 9b1bdcd3373d5cb7be5ee13f2ed2d5a4b3df4d49..52dc69692aaf2f9bcf5e900e77a25b2aeb2f2851 100644 (file)
@@ -2,19 +2,28 @@
 #ifndef LYX_MANIP_H
 #define LYX_MANIP_H
 
-#include <iomanip>
+#include "support/LOstream.h"
 
 ///
+struct NewLineAndDepth_ {
+       int depth_;
+};
+
+//
 inline
-ostream & newlineAndDepth_helper(ostream & s, int n)
+NewLineAndDepth_ newlineAndDepth(int n)
 {
-       return s << '\n' << string(n, ' ');
+       NewLineAndDepth_ nlad_;
+       nlad_.depth_ = n;
+       return nlad_;
 }
-///
+
+//
 inline
-omanip<int> newlineAndDepth(int n)
+std::ostream & operator<<(std::ostream & os, NewLineAndDepth_ const & nlad_)
 {
-       return omanip<int>(newlineAndDepth_helper, n);
+       os << string(nlad_.depth_, ' ');
+       return os;
 }
 
 #endif