00001
00009
#if !defined(AFX_COLUMNDATAARRAY_H__C9F6817C_8117_4ADA_BF5D_5E8BB4681324__INCLUDED_)
00010
#define AFX_COLUMNDATAARRAY_H__C9F6817C_8117_4ADA_BF5D_5E8BB4681324__INCLUDED_
00011
00012
#include "ColumnData.h"
00013
00014
#if _MSC_VER > 1000
00015
#pragma once
00016
#endif // _MSC_VER > 1000
00017
00024 class CColumnDataArray :
public CArray<CColumnData, CColumnData&>
00025 {
00026
public:
00027
CColumnDataArray();
00028
virtual ~
CColumnDataArray();
00029
00030
void SetView(LNViewFolder &view);
00031
void SetOption(
const LNNotesSession *session, LPCTSTR szListSplit, LPCTSTR szSplit,
const int nQuote, LPCTSTR szAltSplit, LPCTSTR szAltCrlf);
00032 LNString
ToCSVHeader();
00033 LNString
ToCSVData(LNVFEntry &entry, LNNote ¬e);
00034
00035 BOOL
Save(LNViewFolder & view, LPCTSTR szFilepath);
00036 BOOL
Load(LNViewFolder & view, LPCTSTR szFilepath);
00037
00038
protected:
00039 LNString
ToCSVText(
const LNString &strText, LPCTSTR szSplit,
const int nQuote, LPCTSTR szAltSplit, LPCTSTR szAltCrlf);
00040
00041 LPCTSTR m_szSplit;
00042
int m_nQuote;
00043 LPCTSTR m_szAltSplit;
00044 LPCTSTR m_szAltCrlf;
00045 LPCTSTR m_szListSplit;
00046
const LNNotesSession *m_pSession;
00047 };
00048
00049
#endif // !defined(AFX_COLUMNDATAARRAY_H__C9F6817C_8117_4ADA_BF5D_5E8BB4681324__INCLUDED_)