Return-Path: Delivered-To: apmail-xml-fop-dev-archive@www.apache.org Received: (qmail 56642 invoked from network); 9 Oct 2004 15:55:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Oct 2004 15:55:02 -0000 Received: (qmail 15012 invoked by uid 500); 9 Oct 2004 15:54:56 -0000 Delivered-To: apmail-xml-fop-dev-archive@xml.apache.org Received: (qmail 14981 invoked by uid 500); 9 Oct 2004 15:54:56 -0000 Mailing-List: contact fop-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: fop-dev@xml.apache.org Delivered-To: mailing list fop-dev@xml.apache.org Received: (qmail 14968 invoked by uid 99); 9 Oct 2004 15:54:55 -0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=DNS_FROM_RFC_ABUSE,FROM_ENDS_IN_NUMS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [216.109.118.88] (HELO web60109.mail.yahoo.com) (216.109.118.88) by apache.org (qpsmtpd/0.28) with SMTP; Sat, 09 Oct 2004 08:54:55 -0700 Message-ID: <20041009155453.52119.qmail@web60109.mail.yahoo.com> Received: from [4.249.114.114] by web60109.mail.yahoo.com via HTTP; Sat, 09 Oct 2004 08:54:53 PDT Date: Sat, 9 Oct 2004 08:54:53 -0700 (PDT) From: Glen Mazza Subject: Change parent of FOText from FObj to FONode? To: fop-dev@xml.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Team, FOP's fo.FOText class is used for text nodes (PCDATA) found within the processing stream. For example, with: This sentence is really simple. "This sentence is ", "really", and " simple." become three separate FOText instances. We have this class extending FObj but I would like to have it to extending FONode instead (as it was doing a few years back). FOText is not really a formatting object, so some of the FObj methods (such as getName(), getNameId(), anything involving the propertyList) don't fit for it. Also, we need to retain a getID() in FObj instead of just using getPropertyString(PR_ID) because of this issue, because FOText doesn't have a property list and so gPS() for it causes NPE's to occur. It appears to be a simple switch -- the change of parameter types to about four or five methods total within layout and the RTF library. There *might* be more subtle issues that may result in us not being able to do this, but I don't see anything ATM and in any event the changes here would be easy to undo. Thoughts on/Objections to this? Thanks, Glen