Apache OpenOffice (AOO) Bugzilla – Issue 117639
PageStyle property "isInUse" is always true
Last modified: 2014-01-02 13:14:17 UTC
PageStyle property "IsInUse" does not work for spreadsheets. It's allway "true". seems to work in writer. steps to reproduce: - open new spreadsheet - add a new pagestyle - run macro -> "IsInUse" is always true Please see also: CellStyle Property "IsInUse" does not work after deleting Rows/Columns in a spreadsheet http://openoffice.org/bugzilla/show_bug.cgi?id=15889 -- OPTION EXPLICIT Sub TestPageStyleInUse() Dim oPStyle as Object Dim oDocument as Object Dim i as Integer Dim sMsg as String oDocument = ThisComponent oPStyle = oDocument.StyleFamilies.getByName("PageStyles") For i = 0 To oPStyle.getCount()-1 sMsg = sMsg & oPStyle.getByIndex(i).getName() & Chr(9) & " inUse: " & oPStyle.getByIndex(i).isInUse &_ Chr(9) & " userDefined: " & oPStyle.getByIndex(i).isUserDefined & Chr(13) Next i MsgBox sMsg End Sub
getting rid of value "enhancement" for field "severity". For enhancement the field "issue type" shall be used.
Confirmed with AOO410m1(Build:9750) - Rev. 1552994 Rev.1552994 Win 7