https://bugs.documentfoundation.org/show_bug.cgi?id=95173
Bug ID: 95173
Summary: Progress Bar Dialog not working correctly
Product: LibreOffice
Version: 5.0.2.2 release
Hardware: x86 (IA32)
OS: Windows (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: LibreOffice
Assignee: [email protected]
Reporter: [email protected]
Created attachment 119742
--> https://bugs.documentfoundation.org/attachment.cgi?id=119742&action=edit
Demo of problem with Progress Bar
The attachment ProgressBarTest.ods contains a Progress Bar dialog (dialog1).
This can be called by an embedded Basic macro and also an embedded Python
script.
There are two problems with LibreOffice 5.0
Using the basic macro, the progress bar essentially works, but it only shows
the progress bar AT the current value. Previous versions of LibreOffice (and
OpenOffice) show the progress bar filled in FROM zero TO the current value.
Using the Python script, the progress bar does not show at all, although the
dialog does display. Previous versions of LibreOffice and OpenOffice do display
the progress bar.
I wonder if this bug is related to a similar bug I reported recently with the
Status Bar: https://bugs.documentfoundation.org/show_bug.cgi?id=94856
There is an additional problem with the Python script which is evident with all
versions of LibreOffice and OpenOffice.... the background of the
dialog/progressbar is transparent. Using the Basic macro, the background is
correctly shown as light blue.
The Python script is shown here:
import time
import uno
import unohelper
def PythonProgressBar():
oDoc = XSCRIPTCONTEXT.getDocument()
psm = uno.getComponentContext().ServiceManager
dp = psm.createInstanceWithArguments("com.sun.star.awt.DialogProvider",
(oDoc,) )
oDlg =
dp.createDialog("vnd.sun.star.script:Standard.Dialog1?location=document")
oProgressBarModel = oDlg.getModel().getByName("ProgressBar1")
oProgressBarModel.setPropertyValue("ProgressValueMin", 0)
oProgressBarModel.setPropertyValue("ProgressValueMax", 100)
oDlg.setVisible(True)
for i in range(0,100,10):
oDlg.Title = "Progress Bar " + str(i)
oProgressBarModel.setPropertyValue("ProgressValue", i)
time.sleep(1)
oDlg.dispose()
--
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