Issue 117639 - PageStyle property "isInUse" is always true
Summary: PageStyle property "isInUse" is always true
Status: CONFIRMED
Alias: None
Product: Calc
Classification: Application
Component: code (show other issues)
Version: DEV300m104
Hardware: All All
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-01 06:28 UTC by Oliver Brinzing
Modified: 2014-01-02 13:14 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: 4.1.0-dev
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Oliver Brinzing 2011-04-01 06:28:48 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
Comment 1 Oliver-Rainer Wittmann 2012-06-13 12:18:23 UTC
getting rid of value "enhancement" for field "severity".
For enhancement the field "issue type" shall be used.
Comment 2 Edwin Sharp 2014-01-02 13:14:17 UTC
Confirmed with
AOO410m1(Build:9750)  -  Rev. 1552994
Rev.1552994
Win 7