1 // IOstreamDasherEdit.h
2 // (c) 2003 Yann Dirson
3 // Derived from GtkDasherEdit.h
4 // (c) 2002 Philip Cowans
6 #ifndef IOSTREAM_DASHER_EDIT_H
7 #define IOSTREAM_DASHER_EDIT_H
11 #include "DasherTypes.h"
12 #include "DasherInterface.h"
18 #define ICONV_CONST const
21 using namespace Dasher
;
23 class IOstreamDasherEdit
:public Dasher::CDashEditbox
{
25 IOstreamDasherEdit(CDasherInterface
* _interface
, std::ostream
* os
= &std::cout
);
26 ~IOstreamDasherEdit();
29 void get_new_context(std::string
& str
, int max
);
31 void output(symbol Symbol
);
32 void flush(symbol Symbol
);
36 void SetEncoding(Opts::FileEncodingFormats Encoding
);
37 void SetFont(std::string Name
, long Size
);
38 bool SaveAs(const std::string filename
, bool a
);
39 bool Save(bool a
= false);
40 bool Open(const std::string filename
);
42 void TimeStampNewFiles(bool Value
);
46 void set_display_encoding(int _enc
);
50 CDasherInterface
*interface
;
52 std::ostream
* outstream
;