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

#include "mzstdxpsCommon.h"
#include "mzXpsPrintTicket.h"

class DECLSPEC_MZSTDXPS CXpsPagePrintTicket : public CXpsPrintTicket {
public:
	WINAPI CXpsPagePrintTicket(INT pagenum, CString xmlVersion = L"1.0", CString xmlEncoding = L"utf-8");
    virtual WINAPI ~CXpsPagePrintTicket();

    // In case of CXpsPagePrintTicket objects, fname is directory. File is saved into file inside this directory:
    // ex. fname/Page[pagenum]_PT.xml
    virtual VOID WINAPI saveXmlFile(CString fname);

    inline INT WINAPI getPagenum() { return this->_pagenum; }
    inline VOID WINAPI setPagenum(INT pagenum) { this->_pagenum = pagenum; }
    
private:
    INT _pagenum;
};

#endif
