/*
 * ************************************************************************************************************
 * 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: mzstdprint
 * Version: 1.02
 * First release date:   2011-02-03
 * Current release date: 2011-03-04
 *
 *
 * This file is part of mzstdprint library
 * 
 * mzstdprint 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.
 * 
 * mzstdprint 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/>.
 * ************************************************************************************************************
 */

#include "mzPrintTask.h"


CPrintTask::CPrintTask(CString documentName, LONG pageCount) {
    this->setRealClassName(L"CPrintTask");
    this->_abort = FALSE;
    this->_pageCount = pageCount;
    
    this->_printerName = COMMON_EMPTY_STRING;
    this->_hPrinter = NULL;
    this->_devmode = NULL;
    this->_devmodeSize = 0;
    this->_printerDC = NULL;
    this->_printJobId = 0;
    this->_docInfo = NULL;
    
    this->_documentName = documentName;
}

CPrintTask::~CPrintTask() {
}

VOID CPrintTask::setPrinterProperties(WCHAR* printerName, HANDLE hPrinter, BYTE* devmode, DWORD devmodeSize, HDC printerDC,
                    DWORD printJobId, DOCINFO* docInfo) {
    this->_printerName = printerName;
    this->_hPrinter = hPrinter;
    this->_devmode = devmode;
    this->_devmodeSize = devmodeSize;
    this->_printerDC = printerDC;
    this->_printJobId = printJobId;
    this->_docInfo = docInfo;
}
