Re: attributes and properties

From: Martin Sevior <msevior_at_physics.unimelb.edu.au>
Date: Wed Oct 06 2004 - 03:58:12 CEST

On Wed, 2004-10-06 at 10:15, Roman Korchagin wrote:
> Hi,
>
> Can someone please explain the difference between attributes and
> properties in AbiWord source?
>
> I understand how properties are used to represent formatting, but I
> cannot grasp the meaning of separation between attributes and
> properties.
>
> Are properties something like schema or what? If they are schema, why
> PP_PropertyType contains the actual property value?
>

Hi Roman,
         I'm not sure why there is a distinction between the two or
why the original AbiWord developers chose to make the distinction. In
general both are used to encode information about a particular document
structure or piece of the document.

In practice properties are used far more often that attributes.

Both defined via "key:value" pairs.

Within the document model these things are just strings and can be any
set of key-value pairs at all. (lives in src/text/ptbl/xp/*.(h,cpp)

The layout engine interprets the key: value pairs and creates the
document you see from them. (Everything in src/text/fmt/xp/*.(h,cpp) )

Cheers

Martin

> Thanks,
> Roman
>
Received on Wed Oct 6 03:15:50 2004

This archive was generated by hypermail 2.1.8 : Wed Oct 06 2004 - 03:15:50 CEST