DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=43883>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43883 Summary: Addition: StyleSheet.numStyles Product: POI Version: unspecified Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: HWPF AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] It is convenient if org.apache.poi.hwpf.model.StyleSheet can tell how many styles it contains. For this, I made a numStyles method: /** * Gets the number of styles in the style sheet. * @return The number of styles in the style sheet. */ public int numStyles() { return _styleDescriptions.length; } This can be used, for example, to list all styles in a document. I use this in a Cocoon generator which gives an somewhat complete XML version of a Word document. This generator will be released as an open source component. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
