poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r595701 - /poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/model/StyleSheet.java
Date Fri, 16 Nov 2007 15:25:56 GMT
Author: nick
Date: Fri Nov 16 07:25:55 2007
New Revision: 595701

URL: http://svn.apache.org/viewvc?rev=595701&view=rev
Log:
Add method to return the number of styles (bug #43883)

Modified:
    poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/model/StyleSheet.java

Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/model/StyleSheet.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/model/StyleSheet.java?rev=595701&r1=595700&r2=595701&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/model/StyleSheet.java (original)
+++ poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/model/StyleSheet.java Fri Nov 16 07:25:55
2007
@@ -286,6 +286,14 @@
   }
 
   /**
+   * Gets the number of styles in the style sheet.
+   * @return The number of styles in the style sheet.
+   */
+  public int numStyles() {
+      return _styleDescriptions.length;
+  }
+
+  /**
    * Gets the StyleDescription at index x.
    *
    * @param x the index of the desired StyleDescription.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message