From koffice-devel Mon Jul 26 05:47:18 2010 From: Boudewijn Rempt Date: Mon, 26 Jul 2010 05:47:18 +0000 To: koffice-devel Subject: Re: Jr Job - PageUp PageDown Message-Id: <201007260747.19100.boud () valdyas ! org> X-MARC-Message: https://marc.info/?l=koffice-devel&m=128012330427622 On Sunday 25 July 2010, Cochise wrote: > Hi, my name is Cochise. I'm a brazilian and intent help to make a better > koffice. Hi! Welcome! > I'm looking the junior job of implement page up and page down keys. Erm... I'm not sure that this is actually really a junior job. This bug has been reported about a year ago, and if it were something relatively simple, then I guess the KWord maintainer (who is on holiday now) would have fixed it a long time ago. It's such a basic thing to support... > Well, the movimentation of cursor is implemented in a script, right? No, it's not a script. The texttool implements the cursor movement. But since the text shape knows nothing about the page or the visible area of the text, it's quite hard to figure out how to scroll a viewport-sized amount of lines. > The > plugin TextCursor uses the QTextCursor moves but a pageup/down > implementation its not directly possible, because is necessary know the > height of the canvas. In qt libs the pageup/down is in QTextEdit e consists > in repeat the up/down until go the other screen. > My questions. In a plugin is possible know the height of canvas? How? If > not the function need to be implemented on the main source creating a > inconsistency. > A bad workaround is implement on the TextCursor a fix number of lines to > scrool. I haven't got a clear answer for you, I'd need to dig in this code myself as well, I'm afraid. If you want to do something easier in the meantime, there are some other issues -- only bugs.kde.org is down right now so it's hard to figure something out! -- Boudewijn Rempt | http://www.valdyas.org _______________________________________________ koffice-devel mailing list koffice-devel@kde.org https://mail.kde.org/mailman/listinfo/koffice-devel