https://bugs.documentfoundation.org/show_bug.cgi?id=84146

--- Comment #14 from Eike Rathke <er...@redhat.com> ---
Having taken a look at this and been trying: it makes no sense to display text
content with the General or any other number format. Instead, when the input is
not convertible to a number or date+time the Text format should be forced.

Reason is, saving the field to file a text:user-field-decl can be _either_ a
office:value-type="string" text field with a string-value, _or_ an
office:value-type="float" numeric field with value. While text:user-field-get
theoretically could have a number style:data-style-name to a string text field
applied and ignore it (then why even bother having the style), most
implementations presumably would not handle that. Forcing an
office:value-type="string" text field would be clean.

Writer's field handling isn't quite straight forward not to say convoluted..
someone familiar can debug that into existence..
Hints are SwUserFieldType, SwSetExpField and SwFieldVarPage::SubTypeHdl() and
all nsSwGetSetExpType::GSE_STRING handling.

Good luck..

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to