00001 // 00002 // aegis - project change supervisor 00003 // Copyright (C) 1999, 2002, 2005, 2006, 2008 Peter Miller 00004 // 00005 // This program is free software; you can redistribute it and/or modify 00006 // it under the terms of the GNU General Public License as published by 00007 // the Free Software Foundation; either version 3 of the License, or 00008 // (at your option) any later version. 00009 // 00010 // This program is distributed in the hope that it will be useful, 00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 // GNU General Public License for more details. 00014 // 00015 // You should have received a copy of the GNU General Public License 00016 // along with this program. If not, see 00017 // <http://www.gnu.org/licenses/>. 00018 // 00019 00020 #ifndef LIBAEGIS_WIDE_OUTPUT_UNEXPAND_H 00021 #define LIBAEGIS_WIDE_OUTPUT_UNEXPAND_H 00022 00023 #include <libaegis/wide_output.h> 00024 00030 class wide_output_unexpand: 00031 public wide_output 00032 { 00033 public: 00037 virtual ~wide_output_unexpand(); 00038 00039 private: 00049 wide_output_unexpand(const wide_output::pointer &deeper, int tabwidth); 00050 00051 public: 00061 static pointer open(const wide_output::pointer &deeper, int tabwidth = 8); 00062 00063 protected: 00064 // See base class for documentation. 00065 nstring filename(); 00066 00067 // See base class for documentation. 00068 int page_width(); 00069 00070 // See base class for documentation. 00071 int page_length(); 00072 00073 // See base class for documentation. 00074 const char *type_name() const; 00075 00076 // See base class for documentation. 00077 void write_inner(const wchar_t *data, size_t len); 00078 00079 // See base class for documentation. 00080 void flush_inner(); 00081 00082 // See base class for documentation. 00083 void end_of_line_inner(); 00084 00085 private: 00086 wide_output::pointer deeper; 00087 int icol; 00088 int ocol; 00089 int tab_width; 00090 00094 wide_output_unexpand(); 00095 00099 wide_output_unexpand(const wide_output_unexpand &); 00100 00104 wide_output_unexpand &operator=(const wide_output_unexpand &); 00105 }; 00106 00107 #endif // LIBAEGIS_WIDE_OUTPUT_UNEXPAND_H