]> source.dussan.org Git - poi.git/commitdiff
dump header graphics
authorSergey Vladimirov <sergey@apache.org>
Tue, 23 Aug 2011 15:13:15 +0000 (15:13 +0000)
committerSergey Vladimirov <sergey@apache.org>
Tue, 23 Aug 2011 15:13:15 +0000 (15:13 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1160739 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hwpf/dev/HWPFLister.java

index 1c6db5249dd2880248778adcff9b64b80d9c01ce..708f3a0f3c92092b4c489adcadadb7415c9be82f 100644 (file)
@@ -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 );
+            }
         }
     }