Subject: Re: Quick Question
From: Paul Rohr (paul@abisource.com)
Date: Fri Aug 03 2001 - 18:36:59 CDT
At 07:01 PM 8/3/01 -0500, William Lachance wrote:
>Is there a quick function (perhaps in pd_document somewhere) which allows me
>to test whether a document has at least one paragraph in it (ie: a
>PTX_Block)? Such a function would be very useful for the WordPerfect
>importer, which doesn't format things in the 'xml-way'.
I don't understand why you'd need such a function. The only way sections
and paragraphs get imported into a document is if *you* put them there. If
you're not sure whether you've done so yet or not, keep a boolean around.
;-)
You *do* need to guarantee that even totally empty documents have a single
section and paragraph in them, but there are many easy ways to do so. For
example, see:
IE_Imp_Text::_writeHeader()
What am I missing here?
Paul
This archive was generated by hypermail 2b25 : Fri Aug 03 2001 - 18:29:17 CDT