Revision 593632

Go back to digest for 15th October 2006

Features in Graphics

Pino Toscano committed changes in /trunk/playground/graphics/okular:

Change the way we rotate the pages.
Instead of telling the generators to do the work themselves (that was usually destraoying the ld pages and creating the new ones), now we just rotate the page objects deleting only their "mutable" contents.
This way, generators can just return true in their supportRotation() to make okular rotate the pages for them for free. Of course they still have to generate the page pixmaps according to the given page rotation.
Now, there's a new rotationChanged() function in the Generator API so generator that needs it can be norified about the document rotation changing.

File Changes

Modified 20 files
  • /trunk/playground/graphics/okular
  •   /core/document.cpp
  •   /core/generator.h
  •   /core/page.cpp
  •   /core/page.h
  •   /generators/djvu/generator_djvu.cpp
  •   /generators/djvu/generator_djvu.h
  •   /generators/dvi/generator_dvi.cpp
  •   /generators/dvi/generator_dvi.h
  •   /generators/ghostview/generator_ghostview.cpp
  •   /generators/ghostview/generator_ghostview.h
  •   /generators/kimgio/generator_kimgio.cpp
  •   /generators/kimgio/generator_kimgio.h
  •   /generators/ooo/generator_ooo.cpp
  •   /generators/ooo/generator_ooo.h
  •   /generators/poppler/generator_pdf.cpp
  •   /generators/poppler/generator_pdf.h
  •   /generators/tiff/generator_tiff.cpp
  •   /generators/tiff/generator_tiff.h
  •   /generators/xps/generator_xps.cpp
  •   /generators/xps/generator_xps.h
20 files changed in total