]> Shamusworld >> Repos - architektonas/blob - src/base/rs_filtercxf.h
Fixed thumbnail rendering in LibraryWidget and DXF detection.
[architektonas] / src / base / rs_filtercxf.h
1 #ifndef RS_FILTERCXF_H
2 #define RS_FILTERCXF_H
3
4 #include <fstream>
5 #include "rs_filterinterface.h"
6
7 /**
8  * This format filter class can import and export CXF (CAM Expert Font) files.
9  *
10  * @author Andrew Mustun
11  */
12 class RS_FilterCXF: public RS_FilterInterface
13 {
14         public:
15                 RS_FilterCXF();
16                 ~RS_FilterCXF();
17
18                 /**
19                 * @return RS2::FormatCXF.
20                 */
21                 //RS2::FormatType rtti() {
22                 //      return RS2::FormatCXF;
23                 //}
24
25                 /*virtual bool canImport(RS2::FormatType t) {
26                         return (t==RS2::FormatCXF);
27                 }
28
29                 virtual bool canExport(RS2::FormatType t) {
30                         return (t==RS2::FormatCXF);
31                 }*/
32
33                 virtual bool fileImport(Drawing & g, const QString & file, RS2::FormatType /*type*/);
34                 virtual bool fileExport(Drawing & g, const QString & file, RS2::FormatType /*type*/);
35
36                 void stream(std::ofstream & fs, double value);
37 };
38
39 #endif