[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: Patch for KIllustrator and KWord (XIM)
From:       Toshitaka Fujioka <toshitaka () kde ! gr ! jp>
Date:       2001-07-17 15:44:36
[Download RAW message or body]

On Tuesday 17 July 2001 22:17, David Faure wrote:
> On Tuesday 17 July 2001 15:51, Toshitaka Fujioka wrote:
> > On Tuesday 17 July 2001 20:23, David Faure wrote:
[snip]
> > > It means there's a small offset somewhere (there are 5 horizontal
> > > pixels difference between cPoint and cliprect.topRight() - it's as if
> > > you had written cPoint.x() + 5). The only problem is that it might
> > > change a bit when approaching the right border of the frame, because
> > > the cliprect is "clipped" to the frame, so cliprect.topRight() will \
> > > not be at +5 anymore
> > 
> > Hmm, hmm, XIM position is incomplete with cPoint.x() + 5.
> 
> Oops, cPoint is for the clip rect too. Can you try this instead ?
> QPoint ximPoint = viewMode->normalToView( nPoint );

Oh! Works fine.

> > Will you apply this
> > QPoint ximPoint = viewMode->normalToView( clip.topRight() );
> > int line;
> > cursor->parag()->lineStartOfChar( cursor->index(), 0, &line );
> > canvas->setXimPosition( ximPoint.x(), ximPoint.y(), 0, h -
> > cursor->parag()->lineSpacing( line ) ); ?
> 
> We're almost there, but I'm not happy about using the topright corner
> of the clip-rect. The clip rect could change later for any other reason,
> and this is completely unrelated to the XIM position.
> I think the line I suggest above should work.

I see. Will you apply this
  QPoint ximPoint = viewMode->normalToView( nPoint );
  int line;
  cursor->parag()->lineStartOfChar( cursor->index(), 0, &line );
  canvas->setXimPosition( ximPoint.x(), ximPoint.y(), 0, h - \
cursor->parag()->lineSpacing( line ) ); ?

Thank you.
-- 
Toshitaka Fujioka
http://www.kde.org                The K Desktop Environment Project
                                                    fujioka@kde.org
http://www.kde.gr.jp               Japan KDE User's Group
                                                    toshitaka@kde.gr.jp

-- We offer the best Desktop Environment to you.  (This is my goal. ;-)) -- \


_______________________________________________
Koffice-devel mailing list
Koffice-devel@master.kde.org
http://master.kde.org/mailman/listinfo/koffice-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic