[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-15 22:11:23
[Download RAW message or body]

On Friday 13 July 2001 19:42, Toshitaka Fujioka wrote:
> Oops! :o Sorry, You're 100% right. This was bad patch(KWord). :(
> I remade patch. This patch completely works. ;)

Oops!! Oh no, I did it again. :o 
Sorry, the patch was not complete. :(
When "Line Spacing" was not "Single", XIM position was incomplete.
I remade a patch. Please review.

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-kword-xim-20010716.diff" (text/x-diff)]

diff -ur koffice.orig/kword/kwtextframeset.cc koffice/kword/kwtextframeset.cc
--- koffice.orig/kword/kwtextframeset.cc	Sun Jul 15 16:41:23 2001
+++ koffice/kword/kwtextframeset.cc	Mon Jul 16 05:40:59 2001
@@ -474,7 +474,16 @@
             cursor->parag()->setChanged( wasChanged );      // Maybe we have more \
changes to draw!  
             //XIM Position
-            canvas->setXimPosition( cPoint.x(), cPoint.y(), 0, h );
+            QPoint ximPoint = viewMode->normalToView( clip.bottomRight() );
+            double lineSpace = static_cast<KWTextParag \
*>(cursor->parag())->kwLineSpacing(); +            if ( lineSpace == -1 )
+                lineSpace = h / 3;
+            else if ( lineSpace == -2 )
+                lineSpace = h / 2;
+            else if ( lineSpace > 0 )
+                lineSpace = ((lineSpace / 2.8) * 4 + h / (h - (lineSpace / 2.8) * \
4)) * ((double)m_doc->zoom() / 100); +
+            canvas->setXimPosition( ximPoint.x(), ximPoint.y() - (int)lineSpace, 0, \
0 );  }
     }
     m_currentDrawnCanvas = 0L;


_______________________________________________
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