[poppler] [patch] PageMode addition

Brad Hards bradh at frogmouth.net
Wed Jul 6 13:57:11 PDT 2005


I'm still writing the tests for these, but it looks alright so far. Any 
objections to committing this?

Brad

Index: Catalog.cc
===================================================================
RCS file: /cvs/poppler/poppler/poppler/Catalog.cc,v
retrieving revision 1.9
diff -u -4 -p -r1.9 Catalog.cc
--- Catalog.cc  27 Apr 2005 18:53:20 -0000      1.9
+++ Catalog.cc  6 Jul 2005 20:45:03 -0000
@@ -116,8 +116,10 @@ Catalog::Catalog(XRef *xrefA) {
     else if (obj.isName("FullScreen"))
       pageMode = pageModeFullScreen;
     else if (obj.isName("UseOC"))
       pageMode = pageModeOC;
+    else if (obj.isName("UseAttachments"))
+      pageMode = pageModeAttach;
   }
   obj.free();

   pageLayout = pageLayoutNone;
Index: Catalog.h
===================================================================
RCS file: /cvs/poppler/poppler/poppler/Catalog.h,v
retrieving revision 1.5
diff -u -4 -p -r1.5 Catalog.h
--- Catalog.h   16 Apr 2005 18:57:44 -0000      1.5
+++ Catalog.h   6 Jul 2005 20:45:03 -0000
@@ -104,9 +104,10 @@ public:
     pageModeNone,
     pageModeOutlines,
     pageModeThumbs,
     pageModeFullScreen,
-    pageModeOC
+    pageModeOC,
+    pageModeAttach
   };
   enum PageLayout {
     pageLayoutNone,
     pageLayoutSinglePage,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/poppler/attachments/20050707/9b3604f7/attachment.pgp


More information about the poppler mailing list