1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#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() );
}