Posted on 2010-01-26 08:25:11.238097-08 by ads in response to 12243
Re: 2.0x --> 2.1x user field behavior change
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:
&lt;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-&gt;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
Direct Responses: 12248 | 12252 | Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.