| 1 | /* AbiWord |
| 2 | * Copyright (C) 2004 David Bolack |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU General Public License |
| 6 | * as published by the Free Software Foundation; either version 2 |
| 7 | * of the License, or (at your option) any later version. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License |
| 15 | * along with this program; if not, write to the Free Software |
| 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
| 17 | * 02110-1301 USA. |
| 18 | */ |
| 19 | |
| 20 | |
| 21 | #ifndef IE_EXP_PASSEPARTOUT_H |
| 22 | #define IE_EXP_PASSEPARTOUT_H |
| 23 | |
| 24 | #include "ie_exp.h" |
| 25 | #include "pl_Listener.h" |
| 26 | #include "ut_wctomb.h" |
| 27 | |
| 28 | class PD_Document; |
| 29 | |
| 30 | // The exporter/writer for Plain Passepartout Files. |
| 31 | |
| 32 | class IE_Exp_Passepartout_Sniffer : public IE_ExpSniffer |
| 33 | { |
| 34 | friend class IE_Exp; |
| 35 | |
| 36 | public: |
| 37 | IE_Exp_Passepartout_Sniffer (const char * name); |
| 38 | virtual ~IE_Exp_Passepartout_Sniffer () {} |
| 39 | |
| 40 | UT_Confidence_t supportsMIME (const char * szMIME); |
| 41 | |
| 42 | virtual bool recognizeSuffix (const char * szSuffix); |
| 43 | virtual bool getDlgLabels (const char ** szDesc, |
| 44 | const char ** szSuffixList, |
| 45 | IEFileType * ft); |
| 46 | virtual UT_Error constructExporter (PD_Document * pDocument, |
| 47 | IE_Exp ** ppie); |
| 48 | }; |
| 49 | |
| 50 | #endif /* IE_EXP_PASSEPARTOUT_H */ |