namespace lyx {
class TexRow;
-class TexString;
+struct TexString;
/** Wrapper class for odocstream.
///
explicit otexstream(odocstream & os)
: otexrowstream(os), canbreakline_(false),
- protectspace_(false), parbreak_(true), lastchar_(0) {}
+ protectspace_(false), terminate_command_(false),
+ parbreak_(true), lastchar_(0) {}
///
void put(char_type const & c);
///
///
bool protectSpace() const { return protectspace_; }
///
+ void terminateCommand(bool terminate) { terminate_command_ = terminate; }
+ ///
+ bool terminateCommand() const { return terminate_command_; }
+ ///
void lastChar(char_type const & c)
{
parbreak_ = (!canbreakline_ && c == '\n');
///
bool protectspace_;
///
+ bool terminate_command_;
+ ///
bool parbreak_;
///
char_type lastchar_;
char n;
};
+/// Helper structs for terminating a command
+struct TerminateCommand {
+ char n;
+};
+
extern BreakLine breakln;
extern SafeBreakLine safebreakln;
+extern TerminateCommand termcmd;
///
otexstream & operator<<(otexstream &, BreakLine);
///
otexstream & operator<<(otexstream &, SafeBreakLine);
///
+otexstream & operator<<(otexstream &, TerminateCommand);
+///
otexstream & operator<<(otexstream &, odocstream_manip);
///
otexstream & operator<<(otexstream &, TexString);
otexstream & operator<<(otexstream & ots, Type value);
-}
+} // namespace lyx
#endif