MyPrintJob.cpp 754 Bytes
#include "stdafx.h"
#include "MyPrintJob.h"
#include <algorithm>
#include "unit_headerpage.h"
#include "unit_table1.h"


MyPrintJob::MyPrintJob(void)
{
}


MyPrintJob::~MyPrintJob(void)
{
}

// ӡ
void MyPrintJob::OnPrint()
{
// 	IndexUnit unitIndex(this);
// 	GSELECT_PJINDEXTREE(&unitIndex.m_pTree);

	// ҳ
// 	HeaderPage unitHeaderPage(this);
// 	unitHeaderPage.Print();

	// 
	Table1Unit unitTable1(this);
	unitTable1.Print();

}

void MyPrintJob::ClearNotes()
{
	m_NoteInfos.clear();
}

void MyPrintJob::AddNotes( vector<CPDFNoteInfo> noteInfos )
{
	m_NoteInfos.reserve(m_NoteInfos.size() + noteInfos.size()); // commenters are probably right about this
	m_NoteInfos.insert( m_NoteInfos.end(), noteInfos.begin(), noteInfos.end() );
}