I am trying to show the template-name next to current style name on status bar. This code works. It shows the current template name (same as File - Properties - General - Template:) but replace all other items on status bar.
Function ProgressBar
ProgressBar = ThisComponent.CurrentController.StatusIndicator
End Function
Sub StatusText()
Dim sInformation
Dim iLen as Integer
Dim iRest As Integer
sInformation = ThisComponent.getDocumentProperties().TemplateName
iLen=Len(sInformation)
iRest=350-iLen
ProgressBar.start(sInformation+SPACE(iRest),0)
End Sub
I got this code from “Useful Macro Information For OpenOffice.org By Andrew Pitonyak”. It is working, but it does not show any other items on status bar. I need TemplateName next to style name.