Re: IsTextLeaf()?

In-reply-to: Your message of Thu, 10 Feb 2000 12:15:42 -0500."
             <59E5CA0D73C5D311AD45009027AA4DE7C0DB2D@usilms03.cai.com> 
> Hi,
> 
> Is it correct to check using:
> 
> (!pave->AbPresentationBox) && pave->AbCanBeModified && pave->AbLeafType ==
> LtText
> 
> instead of:
> 
> (!pave->AbPresentationBox || pave->AbCanBeModified) && pave->AbLeafType ==
> LtText
> 
> ?
> 
> In the current code, some cases such as the dummy element at the end of HR
> or IMG is considered a text leaf using the 2nd line of code. Is that OK or
> not?
> 
> The first line of code will stop that, I think, but it also require
> non-presentation boxes to be modifiable to be considered a text leaf. Is
> this OK?

The 2nd line of code allows us to edit boxes of attribute values (in the 
structure
view for example). These boxes have the status AbPresentationBox but also 
AbCanBeModified.
What is wrong is that dummy element boxes at the end of HR or IMG have the 
status
AbCanBeModified. I'll see that.

  Irene.

Received on Friday, 11 February 2000 03:09:17 UTC