From 228abc5322819b0913c57524549f675cec4b0ccf Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Fri, 22 Aug 2014 08:59:25 +0000 Subject: [PATCH] Include the maximum number of Cell Styles in the spreadsheet versions class git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1619710 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/ss/SpreadsheetVersion.java | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/src/java/org/apache/poi/ss/SpreadsheetVersion.java b/src/java/org/apache/poi/ss/SpreadsheetVersion.java index 8030e02283..154e501677 100644 --- a/src/java/org/apache/poi/ss/SpreadsheetVersion.java +++ b/src/java/org/apache/poi/ss/SpreadsheetVersion.java @@ -36,10 +36,11 @@ public enum SpreadsheetVersion { *
  • The total number of available rows is 64k (2^16)
  • *
  • The maximum number of arguments to a function is 30
  • *
  • Number of conditional format conditions on a cell is 3
  • + *
  • Number of cell styles is 4000
  • *
  • Length of text cell contents is 32767
  • * */ - EXCEL97(0x10000, 0x0100, 30, 3, 32767), + EXCEL97(0x10000, 0x0100, 30, 3, 4000, 32767), /** * Excel2007 @@ -50,22 +51,25 @@ public enum SpreadsheetVersion { *
  • The maximum number of arguments to a function is 255
  • *
  • Number of conditional format conditions on a cell is unlimited * (actually limited by available memory in Excel)
  • + *
  • Number of cell styles is 64000
  • *
  • Length of text cell contents is 32767
  • *