lyx_mirror/src/support/lyxmanip.h
Lars Gullik Bjønnes f7927c40c8 compile fixes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5040 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-20 17:31:23 +00:00

30 lines
395 B
C++

// -*- C++ -*-
#ifndef LYX_MANIP_H
#define LYX_MANIP_H
#include "support/LOstream.h"
///
struct NewLineAndDepth_ {
int depth_;
};
///
inline
NewLineAndDepth_ newlineAndDepth(int n)
{
NewLineAndDepth_ nlad_;
nlad_.depth_ = n;
return nlad_;
}
///
inline
std::ostream & operator<<(std::ostream & os, NewLineAndDepth_ const & nlad_)
{
os << string(nlad_.depth_, ' ');
return os;
}
#endif