mirror of https://github.com/apache/poi.git
apply some spelling fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910639 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
99634d6af6
commit
b90935055d
|
@ -632,7 +632,7 @@ public class AddDimensionedImage {
|
||||||
totalWidthMM += (colWidthMM + ConvertImageUnits.CELL_BORDER_WIDTH_MILLIMETRES);
|
totalWidthMM += (colWidthMM + ConvertImageUnits.CELL_BORDER_WIDTH_MILLIMETRES);
|
||||||
toColumn++;
|
toColumn++;
|
||||||
}
|
}
|
||||||
// De-crement by one the last column value.
|
// De-rement by one the last column value.
|
||||||
toColumn--;
|
toColumn--;
|
||||||
// Highly unlikely that this will be true but, if the width of a series
|
// Highly unlikely that this will be true but, if the width of a series
|
||||||
// of columns is exactly equal to the required width of the image, then
|
// of columns is exactly equal to the required width of the image, then
|
||||||
|
|
|
@ -764,7 +764,7 @@ public abstract class XSLFSimpleShape extends XSLFShape
|
||||||
/**
|
/**
|
||||||
* Specifies the line end decoration, such as a triangle or arrowhead.
|
* Specifies the line end decoration, such as a triangle or arrowhead.
|
||||||
*
|
*
|
||||||
* @param style the line end docoration style
|
* @param style the line end decoration style
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("WeakerAccess")
|
@SuppressWarnings("WeakerAccess")
|
||||||
public void setLineHeadDecoration(DecorationShape style) {
|
public void setLineHeadDecoration(DecorationShape style) {
|
||||||
|
|
|
@ -55,7 +55,7 @@ public class XSSFPivotCacheDefinition extends POIXMLDocumentPart{
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates an XSSFPivotCacheDefintion representing the given package part and relationship.
|
* Creates an XSSFPivotCacheDefinition representing the given package part and relationship.
|
||||||
* Should only be called when reading in an existing file.
|
* Should only be called when reading in an existing file.
|
||||||
*
|
*
|
||||||
* @param part - The package part that holds xml data representing this pivot cache definition.
|
* @param part - The package part that holds xml data representing this pivot cache definition.
|
||||||
|
|
|
@ -4639,7 +4639,7 @@ public class XSSFSheet extends POIXMLDocumentPart implements Sheet, OoxmlSheetEx
|
||||||
pivotTables.add(pivotTable);
|
pivotTables.add(pivotTable);
|
||||||
XSSFWorkbook workbook = getWorkbook();
|
XSSFWorkbook workbook = getWorkbook();
|
||||||
|
|
||||||
//Create relationship between the pivot cache defintion and the workbook
|
//Create relationship between the pivot cache definition and the workbook
|
||||||
XSSFPivotCacheDefinition pivotCacheDefinition = (XSSFPivotCacheDefinition) workbook.
|
XSSFPivotCacheDefinition pivotCacheDefinition = (XSSFPivotCacheDefinition) workbook.
|
||||||
createRelationship(XSSFRelation.PIVOT_CACHE_DEFINITION, getWorkbook().getXssfFactory(), tableId);
|
createRelationship(XSSFRelation.PIVOT_CACHE_DEFINITION, getWorkbook().getXssfFactory(), tableId);
|
||||||
String rId = workbook.getRelationId(pivotCacheDefinition);
|
String rId = workbook.getRelationId(pivotCacheDefinition);
|
||||||
|
|
|
@ -1309,7 +1309,7 @@ public class XWPFDocument extends POIXMLDocument implements Document, IBody {
|
||||||
*
|
*
|
||||||
* @param password the plaintext password, if null no password will be applied
|
* @param password the plaintext password, if null no password will be applied
|
||||||
* @param hashAlgo the hash algorithm - only md2, m5, sha1, sha256, sha384 and sha512 are supported.
|
* @param hashAlgo the hash algorithm - only md2, m5, sha1, sha256, sha384 and sha512 are supported.
|
||||||
* if null, it will default default to sha1
|
* if null, it will default to sha1
|
||||||
*/
|
*/
|
||||||
public void enforceReadonlyProtection(String password, HashAlgorithm hashAlgo) {
|
public void enforceReadonlyProtection(String password, HashAlgorithm hashAlgo) {
|
||||||
settings.setEnforcementEditValue(STDocProtect.READ_ONLY, password, hashAlgo);
|
settings.setEnforcementEditValue(STDocProtect.READ_ONLY, password, hashAlgo);
|
||||||
|
@ -1345,7 +1345,7 @@ public class XWPFDocument extends POIXMLDocument implements Document, IBody {
|
||||||
*
|
*
|
||||||
* @param password the plaintext password, if null no password will be applied
|
* @param password the plaintext password, if null no password will be applied
|
||||||
* @param hashAlgo the hash algorithm - only md2, m5, sha1, sha256, sha384 and sha512 are supported.
|
* @param hashAlgo the hash algorithm - only md2, m5, sha1, sha256, sha384 and sha512 are supported.
|
||||||
* if null, it will default default to sha1
|
* if null, it will default to sha1
|
||||||
*/
|
*/
|
||||||
public void enforceFillingFormsProtection(String password, HashAlgorithm hashAlgo) {
|
public void enforceFillingFormsProtection(String password, HashAlgorithm hashAlgo) {
|
||||||
settings.setEnforcementEditValue(STDocProtect.FORMS, password, hashAlgo);
|
settings.setEnforcementEditValue(STDocProtect.FORMS, password, hashAlgo);
|
||||||
|
@ -1381,7 +1381,7 @@ public class XWPFDocument extends POIXMLDocument implements Document, IBody {
|
||||||
*
|
*
|
||||||
* @param password the plaintext password, if null no password will be applied
|
* @param password the plaintext password, if null no password will be applied
|
||||||
* @param hashAlgo the hash algorithm - only md2, m5, sha1, sha256, sha384 and sha512 are supported.
|
* @param hashAlgo the hash algorithm - only md2, m5, sha1, sha256, sha384 and sha512 are supported.
|
||||||
* if null, it will default default to sha1
|
* if null, it will default to sha1
|
||||||
*/
|
*/
|
||||||
public void enforceCommentsProtection(String password, HashAlgorithm hashAlgo) {
|
public void enforceCommentsProtection(String password, HashAlgorithm hashAlgo) {
|
||||||
settings.setEnforcementEditValue(STDocProtect.COMMENTS, password, hashAlgo);
|
settings.setEnforcementEditValue(STDocProtect.COMMENTS, password, hashAlgo);
|
||||||
|
@ -1417,7 +1417,7 @@ public class XWPFDocument extends POIXMLDocument implements Document, IBody {
|
||||||
*
|
*
|
||||||
* @param password the plaintext password, if null no password will be applied
|
* @param password the plaintext password, if null no password will be applied
|
||||||
* @param hashAlgo the hash algorithm - only md2, m5, sha1, sha256, sha384 and sha512 are supported.
|
* @param hashAlgo the hash algorithm - only md2, m5, sha1, sha256, sha384 and sha512 are supported.
|
||||||
* if null, it will default default to sha1
|
* if null, it will default to sha1
|
||||||
*/
|
*/
|
||||||
public void enforceTrackedChangesProtection(String password, HashAlgorithm hashAlgo) {
|
public void enforceTrackedChangesProtection(String password, HashAlgorithm hashAlgo) {
|
||||||
settings.setEnforcementEditValue(STDocProtect.TRACKED_CHANGES, password, hashAlgo);
|
settings.setEnforcementEditValue(STDocProtect.TRACKED_CHANGES, password, hashAlgo);
|
||||||
|
|
|
@ -192,7 +192,7 @@ public class XWPFSettings extends POIXMLDocumentPart {
|
||||||
* @param editValue the protection type
|
* @param editValue the protection type
|
||||||
* @param password the plaintext password, if null no password will be applied
|
* @param password the plaintext password, if null no password will be applied
|
||||||
* @param hashAlgo the hash algorithm - only md2, m5, sha1, sha256, sha384 and sha512 are supported.
|
* @param hashAlgo the hash algorithm - only md2, m5, sha1, sha256, sha384 and sha512 are supported.
|
||||||
* if null, it will default default to sha1
|
* if null, it will default to sha1
|
||||||
*/
|
*/
|
||||||
public void setEnforcementEditValue(org.openxmlformats.schemas.wordprocessingml.x2006.main.STDocProtect.Enum editValue,
|
public void setEnforcementEditValue(org.openxmlformats.schemas.wordprocessingml.x2006.main.STDocProtect.Enum editValue,
|
||||||
String password, HashAlgorithm hashAlgo) {
|
String password, HashAlgorithm hashAlgo) {
|
||||||
|
|
|
@ -67,7 +67,7 @@ class TestXDDFChartRemoveSeries {
|
||||||
final XDDFValueAxis bottomAxis = chart.createValueAxis(AxisPosition.BOTTOM);
|
final XDDFValueAxis bottomAxis = chart.createValueAxis(AxisPosition.BOTTOM);
|
||||||
final XDDFValueAxis leftAxis = chart.createValueAxis(AxisPosition.LEFT);
|
final XDDFValueAxis leftAxis = chart.createValueAxis(AxisPosition.LEFT);
|
||||||
|
|
||||||
// Initialize data data sources
|
// Initialize data sources
|
||||||
|
|
||||||
final Double dX[] = new Double[5];
|
final Double dX[] = new Double[5];
|
||||||
final Double dY1[] = new Double[5];
|
final Double dY1[] = new Double[5];
|
||||||
|
|
|
@ -69,7 +69,7 @@ class TestXSLFAutoShape {
|
||||||
shape.setRightInset(0.0);
|
shape.setRightInset(0.0);
|
||||||
assertEquals(0.0, shape.getRightInset(), 0);
|
assertEquals(0.0, shape.getRightInset(), 0);
|
||||||
|
|
||||||
// unset to defauls
|
// unset to defaults
|
||||||
shape.setBottomInset(-1);
|
shape.setBottomInset(-1);
|
||||||
assertEquals(3.6, shape.getBottomInset(), 0);
|
assertEquals(3.6, shape.getBottomInset(), 0);
|
||||||
shape.setTopInset(-1);
|
shape.setTopInset(-1);
|
||||||
|
|
|
@ -71,10 +71,10 @@ public abstract class BaseTestXSSFPivotTable {
|
||||||
assertEquals(0, pivotTable.getRowLabelColumns().size());
|
assertEquals(0, pivotTable.getRowLabelColumns().size());
|
||||||
|
|
||||||
pivotTable.addRowLabel(0);
|
pivotTable.addRowLabel(0);
|
||||||
CTPivotTableDefinition defintion = pivotTable.getCTPivotTableDefinition();
|
CTPivotTableDefinition definition = pivotTable.getCTPivotTableDefinition();
|
||||||
|
|
||||||
assertEquals(0, defintion.getRowFields().getFieldArray(0).getX());
|
assertEquals(0, definition.getRowFields().getFieldArray(0).getX());
|
||||||
assertEquals(1, defintion.getRowFields().getCount());
|
assertEquals(1, definition.getRowFields().getCount());
|
||||||
assertEquals(1, pivotTable.getRowLabelColumns().size());
|
assertEquals(1, pivotTable.getRowLabelColumns().size());
|
||||||
|
|
||||||
pivotTable.addRowLabel(1);
|
pivotTable.addRowLabel(1);
|
||||||
|
@ -100,9 +100,9 @@ public abstract class BaseTestXSSFPivotTable {
|
||||||
int columnIndex = 0;
|
int columnIndex = 0;
|
||||||
|
|
||||||
pivotTable.addColumnLabel(DataConsolidateFunction.SUM, columnIndex);
|
pivotTable.addColumnLabel(DataConsolidateFunction.SUM, columnIndex);
|
||||||
CTPivotTableDefinition defintion = pivotTable.getCTPivotTableDefinition();
|
CTPivotTableDefinition definition = pivotTable.getCTPivotTableDefinition();
|
||||||
|
|
||||||
assertNull(defintion.getColFields());
|
assertNull(definition.getColFields());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -117,9 +117,9 @@ public abstract class BaseTestXSSFPivotTable {
|
||||||
pivotTable.addColumnLabel(DataConsolidateFunction.SUM, columnOne);
|
pivotTable.addColumnLabel(DataConsolidateFunction.SUM, columnOne);
|
||||||
pivotTable.addColumnLabel(DataConsolidateFunction.MAX, columnTwo);
|
pivotTable.addColumnLabel(DataConsolidateFunction.MAX, columnTwo);
|
||||||
pivotTable.addColumnLabel(DataConsolidateFunction.MIN, columnThree);
|
pivotTable.addColumnLabel(DataConsolidateFunction.MIN, columnThree);
|
||||||
CTPivotTableDefinition defintion = pivotTable.getCTPivotTableDefinition();
|
CTPivotTableDefinition definition = pivotTable.getCTPivotTableDefinition();
|
||||||
|
|
||||||
assertEquals(3, defintion.getDataFields().getDataFieldList().size());
|
assertEquals(3, definition.getDataFields().getDataFieldList().size());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -135,9 +135,9 @@ public abstract class BaseTestXSSFPivotTable {
|
||||||
pivotTable.addColumnLabel(DataConsolidateFunction.SUM, columnOne);
|
pivotTable.addColumnLabel(DataConsolidateFunction.SUM, columnOne);
|
||||||
pivotTable.addColumnLabel(DataConsolidateFunction.SUM, columnTwo);
|
pivotTable.addColumnLabel(DataConsolidateFunction.SUM, columnTwo);
|
||||||
pivotTable.addColumnLabel(DataConsolidateFunction.SUM, columnThree);
|
pivotTable.addColumnLabel(DataConsolidateFunction.SUM, columnThree);
|
||||||
CTPivotTableDefinition defintion = pivotTable.getCTPivotTableDefinition();
|
CTPivotTableDefinition definition = pivotTable.getCTPivotTableDefinition();
|
||||||
|
|
||||||
assertEquals(3, defintion.getDataFields().getDataFieldList().size());
|
assertEquals(3, definition.getDataFields().getDataFieldList().size());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -150,9 +150,9 @@ public abstract class BaseTestXSSFPivotTable {
|
||||||
|
|
||||||
pivotTable.addColumnLabel(DataConsolidateFunction.SUM, columnOne);
|
pivotTable.addColumnLabel(DataConsolidateFunction.SUM, columnOne);
|
||||||
pivotTable.addColumnLabel(DataConsolidateFunction.SUM, columnTwo);
|
pivotTable.addColumnLabel(DataConsolidateFunction.SUM, columnTwo);
|
||||||
CTPivotTableDefinition defintion = pivotTable.getCTPivotTableDefinition();
|
CTPivotTableDefinition definition = pivotTable.getCTPivotTableDefinition();
|
||||||
|
|
||||||
assertEquals(defintion.getColFields().getFieldArray(0).getX(), -2);
|
assertEquals(definition.getColFields().getFieldArray(0).getX(), -2);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -162,11 +162,11 @@ public abstract class BaseTestXSSFPivotTable {
|
||||||
void testColumnLabelCreatesDataField() {
|
void testColumnLabelCreatesDataField() {
|
||||||
pivotTable.addColumnLabel(DataConsolidateFunction.SUM, 0);
|
pivotTable.addColumnLabel(DataConsolidateFunction.SUM, 0);
|
||||||
|
|
||||||
CTPivotTableDefinition defintion = pivotTable.getCTPivotTableDefinition();
|
CTPivotTableDefinition definition = pivotTable.getCTPivotTableDefinition();
|
||||||
|
|
||||||
assertEquals(0, defintion.getDataFields().getDataFieldArray(0).getFld());
|
assertEquals(0, definition.getDataFields().getDataFieldArray(0).getFld());
|
||||||
assertSame(STDataConsolidateFunction.Enum.forInt(DataConsolidateFunction.SUM.getValue()),
|
assertSame(STDataConsolidateFunction.Enum.forInt(DataConsolidateFunction.SUM.getValue()),
|
||||||
defintion.getDataFields().getDataFieldArray(0).getSubtotal());
|
definition.getDataFields().getDataFieldArray(0).getSubtotal());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -180,10 +180,10 @@ public abstract class BaseTestXSSFPivotTable {
|
||||||
|
|
||||||
pivotTable.addColumnLabel(DataConsolidateFunction.SUM, columnIndex, customName);
|
pivotTable.addColumnLabel(DataConsolidateFunction.SUM, columnIndex, customName);
|
||||||
|
|
||||||
CTPivotTableDefinition defintion = pivotTable.getCTPivotTableDefinition();
|
CTPivotTableDefinition definition = pivotTable.getCTPivotTableDefinition();
|
||||||
|
|
||||||
assertEquals(defintion.getDataFields().getDataFieldArray(0).getFld(), columnIndex);
|
assertEquals(definition.getDataFields().getDataFieldArray(0).getFld(), columnIndex);
|
||||||
assertEquals(defintion.getDataFields().getDataFieldArray(0).getName(), customName);
|
assertEquals(definition.getDataFields().getDataFieldArray(0).getName(), customName);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -197,10 +197,10 @@ public abstract class BaseTestXSSFPivotTable {
|
||||||
|
|
||||||
pivotTable.addColumnLabel(DataConsolidateFunction.SUM, columnIndex, null, format);
|
pivotTable.addColumnLabel(DataConsolidateFunction.SUM, columnIndex, null, format);
|
||||||
|
|
||||||
CTPivotTableDefinition defintion = pivotTable.getCTPivotTableDefinition();
|
CTPivotTableDefinition definition = pivotTable.getCTPivotTableDefinition();
|
||||||
|
|
||||||
assertEquals(defintion.getDataFields().getDataFieldArray(0).getFld(), columnIndex);
|
assertEquals(definition.getDataFields().getDataFieldArray(0).getFld(), columnIndex);
|
||||||
assertEquals(defintion.getDataFields().getDataFieldArray(0).getNumFmtId(), wb.createDataFormat().getFormat(format));
|
assertEquals(definition.getDataFields().getDataFieldArray(0).getNumFmtId(), wb.createDataFormat().getFormat(format));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -292,10 +292,10 @@ public abstract class BaseTestXSSFPivotTable {
|
||||||
assertEquals(0, pivotTable.getColLabelColumns().size());
|
assertEquals(0, pivotTable.getColLabelColumns().size());
|
||||||
|
|
||||||
pivotTable.addColLabel(0);
|
pivotTable.addColLabel(0);
|
||||||
CTPivotTableDefinition defintion = pivotTable.getCTPivotTableDefinition();
|
CTPivotTableDefinition definition = pivotTable.getCTPivotTableDefinition();
|
||||||
|
|
||||||
assertEquals(0, defintion.getColFields().getFieldArray(0).getX());
|
assertEquals(0, definition.getColFields().getFieldArray(0).getX());
|
||||||
assertEquals(1, defintion.getColFields().getCount());
|
assertEquals(1, definition.getColFields().getCount());
|
||||||
assertEquals(1, pivotTable.getColLabelColumns().size());
|
assertEquals(1, pivotTable.getColLabelColumns().size());
|
||||||
|
|
||||||
pivotTable.addColLabel(1);
|
pivotTable.addColLabel(1);
|
||||||
|
|
|
@ -3809,7 +3809,7 @@ public final class TestXSSFBugs extends BaseTestBugzillaIssues {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// for the decrytped bytes
|
// for the decrypted bytes
|
||||||
UnsynchronizedByteArrayOutputStream bosDec = UnsynchronizedByteArrayOutputStream.builder().get();
|
UnsynchronizedByteArrayOutputStream bosDec = UnsynchronizedByteArrayOutputStream.builder().get();
|
||||||
|
|
||||||
/* decrypt excel by poi */
|
/* decrypt excel by poi */
|
||||||
|
|
|
@ -320,8 +320,8 @@ public final class TestXSSFCell extends BaseTestXCell {
|
||||||
// Test idea: iterate over cells in the reference worksheet, they all have the R attribute set.
|
// Test idea: iterate over cells in the reference worksheet, they all have the R attribute set.
|
||||||
// For each cell from the reference sheet find the corresponding cell in the problematic file (with missing R)
|
// For each cell from the reference sheet find the corresponding cell in the problematic file (with missing R)
|
||||||
// and assert that POI reads them equally:
|
// and assert that POI reads them equally:
|
||||||
DataFormatter formater = new DataFormatter();
|
DataFormatter formatter = new DataFormatter();
|
||||||
for(Row r : sheetRef){
|
for (Row r : sheetRef) {
|
||||||
XSSFRow rowRef = (XSSFRow)r;
|
XSSFRow rowRef = (XSSFRow)r;
|
||||||
XSSFRow row = sheet.getRow(rowRef.getRowNum());
|
XSSFRow row = sheet.getRow(rowRef.getRowNum());
|
||||||
|
|
||||||
|
@ -338,8 +338,8 @@ public final class TestXSSFCell extends BaseTestXCell {
|
||||||
if(!cell.getCTCell().isSetR()){
|
if(!cell.getCTCell().isSetR()){
|
||||||
assertTrue(cellRef.getCTCell().isSetR(), "R must e set in cellRef");
|
assertTrue(cellRef.getCTCell().isSetR(), "R must e set in cellRef");
|
||||||
|
|
||||||
String valRef = formater.formatCellValue(cellRef);
|
String valRef = formatter.formatCellValue(cellRef);
|
||||||
String val = formater.formatCellValue(cell);
|
String val = formatter.formatCellValue(cell);
|
||||||
assertEquals(valRef, val);
|
assertEquals(valRef, val);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -127,7 +127,7 @@ final class TestXWPFHeader {
|
||||||
|
|
||||||
assertEquals(0, headerF.getParagraphs().size());
|
assertEquals(0, headerF.getParagraphs().size());
|
||||||
|
|
||||||
// As an additional check, recover the defauls footer and
|
// As an additional check, recover the defaults footer and
|
||||||
// make sure that it contains two paragraphs of text and that
|
// make sure that it contains two paragraphs of text and that
|
||||||
// both do hold what is expected.
|
// both do hold what is expected.
|
||||||
footerD = policy.getDefaultFooter();
|
footerD = policy.getDefaultFooter();
|
||||||
|
|
|
@ -2041,7 +2041,7 @@ public final class InternalWorkbook {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* protect a workbook with a password (not encypted, just sets writeprotect
|
* protect a workbook with a password (not encrypted, just sets writeprotect
|
||||||
* flags and the password.
|
* flags and the password.
|
||||||
*
|
*
|
||||||
* @param password the password
|
* @param password the password
|
||||||
|
@ -2080,7 +2080,7 @@ public final class InternalWorkbook {
|
||||||
*
|
*
|
||||||
* @param name the name of an external function, typically a name of a UDF
|
* @param name the name of an external function, typically a name of a UDF
|
||||||
* @param sheetRefIndex the sheet ref index, or -1 if not known
|
* @param sheetRefIndex the sheet ref index, or -1 if not known
|
||||||
* @param udf locator of user-defiend functions to resolve names of VBA and Add-In functions
|
* @param udf locator of user-defined functions to resolve names of VBA and Add-In functions
|
||||||
* @return the external name or null
|
* @return the external name or null
|
||||||
*/
|
*/
|
||||||
public NameXPtg getNameXPtg(String name, int sheetRefIndex, UDFFinder udf) {
|
public NameXPtg getNameXPtg(String name, int sheetRefIndex, UDFFinder udf) {
|
||||||
|
|
|
@ -762,7 +762,7 @@ public final class ExtendedFormatRecord extends StandardRecord {
|
||||||
}
|
}
|
||||||
|
|
||||||
// i've no idea.. possible values are 1 for down, 2 for up and 3 for both...0 for none..
|
// i've no idea.. possible values are 1 for down, 2 for up and 3 for both...0 for none..
|
||||||
// maybe a diagnal line?
|
// maybe a diagonal line?
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Not sure what this is for (maybe fill lines?) 1 = down, 2 = up, 3 = both, 0 for none..
|
* Not sure what this is for (maybe fill lines?) 1 = down, 2 = up, 3 = both, 0 for none..
|
||||||
|
@ -1474,7 +1474,7 @@ public final class ExtendedFormatRecord extends StandardRecord {
|
||||||
}
|
}
|
||||||
|
|
||||||
// i've no idea.. possible values are 1 for down, 2 for up and 3 for both...0 for none..
|
// i've no idea.. possible values are 1 for down, 2 for up and 3 for both...0 for none..
|
||||||
// maybe a diagnal line?
|
// maybe a diagonal line?
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Not sure what this is for (maybe fill lines?) 1 = down, 2 = up, 3 = both, 0 for none..
|
* Not sure what this is for (maybe fill lines?) 1 = down, 2 = up, 3 = both, 0 for none..
|
||||||
|
|
|
@ -2168,7 +2168,7 @@ public final class HSSFWorkbook extends POIDocument implements Workbook {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* protect a workbook with a password (not encypted, just sets writeprotect
|
* protect a workbook with a password (not encrypted, just sets writeprotect
|
||||||
* flags and the password.
|
* flags and the password.
|
||||||
*
|
*
|
||||||
* @param password to set
|
* @param password to set
|
||||||
|
|
|
@ -580,7 +580,7 @@ public abstract class BaseTestNamedRange {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public final void testDefferedSetting() throws Exception {
|
public final void testDeferredSetting() throws Exception {
|
||||||
try (Workbook wb = _testDataProvider.createWorkbook()) {
|
try (Workbook wb = _testDataProvider.createWorkbook()) {
|
||||||
Name n1 = wb.createName();
|
Name n1 = wb.createName();
|
||||||
assertNull(n1.getRefersToFormula());
|
assertNull(n1.getRefersToFormula());
|
||||||
|
|
|
@ -162,7 +162,7 @@ final class TestSheetUtil {
|
||||||
cell.setCellValue("sometext");
|
cell.setCellValue("sometext");
|
||||||
|
|
||||||
assertTrue(SheetUtil.getColumnWidth(sheet, 0, true) > 0, "Having some width for rows with actual cells");
|
assertTrue(SheetUtil.getColumnWidth(sheet, 0, true) > 0, "Having some width for rows with actual cells");
|
||||||
assertEquals(-1.0, SheetUtil.getColumnWidth(sheet, 0, true, 1, 2), 0.01, "Not having any widht for rows with all empty cells");
|
assertEquals(-1.0, SheetUtil.getColumnWidth(sheet, 0, true, 1, 2), 0.01, "Not having any width for rows with all empty cells");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -178,7 +178,7 @@ final class TestSheetUtil {
|
||||||
cell.setCellValue((String)null);
|
cell.setCellValue((String)null);
|
||||||
|
|
||||||
assertEquals(-1, SheetUtil.getColumnWidth(sheet, 0, true), "Having some width for rows with actual cells");
|
assertEquals(-1, SheetUtil.getColumnWidth(sheet, 0, true), "Having some width for rows with actual cells");
|
||||||
assertEquals(-1.0, SheetUtil.getColumnWidth(sheet, 0, true, 1, 2), 0.01, "Not having any widht for rows with all empty cells");
|
assertEquals(-1.0, SheetUtil.getColumnWidth(sheet, 0, true, 1, 2), 0.01, "Not having any width for rows with all empty cells");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -194,7 +194,7 @@ final class TestSheetUtil {
|
||||||
cell.setCellValue("");
|
cell.setCellValue("");
|
||||||
|
|
||||||
assertTrue(SheetUtil.getColumnWidth(sheet, 0, true) > 0, "Having some width for rows with actual cells");
|
assertTrue(SheetUtil.getColumnWidth(sheet, 0, true) > 0, "Having some width for rows with actual cells");
|
||||||
assertEquals(-1.0, SheetUtil.getColumnWidth(sheet, 0, true, 1, 2), 0.01, "Not having any widht for rows with all empty cells");
|
assertEquals(-1.0, SheetUtil.getColumnWidth(sheet, 0, true, 1, 2), 0.01, "Not having any width for rows with all empty cells");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -212,7 +212,7 @@ final class TestSheetUtil {
|
||||||
cell.setCellType(CellType.STRING);
|
cell.setCellType(CellType.STRING);
|
||||||
|
|
||||||
assertTrue(SheetUtil.getColumnWidth(sheet, 0, true) > 0, "Having some width for rows with actual cells");
|
assertTrue(SheetUtil.getColumnWidth(sheet, 0, true) > 0, "Having some width for rows with actual cells");
|
||||||
assertEquals(-1.0, SheetUtil.getColumnWidth(sheet, 0, true, 1, 2), 0.01, "Not having any widht for rows with all empty cells");
|
assertEquals(-1.0, SheetUtil.getColumnWidth(sheet, 0, true, 1, 2), 0.01, "Not having any width for rows with all empty cells");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue