2 // System.Drawing.PrintDocument.cs
\r
5 // Dennis Hayes (dennish@Raytek.com)
\r
7 // (C) 2002 Ximian, Inc
\r
11 namespace System.Drawing.Printing {
\r
13 /// Summary description for PrintDocument.
\r
15 public class PrintDocument{// : Component {
\r
16 private PageSettings defaultpagesettings;
\r
17 private string documentname;
\r
20 public PrintDocument() {
\r
21 //FIXME: do we need to init defaultpagesetting, or does pagesettings do that?
\r
22 documentname = "Document"; //offical default.
\r
24 public PageSettings DefaultPageSettings{
\r
26 return defaultpagesettings;
\r
29 defaultpagesettings = value;
\r
33 /// Name of the document, not the file!
\r
36 public string DocumentName{
\r
38 return documentname;
\r
41 documentname = value;
\r
45 public PrintControler PrintControler{
\r
47 throw new NotImplementedException ();
\r
50 throw new NotImplementedException ();
\r
54 public PrinterSettings PrinterSettings{
\r
56 throw new NotImplementedException ();
\r
59 throw new NotImplementedException ();
\r
62 public void Print(){
\r
63 throw new NotImplementedException ();
\r
65 public override string ToString(){
\r
66 throw new NotImplementedException ();
\r
69 protected virtual void OnBeginPrint(PrintEventArgs e){
\r
73 protected virtual void OnEndPrint(PrintEventArgs e){
\r
77 protected virtual void OnPrintPage(PrintEventArgs e){
\r
81 protected virtual void OnQueryPageSettings(PrintEventArgs e){
\r
85 protected virtual void OnBeginPaint(PrintEventArgs e){
\r
88 public event PrintEventHandler BeginPrint;
\r
89 public event PrintEventHandler EndPrint;
\r
90 public event PrintEventHandler PrintPage;
\r
91 public event PrintEventHandler QuerypageSettings;
\r