This is a very preliminary outline of the files and directories in kword.

DIRECTORIES:

   dtd:
      the DTD definition for the 
      kword file format

   pics:
      application icons

   demos:
      various example files for kword
      another interesting place for such
      files is the kofficetests module 
      in kde cvs

   expression:
      contains expression.xml

   filters:
      currently only contains the old non-compiled code for the "mif" filter
      has been deprecated in favour of ../filters

   toolbar:
      various images for the toolbars

   mailmerge: 
      source to allow merging of a (large)
      number of email addresses into 
      a single document

   templates:
      various page layout templates

FILES:

   *IFace.{cc,h} files are for the dcop interface

   misc app stuff:
      main.cc                             - the main
      kwaboutdata.h                       - the appname, authors... shared between main.cc and kwfactory.cc
      kword.rc                            - xml-gui layout
      kword.desktop                       - application .desktop file

   main document data structures:
      defs.h                              - various global definitions - FrameSetType, TypeStructDocItem

      kwdoc.cc                            - classes: command history, child, 
                                                     document - config, defaults, load, save, frames helpers,
                                                                and almost everything else that links doc with ui
      kwdoc.h                             -

   configuration dialog:
      kwconfig.cc                         - config ui
      kwconfig.h                          -

   core:
      kwfactory.cc                        - part factory + about data
      kwfactory.h                         -

   commands:
      kwcommand.cc                        - base classes for undo / redo
                                            (for core editing functionality)
      kwcommand.h                         -

   misc ui:
      kwdrag.cc                           - drag & drop and clipboard support
      kwdrag.h                            -

      resizehandles.cc                    - ui helper - resize handles
      resizehandles.h                     -

   core/ui

      app:

         kwcanvas.cc                      - canvas (drawing area, mouse event handlers)
         kwcanvas.h                       -

         kwview.cc                        - actions (menus, toolbars) and their implementation
         kwview.h                         -

      painting:

         kwtextparag.cc                      - KWord's extension of KoTextParag
                                               (e.g. for load and saving as xml)
         kwtextparag.h                       -

         kwtextdocument.cc                   - KoTextDocument reimplementation
         kwtextdocument.h                    -

         kwanchor.cc                      - support for inline frames
         kwanchor.h                       -
         kwanchorpos.h                    -

      view mode:
         kwviewmode.cc                       - "page mode" / "preview mode" etc.
         kwviewmode.h                        -

      doc outline:
         docstruct.cc                     - gui for overall document structure
         docstruct.h                      -

      styles:
         stylenames.cc                    - contains builtin style names, for translation purposes

         kwstylemanager.cc                       - KWStyleManager, extension to KoStyleManager
         kwstylemanager.h                        - (the style editor is in libkotext)

      tables:
         kwtableframeset.cc               - all the table handling
         kwtableframeset.h                -

         dialogs:

            tabledia.cc                      - table insertion dialog
            tabledia.h                       -

            deldia.cc                        - table row/column deletion dialog
            deldia.h                         -

            insdia.cc                        - table row/column insertion dialog
            insdia.h                         -

            splitcellsdia.cc                 - cell splitting dialog 
            splitcellsdia.h                  -

      frames:
         kwtextframeset.cc                - text frameset
         kwtextframeset.h                 -

         kwframe.cc                       - frame, framesets (picture/formula/...), framesetedits
         kwframe.h                        -

         kwframelayout.cc                 - the frame layout engine for headers/main frames/footers/footnotes.
         kwframelayout.h                  - (this is a helper for KWDoc::recalcFrames)

         framedia.cc                      - frame dialog
         framedia.h                       -

      pics:
         kwtextimage.cc                   - old stuff (inline image without frame)
         kwtextimage.h                    - (not available from the UI, only from old files)

         kwinsertpicdia.cc                - insert picture dialog
         kwinsertpicdia.h                 -

   core features:

      variables:
         variable.cc                      - variables
         variable.h                       -

      footnotes:
         footnotedia.cc                   - footnote insertion dialog
         footnotedia.h                    -

      background spell checking:
         kwbgspellcheck.cc                -
         kwbgspellcheck.h                 -

      contents:
         contents.cc                      - Table Of Contents
         contents.h                       -

      search:
         searchdia.cc                     - Text Find and Replace
         searchdia.h                      -

   other features:

      mailmerge:
         mailmerge.cc                     -
         mailmerge.h                      -

         mailmerge_actions.cc             -
         mailmerge_actions.h              -

         kwordmailmergedatabaseiface.cc   -

         mailmerge_interface.cc
         mailmerge_interface.h            - dcop
         mailmerge_interface_skel.cc

         kwmailmerge.desktop

      expressions:
         kweditpersonnalexpressiondia.cc  -
         kweditpersonnalexpressiondia.h   -

   misc wierd files: ;-)
      kwstyle.h                           - Forwarder to kostyle.h, they're the same thing now.
      dummy.cc                            - To compile as a "kdeinit loadable module".

MISC FILES:

   DESIGN
   DEBUG
   TODO
   bidi.txt
