home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / next / programm / 8248 < prev    next >
Encoding:
Text File  |  1993-01-21  |  1.9 KB  |  45 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!psinntp!juliet!news
  3. From: drew@fnbc.com (Drew Davidson)
  4. Subject: Re: Printing headers and footers with the Text object
  5. Message-ID: <1993Jan21.155448.22515@fnbc.com>
  6. Sender: news@fnbc.com
  7. Reply-To: drew@fnbc.com
  8. Organization: First National Bank Of Chicago, Chicago IL, USA
  9. References: <C16LKo.KG7@oceania.com>
  10. Distribution: na
  11. Date: Thu, 21 Jan 93 15:54:48 GMT
  12. Lines: 31
  13.  
  14. In article <C16LKo.KG7@oceania.com> chris (Chris Larson) writes:
  15. > As described, I need to be able to take a Text object and print it with  
  16. headers and  
  17. > footers.  The Text (View) object gives you some access to the PS stream that  
  18. is being  
  19. > created (via the beginSetup, endSetup, etc. methods), and I need to to  
  20. determine if  
  21. > headers and footers can be inserted into the PS stream using this approach.
  22. > I have to believe someone has tried this or thought about it. Any takers?
  23.  
  24. The way that I would solve this is to make a View subclass that has the Text as  
  25. a subview.  The view that you create should be the size of the current paper  
  26. type selected, etc. (see Draw example code for how to get the PrintInfo object  
  27. to obtain this info), make room for your headers and footers, then install the  
  28. Text as a subview.  Voila!
  29.  
  30.  
  31. > Chris
  32. > -- 
  33. > Chris Larson  <==>  chris@oceania.com  <==>  NeXT Mail is cool
  34. > Oceania Health Care Systems                      Palo Alto, CA
  35. > The Software Ranch                               Park City, UT
  36.  
  37. --
  38. +--------------------------------+-------------------------------------------+
  39. |        Drew  Davidson          | "Never ask a programmer if he'll have     |
  40. |         Software Guy           |  another cup of coffee because it's       |
  41. | First National Bank of Chicago |  nobody's damn business how much he's     |
  42. |     drew@fnbc.com  (NeXTmail)  |  already had!"       - me                 |
  43. +--------------------------------+-------------------------------------------+
  44.