ASF Bugzilla – Attachment 30118 Details for
Bug 54768
[PATCH] Modify SheetDataWriter to allow writing spans attribute for each row
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Modifies SXSSFRow to accept start and end span properties. Also, modifies SheetDataWriter to write (if present) these properties to row tag.
spans_fix.patch (text/plain), 1.73 KB, created by
Kulbhushan Singhal
on 2013-03-29 13:25:06 UTC
(
hide
)
Description:
Modifies SXSSFRow to accept start and end span properties. Also, modifies SheetDataWriter to write (if present) these properties to row tag.
Filename:
MIME Type:
Creator:
Kulbhushan Singhal
Created:
2013-03-29 13:25:06 UTC
Size:
1.73 KB
patch
obsolete
>Index: src/ooxml/java/org/apache/poi/xssf/streaming/SheetDataWriter.java >=================================================================== >--- src/ooxml/java/org/apache/poi/xssf/streaming/SheetDataWriter.java (revision 1462462) >+++ src/ooxml/java/org/apache/poi/xssf/streaming/SheetDataWriter.java (working copy) >@@ -148,6 +148,9 @@ > if (row.getOutlineLevel() != 0) { > _out.write(" outlineLevel=\"" + row.getOutlineLevel() + "\""); > } >+ if(row.hasRowSpan()) { >+ _out.write(" spans=\"" + row.getStartSpan() + ":" + row.getEndSpan() + "\""); >+ } > _out.write(">\n"); > this._rownum = rownum; > _rowContainedNullCells = false; >Index: src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFRow.java >=================================================================== >--- src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFRow.java (revision 1462462) >+++ src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFRow.java (working copy) >@@ -40,6 +40,8 @@ > short _height=-1; > boolean _zHeight = false; > int _outlineLevel = 0; // Outlining level of the row, when outlining is on >+ int startSpan=-1; >+ int endSpan=-1; > > public SXSSFRow(SXSSFSheet sheet, int initialSize) > { >@@ -470,5 +472,25 @@ > throw new UnsupportedOperationException(); > } > } >+ >+ public boolean hasRowSpan() { >+ return startSpan != -1 && endSpan != -1; >+ } >+ >+ public int getStartSpan() { >+ return startSpan; >+ } >+ >+ public void setStartSpan(int startSpan) { >+ this.startSpan = startSpan; >+ } >+ >+ public int getEndSpan() { >+ return endSpan; >+ } >+ >+ public void setEndSpan(int endSpan) { >+ this.endSpan = endSpan; >+ } > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 54768
: 30118