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