/*
 * ************************************************************************************************************
 * Author: Marcin Załęczny
 * Copyright (C)2011 Marcin Załęczny <mzaleczny@hotmail.com>
 * License: The GNU Lesser General Public License, version 3.0 (LGPLv3)
 * Library Name: mzstdblankets
 * Version: 1.00
 * First release date:   2011-02-24
 * Current release date: 2011-03-04
 *
 *
 * This file is part of mzstdblankets library
 * 
 * mzstdblankets library is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * mzstdblankets library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 * ************************************************************************************************************
 */

#ifndef __MZSTDBLANKETS_TRANSFER_FORM_H__
#define __MZSTDBLANKETS_TRANSFER_FORM_H__

#include "mzstdblanketsCommon.h"
#include "mzObject.h"
#include "mzString.h"
#include "mzCanvas.h"

#define     TRANSFER_TYPE_NONE          0

class DECLSPEC_MZSTDBLANKETS 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 receiverBank, CString amount, CString senderAccount,
                            CString sender, CString sender2, CString title, CString title2,
                            CString kasPlanSymbol, CString amountByWords);
    virtual WINAPI ~CTransferForm();    
    virtual VOID WINAPI draw(CCanvas* canvas, CString fontName, float pageWidth, float pageHeight, float margin = 0, float blanketSpacing = 0, float thickLine = 2.0, float thinLine = 1.0) { return; }
protected:
    float _blanketWidth;
    float _blanketHeight;
    float _topMargin;
    float _leftMargin;
    LONG _thinLine;
    LONG _thickLine;
    LONG _lrTextMargin;
    LONG _tbTextMargin;

    VOID WINAPI _commonInit();
};

#endif
