home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.next.programmer
- Path: sparky!uunet!psinntp!juliet!news
- From: drew@fnbc.com (Drew Davidson)
- Subject: Re: Printing headers and footers with the Text object
- Message-ID: <1993Jan21.155448.22515@fnbc.com>
- Sender: news@fnbc.com
- Reply-To: drew@fnbc.com
- Organization: First National Bank Of Chicago, Chicago IL, USA
- References: <C16LKo.KG7@oceania.com>
- Distribution: na
- Date: Thu, 21 Jan 93 15:54:48 GMT
- Lines: 31
-
- In article <C16LKo.KG7@oceania.com> chris (Chris Larson) writes:
- > As described, I need to be able to take a Text object and print it with
- headers and
- > footers. The Text (View) object gives you some access to the PS stream that
- is being
- > created (via the beginSetup, endSetup, etc. methods), and I need to to
- determine if
- > headers and footers can be inserted into the PS stream using this approach.
- >
- > I have to believe someone has tried this or thought about it. Any takers?
-
- The way that I would solve this is to make a View subclass that has the Text as
- a subview. The view that you create should be the size of the current paper
- type selected, etc. (see Draw example code for how to get the PrintInfo object
- to obtain this info), make room for your headers and footers, then install the
- Text as a subview. Voila!
-
-
- > Chris
- > --
- > Chris Larson <==> chris@oceania.com <==> NeXT Mail is cool
- > Oceania Health Care Systems Palo Alto, CA
- > The Software Ranch Park City, UT
-
- --
- +--------------------------------+-------------------------------------------+
- | Drew Davidson | "Never ask a programmer if he'll have |
- | Software Guy | another cup of coffee because it's |
- | First National Bank of Chicago | nobody's damn business how much he's |
- | drew@fnbc.com (NeXTmail) | already had!" - me |
- +--------------------------------+-------------------------------------------+
-