// ************************************************************************************************************
// Author: Marcin Załęczny
// Release Date: 2010-11-10
// Licence: The GNU Lesser General Public License, version 3.0 (LGPLv3)
// ************************************************************************************************************
#ifndef __MZSTDXPSBLANKETS_TRANSFER_FORM_H__
#define __MZSTDXPSBLANKETS_TRANSFER_FORM_H__

#include "mzstdxpsblanketsCommon.h"
#include "mzObject.h"
#include "mzString.h"
#include "mzXmlNode.h"
#include "mzXpsPackage.h"
#include "mzXpsDocument.h"
#include "mzXpsPage.h"

#define     TRANSFER_TYPE_NONE          0

class DECLSPEC_MZSTDXPSBLANKETS CTransferForm : public CObject {
public:
    INT type;
    CString receiver;
    CString receiver2;
    CString receiverAccount;
    CString receiverBank;
    CString amount;
    CString senderAccount;
    CString sender;
    CString sender2;
    CString title;
    CString title2;
    CString kasPlanSymbol;
    CString amountByWords;
    
    WINAPI CTransferForm(){};
    WINAPI CTransferForm(INT type, CString receiver, CString receiver2, CString receiverAccount, CString amount,
                                    CString senderAccount, CString sender, CString sender2,
                                    CString title, CString title2);
    WINAPI CTransferForm(INT type, CString receiver, CString receiver2, CString receiverAccount, CString receiverBank,
                            CString amount, CString senderAccount, CString sender, CString sender2,
                            CString title, CString title2, CString kasPlanSymbol, CString amountByWords);
    virtual WINAPI ~CTransferForm();
    virtual CString WINAPI toXmlString();
    virtual VOID WINAPI initFromXmlString(WCHAR* data);
    
    virtual CXmlNode* WINAPI generateBlanket(CXpsPackage* xps, CXpsDocument* xpsDoc, CXpsPage* page, CString fontName, float pageWidth, float pageHeight, float paddingTop = 0) { return NULL; }
protected:
    VOID WINAPI _commonInit();
};

#endif
