From kde-commits Sat Jan 03 17:41:41 2009 From: Thomas Zander Date: Sat, 03 Jan 2009 17:41:41 +0000 To: kde-commits Subject: koffice/kword Message-Id: <1231004501.556926.25799.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=123100451231030 SVN commit 905108 by zander: Update the debugging hints, design docs, and todos M +6 -6 DEBUG M +3 -12 DESIGN M +1 -2 OASIS M +0 -9 TODO M +5 -14 part/KWCanvas.cpp --- trunk/koffice/kword/DEBUG #905107:905108 @@ -6,10 +6,10 @@ The current debug keys are: -Ctrl-Shift-F : Frames debug. Outputs information about all existing frames. -Ctrl-Shift-P : Paragraphs debug. Outputs information about all paragraphs of the current frameset. -Ctrl-Shift-V : Verbose parag debug. Includes formatting of each character. -Ctrl-Shift-S : Styles debug. Prints all KoStyles. -Ctrl-Shift-M : Mark the debug output. Just prints the current date/time. +Alt-Ctrl-Shift-F : Frames debug. Outputs information about all existing frames. -(The code is in koffice/kword/kwcanvas.cc.) +In previous versions of KWord we had this and we may reinstate them if needed; +Alt-Ctrl-Shift-S : Styles debug. Prints all KoStyles. +Alt-Ctrl-Shift-M : Mark the debug output. Just prints the current date/time. + +(The code is in koffice/kword/part/KWCanvas.cpp method keyReleaseEvent()) --- trunk/koffice/kword/DESIGN #905107:905108 @@ -3,7 +3,7 @@ * The document (KWDocument) has a list of framesets (KWFrameSet) -* Framesets include: text frameset, picture/clipart frameset, table frameset etc. +* Framesets include: text frameset & generic framesets. * A frameset has a list of frames, KWFrame. A KWFrame is basically a thin wrapper around a KoShape. @@ -30,15 +30,6 @@ paint the same contents in many pages. This is done by having a frame with a KWCopyShape as its main Shape. The KWCopyShape gets the original shape as argument. -Editing -======= +Technical details of frames, framesets and shape interaction are described +in kword/part/frames/DESIGN -Custom items -============ - -Painting -======== - -More low-level things -===================== - --- trunk/koffice/kword/OASIS #905107:905108 @@ -25,8 +25,7 @@ * Headers and footers OpenDocument supports odd/even headers and footers using "header" and "header-left". -But for first page header/footer KWord should create a separate page layout, -this is not done yet (it uses its own tag instead, as a temporary hack). +But for first page header/footer KWord should create a separate page layout. Also OpenDocument doesn't allow a different style for header and header-left, so they must have the same min-size, border, margins... --- trunk/koffice/kword/TODO #905107:905108 @@ -13,8 +13,6 @@ Missing or incomplete stuff: ---------------------------- -- Even/odd pages - - Add SheetSide config in framedia - Tables should get a title (with positioning posibility) This will basicly be a new frame placed on top or at bottom of table. And it shouldn't be limited to tables - any frame could get that. @@ -25,11 +23,7 @@ Split frames needs to be implemented. Styles have to be saved external (and/or an import/export facility). Books (collection of documents) should be implemented -Implement complete DCOP interface -Make everything scriptable -Add "TopOfFrame"-TopOfPage" etc to styles. - - It should be possible to keep files and shapes external. Kword should also notice a changed file (preferably at runtime) and reload it. @@ -37,8 +31,5 @@ Add RMB option on text to copy current format to a (new) style. Including tab positions.. - picture insertion point when pasting should be as an inline frame. Using default placing methods. -- cut/paste of images do not work across documents (also in bugs.kde.org) - auto-update TOC before printing, so no doc is printed with an out-of-date TOC. It might alter the layout, ok, but an out-of-date TOC is just a waste of paper (besides being misleading...) -- interaction with frame breaks are a bit strange. How do you remove it? You cannot select it, nor can you use backspace or del.. -- when writing bulks of text, when the cursor gets to the border of the window, it should not only scroll 1 line (to make sure the cursor stays in the visible portion of the document) but should be moved to the center of the window (like in emacs:-). So the average position of the cursor is the center of the window, rather than the bollom line. --- trunk/koffice/kword/part/KWCanvas.cpp #905107:905108 @@ -212,28 +212,19 @@ e->accept(); return; } - if (e->key() == Qt::Key_P) { - //printRTDebug( 0 ); - e->accept(); - return; - } - if (e->key() == Qt::Key_V) { - //printRTDebug( 1 ); - e->accept(); - return; - } +/* if (e->key() == Qt::Key_S) { - //m_doc->printStyleDebug(); + m_doc->printStyleDebug(); e->accept(); return; } +*/ if (e->key() == Qt::Key_M) { - //const QDateTime dtMark ( QDateTime::currentDateTime() ); - //kDebug(32002) <<"Developer mark:" << dtMark.toString("yyyy-MM-dd hh:mm:ss,zzz"); + const QDateTime dtMark ( QDateTime::currentDateTime() ); + kDebug(32001) <<"Developer mark:" << dtMark.toString("yyyy-MM-dd hh:mm:ss,zzz"); e->accept(); return; } - // For some reason 'T' doesn't work (maybe kxkb) } #endif m_toolProxy->keyReleaseEvent(e);