From koffice-devel Thu Jul 12 15:04:38 2001 From: David Faure Date: Thu, 12 Jul 2001 15:04:38 +0000 To: koffice-devel Subject: Re: Patch for KIllustrator and KWord (XIM) X-MARC-Message: https://marc.info/?l=koffice-devel&m=99495397405655 On Thursday 12 July 2001 18:03, Toshitaka Fujioka wrote: > On Thursday 12 July 2001 20:08, David Faure wrote: > > On Thursday 12 July 2001 13:11, Toshitaka Fujioka wrote: > > > Hello, > > > > > > These patches can let XIM work in KIllustrator and KWord . XIM completely > > > work. ;) > > > I hope that this patch is adopted for every XIM user using KIllustrator > > > and KWord. > > > Please review. > > > > Cool, it's very small in addition (especially the KWord one). > > > > By curiosity, why does it have to be the "GUI" widget (the one with the > > rulers). > > see http://www.kde.gr.jp/~toshitaka/Kde/KOffice/KWord/xim.png > Japanese put alphabet (a-z) together after letting XIM start and input > Japanese. (called the Roman alphabet input) > This special widget is necessary by all means to input Japanese. > Some thing of free license (e.g. kinput) and commercial license (e.g. ATOK X) > exist in XIM. > > >Doesn't it work as well if you set it in KWCanvas ? > > Hmm, Yes, it is possible. But, code increases and hard to understand. > It is the best to write in "KWTextFrameSet::drawCursor(...)". > Because, XIM must be always displayed by cursor position. I know. I was just saying that you might have chosen the wrong QWidget for calling setMicroFocusHint. My guess is that if you use KWCanvas instead of KWGUI, you won't need the +30, +20, and you won't get a bug (wrong offset) if the rulers are hidden. All the coordinates are relative to the KWCanvas scrollview, NOT to the KWGUI widget. (But of course, you should still call this from KWTextFrameSet::drawCursor, no doubt there !) -- David FAURE, david@mandrakesoft.com, faure@kde.org http://perso.mandrakesoft.com/~david/, http://www.konqueror.org/ KDE, Making The Future of Computing Available Today _______________________________________________ Koffice-devel mailing list Koffice-devel@master.kde.org http://master.kde.org/mailman/listinfo/koffice-devel