Link Here
|
560 |
|
560 |
|
561 |
if ( currentListInfo != 0 ) |
561 |
if ( currentListInfo != 0 ) |
562 |
{ |
562 |
{ |
563 |
final ListFormatOverride listFormatOverride = listTables |
563 |
if ( listTables != null ) |
564 |
.getOverride( paragraph.getIlfo() ); |
564 |
{ |
|
|
565 |
final ListFormatOverride listFormatOverride = listTables |
566 |
.getOverride( paragraph.getIlfo() ); |
565 |
|
567 |
|
566 |
String label = WordToFoUtils.getBulletText( listTables, |
568 |
String label = WordToFoUtils.getBulletText( listTables, |
567 |
paragraph, listFormatOverride.getLsid() ); |
569 |
paragraph, listFormatOverride.getLsid() ); |
568 |
|
570 |
|
569 |
processParagraph( hwpfDocument, flow, currentTableLevel, |
571 |
processParagraph( hwpfDocument, flow, currentTableLevel, |
570 |
paragraph, label ); |
572 |
paragraph, label ); |
|
|
573 |
} |
574 |
else |
575 |
{ |
576 |
logger.log( POILogger.WARN, |
577 |
"Paragraph #" + paragraph.getStartOffset() + "-" |
578 |
+ paragraph.getEndOffset() |
579 |
+ " has reference to list structure #" |
580 |
+ currentListInfo |
581 |
+ ", but listTables not defined in file" ); |
582 |
|
583 |
processParagraph( hwpfDocument, flow, currentTableLevel, |
584 |
paragraph, WordToFoUtils.EMPTY ); |
585 |
} |
571 |
} |
586 |
} |
572 |
else |
587 |
else |
573 |
{ |
588 |
{ |
Link Here
|
581 |
protected void processTable( HWPFDocument hwpfDocument, Element flow, |
596 |
protected void processTable( HWPFDocument hwpfDocument, Element flow, |
582 |
Table table, int thisTableLevel ) |
597 |
Table table, int thisTableLevel ) |
583 |
{ |
598 |
{ |
584 |
Element tableElement = addTable( flow ); |
|
|
585 |
|
586 |
Element tableHeader = createTableHeader(); |
599 |
Element tableHeader = createTableHeader(); |
587 |
Element tableBody = createTableBody(); |
600 |
Element tableBody = createTableBody(); |
588 |
|
601 |
|
Link Here
|
681 |
} |
694 |
} |
682 |
} |
695 |
} |
683 |
|
696 |
|
|
|
697 |
final Element tableElement = createTable(); |
684 |
if ( tableHeader.hasChildNodes() ) |
698 |
if ( tableHeader.hasChildNodes() ) |
685 |
{ |
699 |
{ |
686 |
tableElement.appendChild( tableHeader ); |
700 |
tableElement.appendChild( tableHeader ); |
Link Here
|
688 |
if ( tableBody.hasChildNodes() ) |
702 |
if ( tableBody.hasChildNodes() ) |
689 |
{ |
703 |
{ |
690 |
tableElement.appendChild( tableBody ); |
704 |
tableElement.appendChild( tableBody ); |
|
|
705 |
flow.appendChild( tableElement ); |
691 |
} |
706 |
} |
692 |
else |
707 |
else |
693 |
{ |
708 |
{ |