]> git.lyx.org Git - features.git/blob - src/support/lyxmanip.h
change to use ostreams instead of string when writing files. fiddling with insettext...
[features.git] / src / support / lyxmanip.h
1 // -*- C++ -*-
2 #ifndef LYX_MANIP_H
3 #define LYX_MANIP_H
4
5 #include <iomanip>
6
7 ///
8 inline
9 ostream & newlineAndDepth_helper(ostream & s, int n)
10 {
11         return s << '\n' << string(n, ' ');
12 }
13 ///
14 inline
15 omanip<int> newlineAndDepth(int n)
16 {
17         return omanip<int>(newlineAndDepth_helper, n);
18 }
19
20 #endif