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

Matthew Francis <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
                 CC|                            |[email protected]
     Ever confirmed|0                           |1

--- Comment #7 from Matthew Francis <[email protected]> ---
Confirmed using the below macro (adapted from AndrewMacro.pdf) - where
/tmp/aaaa is 500,000 x "a", this takes a couple of seconds on a fast machine,
which seems excessive.

Sub DetectDocType()
  Dim oMediaDescr(30) As new com.sun.star.beans.PropertyValue
  Dim s$ : s$ = "com.sun.star.document.TypeDetection"
  Dim oTypeManager

  oMediaDescr(0).Name = "URL"
  oMediaDescr(0).Value = "file:///tmp/aaaa"

  oTypeManager = createUnoService(s$)
  MsgBox oTypeManager.queryTypeByDescriptor(oMediaDescr(), True) 
End Sub


Setting -> NEW

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to