xref: /aoo42x/main/toolkit/workben/layout/README (revision cdf0e10c)
1*cdf0e10cSrcweirTesting workbench and editor for Layout engine.
2*cdf0e10cSrcweir
3*cdf0e10cSrcweir* Configure using --enable-layout.
4*cdf0e10cSrcweir
5*cdf0e10cSrcweir* [d]make all
6*cdf0e10cSrcweir
7*cdf0e10cSrcweir* export OOO_INSTALL_PREFIX=$(pwd)/ooo-layout
8*cdf0e10cSrcweir
9*cdf0e10cSrcweir* [d]make install DESTDIR=$OOO_INSTALL_PREFIX
10*cdf0e10cSrcweir
11*cdf0e10cSrcweir* Compile test program in toolkit/workben/layout
12*cdf0e10cSrcweir
13*cdf0e10cSrcweir  cd toolkit/workben/layout && dmake all
14*cdf0e10cSrcweir
15*cdf0e10cSrcweir* FIXME: New three layer install/rpath feature needs these workarounds
16*cdf0e10cSrcweir|
17*cdf0e10cSrcweir|  test -d $OOO_INSTALL_PREFIX/openoffice.org3 && export OOO_PREFIX_BRAND=$OOO_INSTALL_PREFIX/openoffice.org3 || export OOO_PREFIX_BRAND=$OOO_INSTALL_PREFIX
18*cdf0e10cSrcweir|  cp -f ../..$INPATH/lib/libtkx.so $OOO_PREFIX/openoffice.org/basis3.0/program
19*cdf0e10cSrcweir|  export LD_LIBRARY_PATH=$OOO_PREFIX_BRAND/basis-link/program:$OOO_PREFIX_BRAND/basis-link/ure-link/lib
20*cdf0e10cSrcweir|
21*cdf0e10cSrcweir|  (see source/layout/helper.cxx)
22*cdf0e10cSrcweir
23*cdf0e10cSrcweir* Run it on any .xml file
24*cdf0e10cSrcweir
25*cdf0e10cSrcweir  ../../$INPATH/bin/test [--inst $OOO_INSTALL_PREFIX] zoom.xml
26*cdf0e10cSrcweir
27*cdf0e10cSrcweir* Run it for specific dialogs, see test.cxx
28*cdf0e10cSrcweir
29*cdf0e10cSrcweir   ../../$INPATH/bin/test [--inst $OOO_INSTALL_PREFIX] --test zoom
30*cdf0e10cSrcweir   ../../$INPATH/bin/test [--inst $OOO_INSTALL_PREFIX] --test wordcount
31*cdf0e10cSrcweir
32*cdf0e10cSrcweir* Or source refresh in workben/layout, do something like
33*cdf0e10cSrcweir
34*cdf0e10cSrcweir   cd toolkit/workben/layout && . ./refresh [--inst $OOO_INSTALL_PREFIX]
35*cdf0e10cSrcweir
36*cdf0e10cSrcweirIntegration into OOo:
37*cdf0e10cSrcweir
38*cdf0e10cSrcweir* After instaling, run
39*cdf0e10cSrcweir
40*cdf0e10cSrcweir  cd ooo-cvs/program
41*cdf0e10cSrcweir  ./soffice.bin
42*cdf0e10cSrcweir
43*cdf0e10cSrcweir  Start a [Writer] document and choose View/Zoom or Extra/Word count.
44