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

--- Comment #18 from supp...@think-cell.com ---
Verified that problem is still present in
master~2016-05-20_05.45.40_LibreOfficeDev_5.2.0.0.alpha1_Win_x86.msi

I wanted to clarify a detail in addition to my previous comment #11 and the
example file attached there, which will help to understand the behavior of
LibreOffice. I am also attaching a new example file to demonstrate, 
"LibreOffice #97083 - think-cell example (2).pptx".

As explained in comment #11, think-cell uses <fld> text fields for some labels.
Namely for labels which think-cell must be able to update when the chart's
datasheet (which is a separate Excel process) changes. (If a label contains
static text, e.g., after a user types into the label directly in PowerPoint,
think-cell uses simple PowerPoint text, and then the problem described in this
bug report does not occur).

However there is a little twist regarding the <fld> field which was not
mentioned in comment #11:

In the old binary ppt file format, full-featured text fields do not exist.
Instead, ppt files have RTFDateTimeMCAtom fields as described in
https://msdn.microsoft.com/en-us/library/dd925029%28v=office.12%29.aspx?f=255&MSPPError=-2147217396
For RTFDateTimeMCAtom the field type is limited to datetime. Hence, to use
RTFDateTimeMCAtom in ppt files for think-cell's purpose, the label text has to
be shoehorned into RTFDateTimeMCAtom format.
RTFDateTimeMCAtom is also limited to 64 characters, which leaves 57 characters
available for label text after subtracting control characters needed by
think-cell.

Current PowerPoint versions can of course still save files in ppt format.
think-cell maintains compatibility in this instance as far as possible.
Therefore, think-cell continues to use the approach that is compatible with
RTFDateTimeMCAtom if label text is shorter than 58 characters.

Hence, in the pptx file format two different kinds of <fld> fields may occur
for think-cell labels:
(1) If label text is shorter than 58 characters: <fld> type is datetime with
some encoding appended. (I.e., the approach compatible with RTFDateTimeMCAtom). 
(2) If label text is 58 characters or longer: think-cell uses the capabilities
provided by the Office Open XML ECMA spec as quoted in comment #11, and defines
its own type. 

In either case however, the label text to display is available within the
<a:t></a:t> tags within the <fld>. LibreOffice displays this text just fine in
case (2), but currently does not in case (1).

As LibreOffice does not need to care about actually updating these fields and -
I suppose - does not care about ppt format, all it would have to do in pptx
files is to recognize case (1) and display the <a:t></a:t> text just like it
does in case (2).

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to