[Libreoffice-bugs] [Bug 103278] supportsService("com.sun.star.text.TextField.Input")

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Nov 16 13:23:08 UTC 2017


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

--- Comment #18 from christer.bergstrom.se at gmail.com ---
Hi,

Today, I've tested this again:

Help-About:
Version: 5.4.3.2 (x64)
Build ID: 92a7159f7e4af62137622921e809f8546db437e5
CPU threads: 4; OS: Windows 6.0; UI render: standard; 
Språkinställning: sv-SE (sv_SE); Calc: group


With OpenOffice it works fine - just as it always has. Am using the exact same
Word template (.dot). It has two textfields. Running on different machines
though (as you can't have both OpenOffice and LibreOffice installed on the same
machine).

Libre:
oFieldsEnum = oDocument.getTextFields().createEnumeration()
Well, it stops here. oFieldsEnum  is invalid.

OpenOffice:
oFieldsEnum = oDocument.getTextFields().createEnumeration()
while oFieldsEnum.hasMoreElements()
  oElement = oFieldsEnum.nextElement()
...
...  
  // Fails in LO but works in OpenOffice. 
  oElement.supportsService("com.sun.star.text.TextField.Input")
  // Also fails (well, logical I guess since the above line fails too...)
  oElement.getPropertyValue("Hint")
...
Passes with flying colors.


Kind regards
Christer

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20171116/0c548df2/attachment.html>


More information about the Libreoffice-bugs mailing list