]> git.lyx.org Git - lyx.git/blob - src/support/lyxmanip.h
fix lyxalgo.h, dra pagebreak with text on line, change the math_deco_search a bit
[lyx.git] / src / support / lyxmanip.h
1 // -*- C++ -*-
2 #ifndef LYX_MANIP_H
3 #define LYX_MANIP_H
4
5 #include <iostream>
6
7 ///
8 struct NewLineAndDepth_ {
9         int depth_;
10 };
11
12 ///
13 inline
14 NewLineAndDepth_ newlineAndDepth(int n)
15 {
16         NewLineAndDepth_ nlad_;
17         nlad_.depth_ = n;
18         return nlad_;
19 }
20 ///
21 inline
22 ostream & operator<<(ostream & os, NewLineAndDepth_ const & nlad_)
23 {
24         os << string(nlad_.depth_, ' ');
25         return os;
26 }
27
28 #endif