Version: 1.4 post (using KDE 3.5 (RC1), compiled sources) Compiler: Target: x86_64-linux-gnu OS: Linux (x86_64) release 2.6.13.2 In KWord trunk (aka HEAD) the 'Fit to Width' type zooming works a lot better then it did in 1.4.2. The only thing missing is that it does not yes save the zoom state to the config file. What it does instead is save the current zoom percentage and that gets re-applied the next restart. Forgetting that it should rezoom when the window size changes. The KWView class has changeZoomMenu and showZoom. It uses the KoZoomHandler::zoom() integer. Not sure where its being saved to the config.
On Tuesday 29 November 2005 12:48, Thomas Zander wrote: > Not sure where its being saved to the config. KWDocument.cpp:435 config->writeEntry( "Zoom", m_zoom ); I guess we need to save two things: zoom type and zoom value.
Created attachment 13929 [details] new zoom mode class
so, attached a patch which fixes the issue in kword. created a global class KoZoomMode which is in lib and can be used by all programs. it manages zoom modes like "Fit to Page" and converts between these names and enum values like ZOOM_PAGE. so far only kword uses it. patch is attached above
Created attachment 13930 [details] second try
Created attachment 13931 [details] third try. hopely the last.
(For anyone looking at this BR: I was commenting the patches on IRC between every iteration. Last one looks fine, except for the inlined method calling i18n()). I have suggested to Johannes to get a SVN account so that he can commit his patch. David.
zoom to page/width is saved correctly now