Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | Throbber animation is never displayed | ||
---|---|---|---|
Product: | App Dev | Reporter: | hanya <hanya.runo> |
Component: | api | Assignee: | Ariel Constenla-Haile <arielch> |
Status: | CLOSED FIXED | QA Contact: | |
Severity: | Normal | ||
Priority: | P3 | CC: | arielch, issues |
Version: | 3.3.0 or older (OOo) | ||
Target Milestone: | 4.0.0 | ||
Hardware: | PC | ||
OS: | All | ||
Issue Type: | DEFECT | Latest Confirmation in: | --- |
Developer Difficulty: | --- | ||
Attachments: |
(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 Accepted. Started. Images are not in the zip file because they are not on the vcl image list (yes, images need to be in image list files in order to get zipped). These images are not in the image list, because the file vcl/source/src/throbber.src is not processed at all. It has to be included in vcl/AllLangResTarget_vcl.mk. Once included, the file is processed, but the images are not in the image list file: throbber.src uses the wrong object (a Resource for each set of images), but only ImageList's or Bitmap's end up on an image list file. Once fixed this using the right object to include the images in image list files, there is another issue: images cannot be located by the resource compiler. Actually, they are in default_images/shared default_images/highcontrast/shared The resource compiler searches in %MODULE% and in %GLOBALRES% and can't find them, for example: vcl/hicontrast/shared/spinner-64-01.png res/hicontrast/shared/spinner-64-01.png Solution: the images cannot be in the top level directory, they must be inside res/ or vcl/ Changing the subject to reflect the issue implications: there is no Throbber displayed in any AOO dialog, for example: * Menu "Help" - "Check for Updates...". In "Status", under "Checking" there should be a Throbber running. * Menu "Tools" - "Extension Manager...", on the "Extension Manager" select "Check for Updates...". There should be a Throbber running on the upper right corner next to "Checking..." Created attachment 77584 [details]
Writer document with macros and dialogs to test the Throbber control
Committed revision 1342557 and revision 1342560 Created attachment 77597 [details]
Writer document with macros and dialogs to test the Throbber control with the deafult image sets
Created attachment 77599 [details]
Zipped folder with document and images to test the Throbber with custom image sets
Unzip the folder. It contains:
- i119402_XAnimation.odt - a Writer document with macros and dialogs
- spinner - a folder with images
- butterfly - a folder with images
Do not move the images folders, because the macros rely on the folders being relative to the document in order to work.
|
Created attachment 77579 [details] Example code to use SpinningProgressControlModel css.awt.SpinningProgressControlModel is introduced to replace css.awt.UnoControlThrobber and its model on 3.4. But it seems not work well, nothing shown for the position of the control. When I use css.awt.AnimatedImagesControl and css.awt.AnimatedImagesControlModel to show animated images, it works well. But I replace AnimatedImagesControlModel with SpinningProgressControlModel, nothing shown. The attached document includes the macro to use SpinningProgressControlModel. - Open the attached document. - Push "push" button on the document. -> dialog shown. - spinning control should be shown at the left top corner of the dialog -> nothing - spinning animation created with AnimatedImagesControlModel is shown in the dialog. - Push "Animated" button -> shown one works well. It seems this problem is caused by lacking of spinning images from images.zip.