filters
csvexportdialog.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef CSVEXPORTDIALOG_H
00022 #define CSVEXPORTDIALOG_H
00023
00024 #include <kdialogbase.h>
00025
00026 class ExportDialogUI;
00027 class QValidator;
00028
00029 namespace KSpread
00030 {
00031 class Map;
00032 }
00033
00034 class CSVExportDialog : public KDialogBase
00035 {
00036 Q_OBJECT
00037 public:
00038 CSVExportDialog(QWidget * parent);
00039 ~CSVExportDialog();
00040
00041 QChar getDelimiter() const;
00042 QChar getTextQuote() const;
00043 bool exportSheet( QString const & sheetName ) const;
00044 bool printAlwaysSheetDelimiter() const;
00045 QString getSheetDelimiter() const;
00046 bool exportSelectionOnly() const;
00047
00048 void fillSheet( KSpread::Map * map );
00049 QString getEndOfLine(void) const;
00050 QTextCodec* getCodec(void) const;
00051
00052 private:
00053 void loadSettings();
00054 void saveSettings();
00055 ExportDialogUI * m_dialog;
00056
00057 QValidator* m_delimiterValidator;
00058 QString m_delimiter;
00059 QChar m_textquote;
00060
00061 private slots:
00062 void slotOk();
00063 void slotCancel();
00064
00065 void returnPressed();
00066 void delimiterClicked( int id );
00067 void textChanged ( const QString & );
00068 void textquoteSelected( const QString & mark );
00069 void selectionOnlyChanged( bool );
00070 };
00071
00072 #endif
|