commit: Instant Zoom for AbiWord!

From: msevior@physics.unimelb.edu.au
Date: Fri Sep 19 2003 - 11:19:54 EDT

  • Next message: Dom Lachowicz: "Re: commit: Instant Zoom for AbiWord!"

    CVS: ----------------------------------------------------------------------
    CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
    CVS:
    CVS: Committing in .
    CVS:
    CVS: Modified Files:
    CVS: src/af/xap/unix/xap_UnixFrameImpl.cpp
    CVS: src/af/xap/xp/xap_Dlg_Zoom.cpp src/af/xap/xp/xap_Frame.cpp
    CVS: src/af/xap/xp/xap_Frame.h src/text/fmt/xp/fl_BlockLayout.cpp
    CVS: src/text/fmt/xp/fl_BlockLayout.h
    CVS: src/text/fmt/xp/fl_DocLayout.cpp
    CVS: src/text/fmt/xp/fl_DocLayout.h
    CVS: src/text/fmt/xp/fp_ContainerObject.cpp
    CVS: src/text/fmt/xp/fp_ContainerObject.h
    CVS: src/text/fmt/xp/fp_DirectionMarkerRun.cpp
    CVS: src/text/fmt/xp/fp_DirectionMarkerRun.h
    CVS: src/text/fmt/xp/fp_FieldListLabelRun.cpp
    CVS: src/text/fmt/xp/fp_FieldListLabelRun.h
    CVS: src/text/fmt/xp/fp_FmtMarkRun.cpp src/text/fmt/xp/fp_Run.cpp
    CVS: src/text/fmt/xp/fp_Run.h src/text/fmt/xp/fp_TextRun.cpp
    CVS: src/text/fmt/xp/fp_Run.h src/text/fmt/xp/fp_TextRun.cpp
    CVS: src/text/fmt/xp/fp_TextRun.h src/text/fmt/xp/fv_View.cpp
    CVS: src/text/fmt/xp/fv_View.h src/wp/ap/unix/ap_UnixApp.cpp
    CVS: src/wp/ap/xp/ap_EditMethods.cpp src/wp/ap/xp/ap_Frame.cpp
    CVS: src/wp/ap/xp/ap_Frame.h
    CVS: ----------------------------------------------------------------------
    Instant zoom for AbiWord!

    This is our first new feature for 2.2 although it can be back-ported to
    2.0 once it get's some more stress testing.

    Now AbiWord zooms instantly even for large documents. Other platform
    maintainers can get the full effect by replacing a call to

    XAP_Frame::updateZoom() in XAP_PlatformFrameImpl::

    with

    XAP_Frame::quickZoom()

    This new feature was made possible by the great work of Pat Lam and Dom in
    giving us layout classes which only use logical units. We can instant zoom
    by replacing the old graphics class in the layout's by a new one with the
    changed zoom and simply repainting the screen and updating a few other
    constants. Images are resized upon drawing. Hopefully the details of the
    Win32Graphics class can be worked out so our windows users can enjoy this
    feature soon.

    To see this is it's full glory, open up the zoom dialog and play with the
    zoom percent setting.

    Same speed resize no matter how big the document.

    Enjoy!

    Martin



    This archive was generated by hypermail 2.1.4 : Fri Sep 19 2003 - 11:38:31 EDT