|
Just want to provide some additional information:
The user defined field I'm looking at are in table cells.
With OO::OODoc 2.0x, the content.xml portion of the .sxw file contains:
<text:user-field-decl text:name="my_field"
text:string-value="whatever"
text:value-type="string" />
With OO::OODoc 2.1x, the content.xml contains:
<text:user-field-decl text:name="my_field"
text:string-value=""
table:value="whatever"
text:value-type="string" />
If I explicitly set the 'string-value' attribute, I then see the value when
viewing the .sxw file in Writer:
$element->set_att('text:string-value', q{WHATEVER} );
I'll be digging into the OpenOffice 1.0 file spec for info related to the
above. Could someone confirm that setting 'table:value' when invoking
$doc->userFieldValue( $field_name, $new_value ) is correct behavior?
Thanks,
-Al
|