PrintDocument.cs 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. //
  2. // System.Drawing.PrintDocument.cs
  3. //
  4. // Author:
  5. // Dennis Hayes ([email protected])
  6. //
  7. // (C) 2002 Ximian, Inc
  8. //
  9. using System;
  10. namespace System.Drawing.Printing {
  11. /// <summary>
  12. /// Summary description for PrintDocument.
  13. /// </summary>
  14. public class PrintDocument{// : Component {
  15. private PageSettings defaultpagesettings;
  16. private string documentname;
  17. //[MonoTODO]
  18. public PrintDocument() {
  19. //FIXME: do we need to init defaultpagesetting, or does pagesettings do that?
  20. documentname = "Document"; //offical default.
  21. }
  22. public PageSettings DefaultPageSettings{
  23. get{
  24. return defaultpagesettings;
  25. }
  26. set{
  27. defaultpagesettings = value;
  28. }
  29. }
  30. /// <summary>
  31. /// Name of the document, not the file!
  32. /// </summary>
  33. public string DocumentName{
  34. get{
  35. return documentname;
  36. }
  37. set{
  38. documentname = value;
  39. }
  40. }
  41. [MonoTODO]
  42. public PrintControler PrintControler{
  43. get{
  44. throw new NotImplementedException ();
  45. }
  46. set{
  47. throw new NotImplementedException ();
  48. }
  49. }
  50. [MonoTODO]
  51. public PrinterSettings PrinterSettings{
  52. get{
  53. throw new NotImplementedException ();
  54. }
  55. set{
  56. throw new NotImplementedException ();
  57. }
  58. }
  59. public void Print(){
  60. throw new NotImplementedException ();
  61. }
  62. public override string ToString(){
  63. throw new NotImplementedException ();
  64. }
  65. [MonoTODO]
  66. protected virtual void OnBeginPrint(PrintEventArgs e){
  67. //fire the event
  68. }
  69. [MonoTODO]
  70. protected virtual void OnEndPrint(PrintEventArgs e){
  71. //fire the event
  72. }
  73. [MonoTODO]
  74. protected virtual void OnPrintPage(PrintEventArgs e){
  75. //fire the event
  76. }
  77. [MonoTODO]
  78. protected virtual void OnQueryPageSettings(PrintEventArgs e){
  79. //fire the event
  80. }
  81. [MonoTODO]
  82. protected virtual void OnBeginPaint(PrintEventArgs e){
  83. //fire the event
  84. }
  85. public event PrintEventHandler BeginPrint;
  86. public event PrintEventHandler EndPrint;
  87. public event PrintEventHandler PrintPage;
  88. public event PrintEventHandler QuerypageSettings;
  89. }
  90. }