incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 119402] css.awt.SpinningProgressControlModel do not work well
Date Wed, 23 May 2012 05:35:52 GMT
https://issues.apache.org/ooo/show_bug.cgi?id=119402

Ariel Constenla-Haile <arielch@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |arielch@apache.org

--- Comment #1 from Ariel Constenla-Haile <arielch@apache.org> ---
(In reply to comment #0)
> It seems this problem is caused by lacking of spinning images from
> images.zip.

You are right: those images are not on the zip file, and the GraphicProvider
(used in the toolkit code to retrieve the images, fails):

Sub Main
    Dim oGraphicProvider as Object
    oGraphicProvider = CreateUnoService("com.sun.star.graphic.GraphicProvider")

    oGraphic = GetGraphic(oGraphicProvider,
"private:graphicrepository/toolkit/tk/spinner03-grey_11.png")
    oGraphic = GetGraphic(oGraphicProvider,
"private:graphicrepository/shared/spinner-32-01.png")
End Sub

Function GetGraphic(oProvider as Object, sURL$)
    Dim aMediaProps(0) as new com.sun.star.beans.PropertyValue
    aMediaProps(0).Name  = "URL"
    aMediaProps(0).Value = sURL
    GetGraphic = oProvider.queryGraphic(aMediaProps)
End Function

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

Mime
View raw message