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

Jan Holesovsky <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---
            Summary|LibreOffice should not      |Do not generate thumbnail
                   |generate thumbnail on load  |on load of a document if
                   |of a document               |not necessary
     Ever confirmed|0                           |1

--- Comment #5 from Jan Holesovsky <[email protected]> ---
Instead of the "avoid it always" approach, I've added a property value
"AvoidRecentDocs" that (when set to true), does not add the document to the
recent documents list, and consequently avoids creation of the thumbnail.

I guess this is useful in many cases when LibreOffice is controlled externally,
and performance is important.

Use like (see the "AvoidRecentDocs" part):

Dim Doc As Object
Dim FileProperties(2) As New com.sun.star.beans.PropertyValue
Dim Url As String

Url = "file:///tmp/test-csv.csv"
FileProperties(0).Name = "FilterName"
FileProperties(0).Value ="Text - txt - csv (StarCalc)"
FileProperties(1).Name = "FilterOptions"
FileProperties(1).value  = "44,34,0,1"
FileProperties(2).Name = "AvoidRecentDocs"
FileProperties(2).value  = true

Doc = StarDesktop.loadComponentFromURL(Url, "_blank", 0, FileProperties())

-- 
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