Skip to content

start:

KDE Native Widget Framework

2004-03-11

Contents

Introduction
Current status
How to get it
Contributing

 

Introduction

Native Widget Framework is a way to get the look of the host platform in OpenOffice.org. It does not affect the feel, because real KDE widgets are not used; the framework simply uses the QStyle API to draw its widgets the same way KDE/Qt would. It is currently developed for OOo 1.1, but it will be used in 2.0 as well.

Screenshots (version from 2004-01-06):

 

Current status

All the important widgets (push buttons, radio buttons, check boxes, list boxes, combo boxes, line edits, spin fields, scroll bars and tabs) are implemented. KDE NWF has to be merged with KDE vclplug now.

 

How to get it

  1. Build gcc 3.2.2. See the Detailed build guide, especially the section 1.4 and the subsections from 2.3.2 to 2.3.5 on how to do it. Use /opt/gcc-3-2-2 (instead of /opt/OpenOffice which is used there as an example) as the prefix.
    NOTE: It won't work if you do not build it or if you use another prefix.

  2. Checkout config_office and vcl from the cws_srx645_nativewidget1 branch, and dmake, external, xml2cmp, mkdepend, sal, solenv, vos, tools, rscpp and instsetoo from the OpenOffice_1_1 branch.
      ~/OOo $ export CVSROOT=:pserver:anoncvs@anoncvs.services.openoffice.org:/cvs
      ~/OOo $ cvs checkout config_office vcl dmake external xml2cmp mkdepend sal solenv vos tools rscpp instsetoo
      ~/OOo $ cvs update -r cws_srx645_nativewidget1 config_office vcl
      ~/OOo $ cvs update -r OpenOffice_1_1 dmake external xml2cmp mkdepend sal solenv vos tools rscpp instsetoo
    
    
  3. Download OOo 1.1.0 solver for Linux and untar it.
      ~/OOo $ tar xvfz OOo_1.1.0_LinuxIntel_solver.tar.gz
    
    
  4. Download and untar GPC (General Polygon Clipper) files to the external/gpc directory.
      ~/OOo $ cd external/gpc
      ~/OOo/external/gpc $ wget ftp://ftp.cs.man.ac.uk/pub/toby/gpc/gpc231.tar.Z
      ~/OOo/external/gpc $ tar xvfz gpc231.tar.Z
      ~/OOo/external/gpc $ mv gpc231/* ./
      ~/OOo/external/gpc $ cd ../..
    
    
  5. Set PATH and LD_LIBRARY_PATH, and run configure.
      ~/OOo $ cd config_office
      ~/OOo/config_office $ export PATH="/opt/gcc-3-2-2/bin:/opt/gcc-3-2-2/jdk/bin:$PATH"
      ~/OOo/config_office $ export LD_LIBRARY_PATH="/opt/gcc-3-2-2/lib:/opt/gcc-3-2-2/jdk/lib:$LD_LIBRARY_PATH"
      ~/OOo/config_office $ ./configure --with-gcc-home=/opt/gcc-3-2-2 --with-widgetset=kde
      ~/OOo/config_office $ cd ..
    
    
  6. Bootstrap.
      ~/OOo $ . LinuxIntelEnv.Set.sh
      ~/OOo $ ./bootstrap
    
    
  7. Build and deliver vcl.
      ~/OOo $ cd vcl
      ~/OOo/vcl $ build
      ~/OOo/vcl $ deliver
      ~/OOo/vcl $ cd ..
    
    
  8. Create an installation set and install it (for example to ~/OpenOffice.org1.1.0).
    NOTE: You may expirience a deadlock; to avoid it, please unset SESSION_MANAGER environment variable before running setup.
      ~/OOo $ cd instsetoo
      ~/OOo/instsetoo $ build
      ~/OOo/instsetoo $ cd unxlngi4.pro/01/normal
      ~/OOo/unxlngi4.pro/01/normal $ unset SESSION_MANAGER
      ~/OOo/unxlngi4.pro/01/normal $ ./setup
    
    
  9. Run and enjoy your OpenOffice.org with KDE NWF support.
      ~/OOo/unxlngi4.pro/01/normal $ cd ~/OpenOffice.org1.1.0/program
      ~/OpenOffice.org1.1.0/program $ unset SESSION_MANAGER
      ~/OpenOffice.org1.1.0/program $ ./soffice
    

 

Contributing

Please see the general participation info on the main page. You should have signed Sun's JCA and release your patches both under LGPL and SISSL (see Contributing To OpenOffice.org) so that they could be possibly included in the official OOo tree.

Jan Holesovsky /kendy at openoffice org/