poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ser...@apache.org
Subject svn commit: r1160739 - /poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/dev/HWPFLister.java
Date Tue, 23 Aug 2011 15:13:15 GMT
Author: sergey
Date: Tue Aug 23 15:13:15 2011
New Revision: 1160739

URL: http://svn.apache.org/viewvc?rev=1160739&view=rev
Log:
dump header graphics

Modified:
    poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/dev/HWPFLister.java

Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/dev/HWPFLister.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/dev/HWPFLister.java?rev=1160739&r1=1160738&r2=1160739&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/dev/HWPFLister.java (original)
+++ poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/dev/HWPFLister.java Tue Aug 23 15:13:15
2011
@@ -484,11 +484,24 @@ public final class HWPFLister
 
         HWPFDocument document = (HWPFDocument) _doc;
 
-        System.out.println( "=== Document part: MAIN ===" );
-        for ( OfficeDrawing officeDrawing : document.getOfficeDrawingsMain()
-                .getOfficeDrawings() )
+        if ( document.getOfficeDrawingsHeaders() != null )
         {
-            System.out.println( officeDrawing );
+            System.out.println( "=== Document part: HEADER ===" );
+            for ( OfficeDrawing officeDrawing : document
+                    .getOfficeDrawingsHeaders().getOfficeDrawings() )
+            {
+                System.out.println( officeDrawing );
+            }
+        }
+
+        if ( document.getOfficeDrawingsHeaders() != null )
+        {
+            System.out.println( "=== Document part: MAIN ===" );
+            for ( OfficeDrawing officeDrawing : document
+                    .getOfficeDrawingsMain().getOfficeDrawings() )
+            {
+                System.out.println( officeDrawing );
+            }
         }
     }
 



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


Mime
View raw message