Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Commit [07293a] Maximize Restore History

Merge from devel-msts-unified_makefiles branch with Unified Makefiles v4.1

Features:
=========
- xpdf configuration was merged with the main configuration
- new Makefile.flags file which contains common logic for compilation
(all makefiles from subdirectories include this file and provide only
subdirectory specific stuff)
- no hacks for freetype2 detection
- type1 font libraries detection
- checks for CPPUNIT, boost libraries and docbook
- possibility to configure-out whole gui (only xpdf, kernel libraries
are created - for future pdfedit-devel package purposes) --disable-gui
- qmake detection directly in configure
- --enable-kernel-tests option for configure
- creates also kernel tests
- --enable-debug-info option added for configure
- this is checked only if we have --enable-relase and want to
have binaries also with debug information
- --enable-qt3 option added for configure
- use Qt4 for --disable-qt3
- --enable-doxygen-doc added for configure
- generates doxygen documentation only if required (turned off by
default)
- checks for doxygen binary if turned on
- --enable-advanced-doc added for configure
- generates design documentation (turned off by default)
- checks docbook
- --with-root-dir added for configure
- sets root directory where to install
- --enable-stack-protector added for configure
- enables -fstack-protector compiler option (turned off by
default)
- includes in kernel, utils and xpdf consolidated so they include with
specified subtree (e.g. #include "cpage.h" -> #include "kernel/cpage.h".
This enables to move header files without code change (only -I
compiler parameter has to be changed). This is preparation for future
devel package with libraries and exported header files.
- online help for gui is generated during distribution tarball creation
and it is extracted from doc/Makefile path.
- (un)installation targets don't depend directly on gui and they are
configured in ./configure script

---
Changelog v1 -> v2
- small fixes - see detailed info in patch specific emails
- doc_makefiles.patch added for doc subdirectories - just doc top level
Makfile finished yet. Still many TODOs (e. g. we don't check for
docbook2html and others, we should split to core doc - man pages -
user doc and program. doc)
- xpdf_makefiles.patch removes all unused xpdf scripts

Changelog v2 -> v3
- whole project (also with Gui part) is compileable now
- T1 library is now detected during configuration
- all includes from gui directory were corrected to properly
- small fixes - see detailed info in patch specific emails
- Makefile.flags split into 2 files (Makefile.flags, Makefile.rules)

Changelog v3 -> v3.1
- configure fix - ./configure --enable-kernel-tests doesn't fail if
CPUnit is not present - we have to check result from AM_PATH_CPPUNIT
macro in configure.in.

Changlelog v3.1 -> v4
- new configuration features (advanced-doc, stack-protectore),
--with-root-dir added
- docbook detection added
- all headers are included with subtree directory (except gui, where
only includes from other subtrees are done this way).
- (un)installation targets don't depend directly on gui.
- lots of small changes (see in specific patches changelogs).

Changelog v4 -> v4.1
- --with-qmake-dir configure parameter added (selects directory where
to search for qmake binary)
- some small fixes by Martin

Michal Hocko Michal Hocko 2008-01-16

1 2 3 .. 17 > >> (Page 1 of 17)
added Makefile.rules
added src/gui/config.h
added src/tests
added src/tests/kernel
added src/tests/kernel/testcobject.h
removed configure
removed src/kernel/tests
removed src/kernel/tests/testtextoutput.cc
removed src/xpdf/config_xpdf_variables.in
removed src/xpdf/configure
removed src/xpdf/configure.in
removed src/xpdf/dj_make.bat
removed src/xpdf/fofi/Makefile.dep
removed src/xpdf/goo/Makefile.dep
removed src/xpdf/install-sh
removed src/xpdf/misc
removed src/xpdf/misc/hello.pdf
removed src/xpdf/ms_make.bat
removed src/xpdf/splash/Makefile.dep
removed src/xpdf/vms_make.com
removed src/xpdf/xpdf/Makefile.dep
changed Changelog
changed Makefile.flags.in
changed Makefile.in
changed README
changed config
changed configure.in
changed doc
changed doc/Makefile
changed doc/Makefile.rules
changed doc/tools
changed doc/tools/docbook2html
changed doc/user
changed doc/user/Makefile
changed makedist
changed src
changed src/Makefile
changed src/gui
changed src/gui/additemdialog.h
changed src/gui/base.cc
changed src/gui/baseconsole.cc
changed src/gui/boolproperty.cc
changed src/gui/intproperty.cc
changed src/gui/mergeform.cc
changed src/gui/nameproperty.cc
changed src/gui/operatorhint.cc
changed src/gui/operatorhint.h
changed src/gui/pagespace.cc
changed src/gui/pageviewS.cc
changed src/gui/pageviewS.h
changed src/gui/pageviewmode.cc
changed src/gui/pageviewmode.h
changed src/gui/pdfedit.pro
changed src/gui/pdfeditwindow.cc
changed src/gui/pdfeditwindow.h
changed src/gui/pdfutil.cc
changed src/gui/pdfutil.h
changed src/gui/property.cc
changed src/gui/property.h
changed src/gui/propertyeditor.cc
changed src/gui/propertyeditor.h
changed src/gui/propertyfactory.cc
changed src/gui/propertymodecontroller.cc
changed src/gui/propertymodecontroller.h
changed src/gui/qsannotation.cc
changed src/gui/qsarray.cc
changed src/gui/qsarray.h
changed src/gui/qscontentstream.cc
changed src/gui/qscontentstream.h
changed src/gui/qsdict.cc
changed src/gui/qsdict.h
changed src/gui/qsimporter.h
changed src/gui/qsiproperty.cc
changed src/gui/qsiproperty.h
changed src/gui/qsipropertyarray.cc
changed src/gui/qsipropertyarray.h
changed src/gui/qspage.cc
changed src/gui/qspdf.cc
changed src/gui/qspdfoperator.cc
changed src/gui/qspdfoperator.h
changed src/gui/qspdfoperatoriterator.cc
changed src/gui/qspdfoperatoriterator.h
changed src/gui/qspdfoperatorstack.cc
changed src/gui/qspdfoperatorstack.h
changed src/gui/qsstream.cc
changed src/gui/qsstream.h
changed src/gui/realproperty.cc
changed src/gui/rect2Darray.h
changed src/gui/refproperty.cc
changed src/gui/refproperty.h
changed src/gui/refpropertydialog.cc
changed src/gui/refpropertydialog.h
changed src/gui/revisiontool.cc
changed src/gui/selectpagesdialog.cc
changed src/gui/stringproperty.cc
changed src/gui/treeitem.cc
changed src/gui/treeitem.h
changed src/gui/treeitemannotation.cc
changed src/gui/treeitemannotationcontainer.cc
changed src/gui/treeitemarray.cc
changed src/gui/treeitemcontentstream.cc
changed src/gui/treeitemcontentstreamobserver.h
changed src/gui/treeitemcstream.cc
changed src/gui/treeitemdict.cc
changed src/gui/treeitemgenericobserver.h
changed src/gui/treeitemobserver.h
changed src/gui/treeitemoperatorcontainer.cc
changed src/gui/treeitemoutline.cc
changed src/gui/treeitempage.cc
changed src/gui/treeitempageobserver.h
changed src/gui/treeitempdf.cc
changed src/gui/treeitempdfoperator.cc
changed src/gui/treeitemref.cc
changed src/gui/treeitemsimple.cc
changed src/gui/treewindow.cc
changed src/gui/treewindow.h
changed src/gui/util.cc
changed src/kernel
changed src/kernel/cannotation.cc
changed src/kernel/cannotation.h
changed src/kernel/carray.cc
changed src/kernel/carray.h
changed src/kernel/ccontentstream.cc
changed src/kernel/ccontentstream.h
changed src/kernel/cdict.cc
changed src/kernel/cdict.h
changed src/kernel/cinlineimage.cc
changed src/kernel/cinlineimage.h
changed src/kernel/cobject.cc
changed src/kernel/cobject.h
changed src/kernel/cobjecthelpers.cc
changed src/kernel/cobjecthelpers.h
changed src/kernel/cobjectsimple.h
changed src/kernel/coutline.cc
changed src/kernel/coutline.h
changed src/kernel/cpage.cc
changed src/kernel/cpage.h
changed src/kernel/cpdf.cc
changed src/kernel/cpdf.h
changed src/kernel/cstream.cc
changed src/kernel/cstream.h
changed src/kernel/cstreamsxpdfreader.h
changed src/kernel/cxref.cc
changed src/kernel/cxref.h
changed src/kernel/factories.cc
changed src/kernel/factories.h
changed src/kernel/filters.cc
changed src/kernel/filters.h
changed src/kernel/iproperty.cc
changed src/kernel/iproperty.h
changed src/kernel/modecontroller.cc
changed src/kernel/modecontroller.h
changed src/kernel/operatorhinter.h
changed src/kernel/pdfoperators.cc
changed src/kernel/pdfoperators.h
changed src/kernel/pdfoperatorsiter.cc
changed src/kernel/pdfoperatorsiter.h
changed src/kernel/pdfwriter.cc
changed src/kernel/pdfwriter.h
changed src/kernel/stateupdater.cc
changed src/kernel/stateupdater.h
changed src/kernel/static.h
changed src/kernel/streamwriter.cc
changed src/kernel/streamwriter.h
changed src/kernel/textoutput.h
changed src/kernel/textoutputbuilder.cc
changed src/kernel/textoutputbuilder.h
changed src/kernel/textoutputengines.cc
changed src/kernel/textoutputengines.h
changed src/kernel/textoutputentities.cc
changed src/kernel/textoutputentities.h
changed src/kernel/xrefwriter.cc
changed src/kernel/xrefwriter.h
changed src/kpdf-kde-3.3.2
changed src/kpdf-kde-3.3.2/QOutputDev.h
changed src/kpdf-kde-3.3.2/qoutputdevices.pro
changed src/qsa
changed src/qsa/configure
changed src/utils
changed src/utils/Makefile
changed src/utils/confparser.cc
changed src/utils/debug.cc
changed src/utils/delinearizator.cc
changed src/xpdf
changed src/xpdf/Makefile.in
changed src/xpdf/fofi
changed src/xpdf/fofi/FoFiBase.cc
changed src/xpdf/fofi/FoFiBase.h
changed src/xpdf/fofi/FoFiEncodings.cc
changed src/xpdf/fofi/FoFiEncodings.h
changed src/xpdf/fofi/FoFiTrueType.cc
changed src/xpdf/fofi/FoFiTrueType.h
changed src/xpdf/fofi/FoFiType1.cc
changed src/xpdf/fofi/FoFiType1.h
changed src/xpdf/fofi/FoFiType1C.cc
changed src/xpdf/fofi/FoFiType1C.h
changed src/xpdf/fofi/Makefile.in
changed src/xpdf/goo
changed src/xpdf/goo/FixedPoint.cc
changed src/xpdf/goo/FixedPoint.h
changed src/xpdf/goo/GHash.cc
changed src/xpdf/goo/GHash.h
changed src/xpdf/goo/GList.cc
changed src/xpdf/goo/GList.h
changed src/xpdf/goo/GString.cc
changed src/xpdf/goo/GString.h
changed src/xpdf/goo/Makefile.in
changed src/xpdf/goo/gfile.cc
changed src/xpdf/goo/gfile.h
changed src/xpdf/goo/gmem.cc
changed src/xpdf/goo/gmempp.cc
changed src/xpdf/goo/parseargs.c
changed src/xpdf/goo/parseargs.h
changed src/xpdf/goo/vms_directory.c
changed src/xpdf/goo/vms_dirent.h
changed src/xpdf/goo/vms_unix_times.c
changed src/xpdf/splash
changed src/xpdf/splash/Makefile.in
changed src/xpdf/splash/Splash.cc
changed src/xpdf/splash/Splash.h
changed src/xpdf/splash/SplashBitmap.cc
changed src/xpdf/splash/SplashBitmap.h
changed src/xpdf/splash/SplashClip.cc
changed src/xpdf/splash/SplashClip.h
changed src/xpdf/splash/SplashFTFont.cc
changed src/xpdf/splash/SplashFTFont.h
changed src/xpdf/splash/SplashFTFontEngine.cc
changed src/xpdf/splash/SplashFTFontEngine.h
changed src/xpdf/splash/SplashFTFontFile.cc
changed src/xpdf/splash/SplashFTFontFile.h
changed src/xpdf/splash/SplashFont.cc
changed src/xpdf/splash/SplashFont.h
changed src/xpdf/splash/SplashFontEngine.cc
changed src/xpdf/splash/SplashFontEngine.h
changed src/xpdf/splash/SplashFontFile.cc
changed src/xpdf/splash/SplashFontFile.h
changed src/xpdf/splash/SplashFontFileID.cc
changed src/xpdf/splash/SplashFontFileID.h
changed src/xpdf/splash/SplashGlyphBitmap.h
changed src/xpdf/splash/SplashMath.h
changed src/xpdf/splash/SplashPath.cc
changed src/xpdf/splash/SplashPath.h
changed src/xpdf/splash/SplashPattern.cc
changed src/xpdf/splash/SplashPattern.h
changed src/xpdf/splash/SplashScreen.cc
changed src/xpdf/splash/SplashScreen.h
changed src/xpdf/splash/SplashState.cc
changed src/xpdf/splash/SplashState.h
changed src/xpdf/splash/SplashT1Font.cc
changed src/xpdf/splash/SplashT1Font.h
changed src/xpdf/splash/SplashT1FontEngine.cc
changed src/xpdf/splash/SplashT1FontEngine.h
changed src/xpdf/splash/SplashT1FontFile.cc
changed src/xpdf/splash/SplashT1FontFile.h
changed src/xpdf/splash/SplashTypes.h
changed src/xpdf/splash/SplashXPath.cc
changed src/xpdf/splash/SplashXPath.h
changed src/xpdf/splash/SplashXPathScanner.cc
changed src/xpdf/splash/SplashXPathScanner.h
changed src/xpdf/xpdf
changed src/xpdf/xpdf/Annot.cc
changed src/xpdf/xpdf/Array.cc
changed src/xpdf/xpdf/Array.h
changed src/xpdf/xpdf/BuiltinFont.cc
changed src/xpdf/xpdf/BuiltinFont.h
changed src/xpdf/xpdf/BuiltinFontTables.cc
changed src/xpdf/xpdf/BuiltinFontTables.h
changed src/xpdf/xpdf/CMap.cc
changed src/xpdf/xpdf/CMap.h
changed src/xpdf/xpdf/Catalog.cc
changed src/xpdf/xpdf/CharCodeToUnicode.cc
changed src/xpdf/xpdf/CharCodeToUnicode.h
changed src/xpdf/xpdf/CoreOutputDev.cc
changed src/xpdf/xpdf/CoreOutputDev.h
changed src/xpdf/xpdf/Decrypt.cc
changed src/xpdf/xpdf/Decrypt.h
changed src/xpdf/xpdf/Dict.cc
changed src/xpdf/xpdf/Dict.h
changed src/xpdf/xpdf/Error.cc
changed src/xpdf/xpdf/Error.h
changed src/xpdf/xpdf/FontEncodingTables.cc
changed src/xpdf/xpdf/Function.cc
changed src/xpdf/xpdf/Function.h
changed src/xpdf/xpdf/Gfx.cc
changed src/xpdf/xpdf/Gfx.h
changed src/xpdf/xpdf/GfxFont.cc
changed src/xpdf/xpdf/GfxFont.h
changed src/xpdf/xpdf/GfxState.cc
changed src/xpdf/xpdf/GfxState.h
changed src/xpdf/xpdf/GlobalParams.cc
changed src/xpdf/xpdf/GlobalParams.h
changed src/xpdf/xpdf/ImageOutputDev.cc
changed src/xpdf/xpdf/ImageOutputDev.h
changed src/xpdf/xpdf/JArithmeticDecoder.cc
changed src/xpdf/xpdf/JArithmeticDecoder.h
changed src/xpdf/xpdf/JBIG2Stream.cc
changed src/xpdf/xpdf/JBIG2Stream.h
changed src/xpdf/xpdf/JPXStream.cc
changed src/xpdf/xpdf/JPXStream.h
changed src/xpdf/xpdf/Lexer.cc
changed src/xpdf/xpdf/Lexer.h
changed src/xpdf/xpdf/Link.cc
changed src/xpdf/xpdf/Link.h
changed src/xpdf/xpdf/Makefile.in
changed src/xpdf/xpdf/NameToCharCode.cc
changed src/xpdf/xpdf/NameToCharCode.h
changed src/xpdf/xpdf/Object.cc
changed src/xpdf/xpdf/Object.h
changed src/xpdf/xpdf/Outline.cc
changed src/xpdf/xpdf/Outline.h
changed src/xpdf/xpdf/OutputDev.cc
changed src/xpdf/xpdf/OutputDev.h
changed src/xpdf/xpdf/PDFCore.cc
changed src/xpdf/xpdf/PDFCore.h
changed src/xpdf/xpdf/PDFDoc.cc
changed src/xpdf/xpdf/PDFDoc.h
changed src/xpdf/xpdf/PDFDocEncoding.cc
changed src/xpdf/xpdf/PDFDocEncoding.h
changed src/xpdf/xpdf/PSOutputDev.cc
changed src/xpdf/xpdf/PSOutputDev.h
changed src/xpdf/xpdf/PSTokenizer.cc
changed src/xpdf/xpdf/PSTokenizer.h
changed src/xpdf/xpdf/Page.cc
changed src/xpdf/xpdf/Page.h
changed src/xpdf/xpdf/Parser.cc
changed src/xpdf/xpdf/Parser.h
changed src/xpdf/xpdf/PreScanOutputDev.cc
changed src/xpdf/xpdf/PreScanOutputDev.h
changed src/xpdf/xpdf/SecurityHandler.cc
changed src/xpdf/xpdf/SecurityHandler.h
changed src/xpdf/xpdf/SplashOutputDev.cc
changed src/xpdf/xpdf/SplashOutputDev.h
changed src/xpdf/xpdf/Stream.cc
changed src/xpdf/xpdf/Stream.h
changed src/xpdf/xpdf/TextOutputDev.cc
changed src/xpdf/xpdf/TextOutputDev.h
changed src/xpdf/xpdf/UnicodeMap.cc
changed src/xpdf/xpdf/UnicodeMap.h
changed src/xpdf/xpdf/UnicodeTypeTable.cc
changed src/xpdf/xpdf/UnicodeTypeTable.h
changed src/xpdf/xpdf/XPDFApp.cc
changed src/xpdf/xpdf/XPDFApp.h
changed src/xpdf/xpdf/XPDFCore.cc
changed src/xpdf/xpdf/XPDFCore.h
changed src/xpdf/xpdf/XPDFTree.cc
changed src/xpdf/xpdf/XPDFTreeP.h
changed src/xpdf/xpdf/XPDFViewer.cc
changed src/xpdf/xpdf/XPDFViewer.h
changed src/xpdf/xpdf/XRef.cc
changed src/xpdf/xpdf/XRef.h
changed src/xpdf/xpdf/XpdfPluginAPI.cc
changed src/xpdf/xpdf/pdffonts.cc
changed src/xpdf/xpdf/pdfimages.cc
changed src/xpdf/xpdf/pdfinfo.cc
changed src/xpdf/xpdf/pdftoppm.cc
changed src/xpdf/xpdf/pdftops.cc
changed src/xpdf/xpdf/pdftotext.cc
changed src/xpdf/xpdf/xpdf.cc
changed tools
copied src/xpdf/aclocal.m4 -> config/xpdf.m4
copied src/kernel/tests/mode.conf -> src/tests/kernel/mode.conf
copied src/kernel/tests/mode_bad.conf -> src/tests/kernel/mode_bad.conf
copied src/kernel/tests/mode_empty.conf -> src/tests/kernel/mode_empty.conf
copied src/kernel/tests/multiversion.pdf -> src/tests/kernel/multiversion.pdf
copied config.pro.in.in -> src/tests/Makefile
copied post_configure -> src/kernel/Makefile
copied src/gui/config.h.in -> src/tests/kernel/operator.conf
copied src/kernel/kernel-obj.pro -> src/tests/kernel/Makefile
copied src/kernel/kernel-tests.pro -> tools/generate_online_help.sh
copied src/kernel/kernel.pro -> src/tests/kernel/testcobjecthelpers.cc
copied src/kernel/main.cc -> src/tests/kernel/main.cc
copied src/kernel/tests/operator.conf -> src/gui/Makefile.gui
copied src/kernel/tests/testccontentstream.cc -> src/tests/kernel/testccontentstream.cc
copied src/kernel/tests/testcobject.h -> src/tests/kernel/testoutlines.cc
copied src/kernel/tests/testcobjectcomplex.cc -> src/tests/kernel/testcobjectcomplex.cc
copied src/kernel/tests/testcobjecthelpers.cc -> src/tests/kernel/teststreamwriter.cc
copied src/kernel/tests/testcobjectsimple.cc -> src/tests/kernel/testcobjectsimple.cc
copied src/kernel/tests/testcpage.cc -> src/tests/kernel/testcpage.cc
copied src/kernel/tests/testcpage.h -> src/tests/kernel/testcpage.h
copied src/kernel/tests/testcpdf.cc -> src/tests/kernel/testcpdf.cc
copied src/kernel/tests/testcpdf.h -> src/tests/kernel/testtextoutput.cc
copied src/kernel/tests/testcstream.cc -> src/tests/kernel/testcstream.cc
copied src/kernel/tests/testmain.h -> src/tests/kernel/testmain.h
copied src/kernel/tests/testoutlines.cc -> config/cppunit.m4
copied src/kernel/tests/testpdfoperators.cc -> src/tests/kernel/testpdfoperators.cc
copied src/kernel/tests/teststream.cc -> src/tests/kernel/teststream.cc
copied src/kernel/tests/teststreamwriter.cc -> config/freetype2.m4
copied src/kernel/tests/testutils.cc -> src/tests/kernel/testutils.cc
copied src/xpdf/misc/xpdf.dt -> src/tests/kernel/testcpdf.h
Makefile.rules Diff Switch to side-by-side view
Loading...
src/gui/config.h Diff Switch to side-by-side view
Loading...
src/tests
Directory.
src/tests/kernel
Directory.
src/tests/kernel/testcobject.h Diff Switch to side-by-side view
Loading...
configure
File was removed.
src/kernel/tests
File was removed.
src/xpdf/configure
File was removed.
src/xpdf/configure.in
File was removed.
src/xpdf/dj_make.bat
File was removed.
src/xpdf/fofi/Makefile.dep
File was removed.
src/xpdf/goo/Makefile.dep
File was removed.
src/xpdf/install-sh
File was removed.
src/xpdf/misc
File was removed.
src/xpdf/misc/hello.pdf
File was removed.
src/xpdf/ms_make.bat
File was removed.
src/xpdf/splash/Makefile.dep
File was removed.
src/xpdf/vms_make.com
File was removed.
src/xpdf/xpdf/Makefile.dep
File was removed.
Changelog Diff Switch to side-by-side view
Loading...
Makefile.flags.in Diff Switch to side-by-side view
Loading...
Makefile.in Diff Switch to side-by-side view
Loading...
README Diff Switch to side-by-side view
Loading...
config
Directory.
configure.in Diff Switch to side-by-side view
Loading...
doc
Directory.
doc/Makefile Diff Switch to side-by-side view
Loading...
doc/Makefile.rules Diff Switch to side-by-side view
Loading...
doc/tools
Directory.
doc/tools/docbook2html Diff Switch to side-by-side view
Loading...
doc/user
Directory.
doc/user/Makefile Diff Switch to side-by-side view
Loading...
makedist Diff Switch to side-by-side view
Loading...
src
Directory.
src/Makefile Diff Switch to side-by-side view
Loading...
src/gui
Directory.
src/gui/additemdialog.h Diff Switch to side-by-side view
Loading...
src/gui/base.cc Diff Switch to side-by-side view
Loading...
src/gui/baseconsole.cc Diff Switch to side-by-side view
Loading...
src/gui/boolproperty.cc Diff Switch to side-by-side view
Loading...
src/gui/intproperty.cc Diff Switch to side-by-side view
Loading...
src/gui/mergeform.cc Diff Switch to side-by-side view
Loading...
src/gui/nameproperty.cc Diff Switch to side-by-side view
Loading...
src/gui/operatorhint.cc Diff Switch to side-by-side view
Loading...
src/gui/operatorhint.h Diff Switch to side-by-side view
Loading...
src/gui/pagespace.cc Diff Switch to side-by-side view
Loading...
src/gui/pageviewS.cc Diff Switch to side-by-side view
Loading...
src/gui/pageviewS.h Diff Switch to side-by-side view
Loading...
src/gui/pageviewmode.cc Diff Switch to side-by-side view
Loading...
src/gui/pageviewmode.h Diff Switch to side-by-side view
Loading...
src/gui/pdfedit.pro Diff Switch to side-by-side view
Loading...
src/gui/pdfeditwindow.cc Diff Switch to side-by-side view
Loading...
src/gui/pdfeditwindow.h Diff Switch to side-by-side view
Loading...
src/gui/pdfutil.cc Diff Switch to side-by-side view
Loading...
src/gui/pdfutil.h Diff Switch to side-by-side view
Loading...
src/gui/property.cc Diff Switch to side-by-side view
Loading...
src/gui/property.h Diff Switch to side-by-side view
Loading...
src/gui/propertyeditor.cc Diff Switch to side-by-side view
Loading...
src/gui/propertyeditor.h Diff Switch to side-by-side view
Loading...
src/gui/propertyfactory.cc Diff Switch to side-by-side view
Loading...
src/gui/propertymodecontroller.cc Diff Switch to side-by-side view
Loading...
src/gui/propertymodecontroller.h Diff Switch to side-by-side view
Loading...
src/gui/qsannotation.cc Diff Switch to side-by-side view
Loading...
src/gui/qsarray.cc Diff Switch to side-by-side view
Loading...
src/gui/qsarray.h Diff Switch to side-by-side view
Loading...
src/gui/qscontentstream.cc Diff Switch to side-by-side view
Loading...
src/gui/qscontentstream.h Diff Switch to side-by-side view
Loading...
src/gui/qsdict.cc Diff Switch to side-by-side view
Loading...
src/gui/qsdict.h Diff Switch to side-by-side view
Loading...
src/gui/qsimporter.h Diff Switch to side-by-side view
Loading...
src/gui/qsiproperty.cc Diff Switch to side-by-side view
Loading...
src/gui/qsiproperty.h Diff Switch to side-by-side view
Loading...
src/gui/qsipropertyarray.cc Diff Switch to side-by-side view
Loading...
src/gui/qsipropertyarray.h Diff Switch to side-by-side view
Loading...
src/gui/qspage.cc Diff Switch to side-by-side view
Loading...
src/gui/qspdf.cc Diff Switch to side-by-side view
Loading...
src/gui/qspdfoperator.cc Diff Switch to side-by-side view
Loading...
src/gui/qspdfoperator.h Diff Switch to side-by-side view
Loading...
src/gui/qspdfoperatoriterator.cc Diff Switch to side-by-side view
Loading...
src/gui/qspdfoperatoriterator.h Diff Switch to side-by-side view
Loading...
src/gui/qspdfoperatorstack.cc Diff Switch to side-by-side view
Loading...
src/gui/qspdfoperatorstack.h Diff Switch to side-by-side view
Loading...
src/gui/qsstream.cc Diff Switch to side-by-side view
Loading...
src/gui/qsstream.h Diff Switch to side-by-side view
Loading...
src/gui/realproperty.cc Diff Switch to side-by-side view
Loading...
src/gui/rect2Darray.h Diff Switch to side-by-side view
Loading...
src/gui/refproperty.cc Diff Switch to side-by-side view
Loading...
src/gui/refproperty.h Diff Switch to side-by-side view
Loading...
src/gui/refpropertydialog.cc Diff Switch to side-by-side view
Loading...
src/gui/refpropertydialog.h Diff Switch to side-by-side view
Loading...
src/gui/revisiontool.cc Diff Switch to side-by-side view
Loading...
src/gui/selectpagesdialog.cc Diff Switch to side-by-side view
Loading...
src/gui/stringproperty.cc Diff Switch to side-by-side view
Loading...
src/gui/treeitem.cc Diff Switch to side-by-side view
Loading...
src/gui/treeitem.h Diff Switch to side-by-side view
Loading...
src/gui/treeitemannotation.cc Diff Switch to side-by-side view
Loading...
src/gui/treeitemannotationcontainer.cc Diff Switch to side-by-side view
Loading...
src/gui/treeitemarray.cc Diff Switch to side-by-side view
Loading...
src/gui/treeitemcontentstream.cc Diff Switch to side-by-side view
Loading...
src/gui/treeitemcontentstreamobserver.h Diff Switch to side-by-side view
Loading...
src/gui/treeitemcstream.cc Diff Switch to side-by-side view
Loading...
src/gui/treeitemdict.cc Diff Switch to side-by-side view
Loading...
src/gui/treeitemgenericobserver.h Diff Switch to side-by-side view
Loading...
src/gui/treeitemobserver.h Diff Switch to side-by-side view
Loading...
src/gui/treeitemoperatorcontainer.cc Diff Switch to side-by-side view
Loading...
src/gui/treeitemoutline.cc Diff Switch to side-by-side view
Loading...
src/gui/treeitempage.cc Diff Switch to side-by-side view
Loading...
src/gui/treeitempageobserver.h Diff Switch to side-by-side view
Loading...
src/gui/treeitempdf.cc Diff Switch to side-by-side view
Loading...
src/gui/treeitempdfoperator.cc Diff Switch to side-by-side view
Loading...
src/gui/treeitemref.cc Diff Switch to side-by-side view
Loading...
src/gui/treeitemsimple.cc Diff Switch to side-by-side view
Loading...
src/gui/treewindow.cc Diff Switch to side-by-side view
Loading...
src/gui/treewindow.h Diff Switch to side-by-side view
Loading...
src/gui/util.cc Diff Switch to side-by-side view
Loading...
src/kernel
Directory.
src/kernel/cannotation.cc Diff Switch to side-by-side view
Loading...
src/kernel/cannotation.h Diff Switch to side-by-side view
Loading...
src/kernel/carray.cc Diff Switch to side-by-side view
Loading...
src/kernel/carray.h Diff Switch to side-by-side view
Loading...
src/kernel/ccontentstream.cc Diff Switch to side-by-side view
Loading...
src/kernel/ccontentstream.h Diff Switch to side-by-side view
Loading...
src/kernel/cdict.cc Diff Switch to side-by-side view
Loading...
src/kernel/cdict.h Diff Switch to side-by-side view
Loading...
src/kernel/cinlineimage.cc Diff Switch to side-by-side view
Loading...
src/kernel/cinlineimage.h Diff Switch to side-by-side view
Loading...
src/kernel/cobject.cc Diff Switch to side-by-side view
Loading...
src/kernel/cobject.h Diff Switch to side-by-side view
Loading...
src/kernel/cobjecthelpers.cc Diff Switch to side-by-side view
Loading...
src/kernel/cobjecthelpers.h Diff Switch to side-by-side view
Loading...
src/kernel/cobjectsimple.h Diff Switch to side-by-side view
Loading...
src/kernel/coutline.cc Diff Switch to side-by-side view
Loading...
src/kernel/coutline.h Diff Switch to side-by-side view
Loading...
src/kernel/cpage.cc Diff Switch to side-by-side view
Loading...
src/kernel/cpage.h Diff Switch to side-by-side view
Loading...
src/kernel/cpdf.cc Diff Switch to side-by-side view
Loading...
src/kernel/cpdf.h Diff Switch to side-by-side view
Loading...
src/kernel/cstream.cc Diff Switch to side-by-side view
Loading...
src/kernel/cstream.h Diff Switch to side-by-side view
Loading...
src/kernel/cstreamsxpdfreader.h Diff Switch to side-by-side view
Loading...
src/kernel/cxref.cc Diff Switch to side-by-side view
Loading...
src/kernel/cxref.h Diff Switch to side-by-side view
Loading...
src/kernel/factories.cc Diff Switch to side-by-side view
Loading...
src/kernel/factories.h Diff Switch to side-by-side view
Loading...
src/kernel/filters.cc Diff Switch to side-by-side view
Loading...
src/kernel/filters.h Diff Switch to side-by-side view
Loading...
src/kernel/iproperty.cc Diff Switch to side-by-side view
Loading...
src/kernel/iproperty.h Diff Switch to side-by-side view
Loading...
src/kernel/modecontroller.cc Diff Switch to side-by-side view
Loading...
src/kernel/modecontroller.h Diff Switch to side-by-side view
Loading...
src/kernel/operatorhinter.h Diff Switch to side-by-side view
Loading...
src/kernel/pdfoperators.cc Diff Switch to side-by-side view
Loading...
src/kernel/pdfoperators.h Diff Switch to side-by-side view
Loading...
src/kernel/pdfoperatorsiter.cc Diff Switch to side-by-side view
Loading...
src/kernel/pdfoperatorsiter.h Diff Switch to side-by-side view
Loading...
src/kernel/pdfwriter.cc Diff Switch to side-by-side view
Loading...
src/kernel/pdfwriter.h Diff Switch to side-by-side view
Loading...
src/kernel/stateupdater.cc Diff Switch to side-by-side view
Loading...
src/kernel/stateupdater.h Diff Switch to side-by-side view
Loading...
src/kernel/static.h Diff Switch to side-by-side view
Loading...
src/kernel/streamwriter.cc Diff Switch to side-by-side view
Loading...
src/kernel/streamwriter.h Diff Switch to side-by-side view
Loading...
src/kernel/textoutput.h Diff Switch to side-by-side view
Loading...
src/kernel/textoutputbuilder.cc Diff Switch to side-by-side view
Loading...
src/kernel/textoutputbuilder.h Diff Switch to side-by-side view
Loading...
src/kernel/textoutputengines.cc Diff Switch to side-by-side view
Loading...
src/kernel/textoutputengines.h Diff Switch to side-by-side view
Loading...
src/kernel/textoutputentities.cc Diff Switch to side-by-side view
Loading...
src/kernel/textoutputentities.h Diff Switch to side-by-side view
Loading...
src/kernel/xrefwriter.cc Diff Switch to side-by-side view
Loading...
src/kernel/xrefwriter.h Diff Switch to side-by-side view
Loading...
src/kpdf-kde-3.3.2
Directory.
src/kpdf-kde-3.3.2/QOutputDev.h Diff Switch to side-by-side view
Loading...
src/kpdf-kde-3.3.2/qoutputdevices.pro Diff Switch to side-by-side view
Loading...
src/qsa
Directory.
src/qsa/configure Diff Switch to side-by-side view
Loading...
src/utils
Directory.
src/utils/Makefile Diff Switch to side-by-side view
Loading...
src/utils/confparser.cc Diff Switch to side-by-side view
Loading...
src/utils/debug.cc Diff Switch to side-by-side view
Loading...
src/utils/delinearizator.cc Diff Switch to side-by-side view
Loading...
src/xpdf
Directory.
src/xpdf/Makefile.in Diff Switch to side-by-side view
Loading...
src/xpdf/fofi
Directory.
src/xpdf/fofi/FoFiBase.cc Diff Switch to side-by-side view
Loading...
src/xpdf/fofi/FoFiBase.h Diff Switch to side-by-side view
Loading...
src/xpdf/fofi/FoFiEncodings.cc Diff Switch to side-by-side view
Loading...
src/xpdf/fofi/FoFiEncodings.h Diff Switch to side-by-side view
Loading...
src/xpdf/fofi/FoFiTrueType.cc Diff Switch to side-by-side view
Loading...
src/xpdf/fofi/FoFiTrueType.h Diff Switch to side-by-side view
Loading...
src/xpdf/fofi/FoFiType1.cc Diff Switch to side-by-side view
Loading...
src/xpdf/fofi/FoFiType1.h Diff Switch to side-by-side view
Loading...
src/xpdf/fofi/FoFiType1C.cc Diff Switch to side-by-side view
Loading...
src/xpdf/fofi/FoFiType1C.h Diff Switch to side-by-side view
Loading...
src/xpdf/fofi/Makefile.in Diff Switch to side-by-side view
Loading...
src/xpdf/goo
Directory.
src/xpdf/goo/FixedPoint.cc Diff Switch to side-by-side view
Loading...
src/xpdf/goo/FixedPoint.h Diff Switch to side-by-side view
Loading...
src/xpdf/goo/GHash.cc Diff Switch to side-by-side view
Loading...
src/xpdf/goo/GHash.h Diff Switch to side-by-side view
Loading...
src/xpdf/goo/GList.cc Diff Switch to side-by-side view
Loading...
src/xpdf/goo/GList.h Diff Switch to side-by-side view
Loading...
src/xpdf/goo/GString.cc Diff Switch to side-by-side view
Loading...
src/xpdf/goo/GString.h Diff Switch to side-by-side view
Loading...
src/xpdf/goo/Makefile.in Diff Switch to side-by-side view
Loading...
src/xpdf/goo/gfile.cc Diff Switch to side-by-side view
Loading...
src/xpdf/goo/gfile.h Diff Switch to side-by-side view
Loading...
src/xpdf/goo/gmem.cc Diff Switch to side-by-side view
Loading...
src/xpdf/goo/gmempp.cc Diff Switch to side-by-side view
Loading...
src/xpdf/goo/parseargs.c Diff Switch to side-by-side view
Loading...
src/xpdf/goo/parseargs.h Diff Switch to side-by-side view
Loading...
src/xpdf/goo/vms_directory.c Diff Switch to side-by-side view
Loading...
src/xpdf/goo/vms_dirent.h Diff Switch to side-by-side view
Loading...
src/xpdf/goo/vms_unix_times.c Diff Switch to side-by-side view
Loading...
src/xpdf/splash
Directory.
src/xpdf/splash/Makefile.in Diff Switch to side-by-side view
Loading...
src/xpdf/splash/Splash.cc Diff Switch to side-by-side view
Loading...
src/xpdf/splash/Splash.h Diff Switch to side-by-side view
Loading...
src/xpdf/splash/SplashBitmap.cc Diff Switch to side-by-side view
Loading...
src/xpdf/splash/SplashBitmap.h Diff Switch to side-by-side view
Loading...
src/xpdf/splash/SplashClip.cc Diff Switch to side-by-side view
Loading...
src/xpdf/splash/SplashClip.h Diff Switch to side-by-side view
Loading...
src/xpdf/splash/SplashFTFont.cc Diff Switch to side-by-side view
Loading...
src/xpdf/splash/SplashFTFont.h Diff Switch to side-by-side view
Loading...
src/xpdf/splash/SplashFTFontEngine.cc Diff Switch to side-by-side view
Loading...
src/xpdf/splash/SplashFTFontEngine.h Diff Switch to side-by-side view
Loading...
src/xpdf/splash/SplashFTFontFile.cc Diff Switch to side-by-side view
Loading...
src/xpdf/splash/SplashFTFontFile.h Diff Switch to side-by-side view
Loading...
src/xpdf/splash/SplashFont.cc Diff Switch to side-by-side view
Loading...
src/xpdf/splash/SplashFont.h Diff Switch to side-by-side view
Loading...
src/xpdf/splash/SplashFontEngine.cc Diff Switch to side-by-side view
Loading...
src/xpdf/splash/SplashFontEngine.h Diff Switch to side-by-side view
Loading...
src/xpdf/splash/SplashFontFile.cc Diff Switch to side-by-side view
Loading...
src/xpdf/splash/SplashFontFile.h Diff Switch to side-by-side view
Loading...
src/xpdf/splash/SplashFontFileID.cc Diff Switch to side-by-side view
Loading...
src/xpdf/splash/SplashFontFileID.h Diff Switch to side-by-side view
Loading...
src/xpdf/splash/SplashGlyphBitmap.h Diff Switch to side-by-side view
Loading...
src/xpdf/splash/SplashMath.h Diff Switch to side-by-side view
Loading...
src/xpdf/splash/SplashPath.cc Diff Switch to side-by-side view
Loading...
src/xpdf/splash/SplashPath.h Diff Switch to side-by-side view
Loading...
src/xpdf/splash/SplashPattern.cc Diff Switch to side-by-side view
Loading...
src/xpdf/splash/SplashPattern.h Diff Switch to side-by-side view
Loading...
src/xpdf/splash/SplashScreen.cc Diff Switch to side-by-side view
Loading...
src/xpdf/splash/SplashScreen.h Diff Switch to side-by-side view
Loading...
src/xpdf/splash/SplashState.cc Diff Switch to side-by-side view
Loading...
src/xpdf/splash/SplashState.h Diff Switch to side-by-side view
Loading...
src/xpdf/splash/SplashT1Font.cc Diff Switch to side-by-side view
Loading...
src/xpdf/splash/SplashT1Font.h Diff Switch to side-by-side view
Loading...
src/xpdf/splash/SplashT1FontEngine.cc Diff Switch to side-by-side view
Loading...
src/xpdf/splash/SplashT1FontEngine.h Diff Switch to side-by-side view
Loading...
src/xpdf/splash/SplashT1FontFile.cc Diff Switch to side-by-side view
Loading...
src/xpdf/splash/SplashT1FontFile.h Diff Switch to side-by-side view
Loading...
src/xpdf/splash/SplashTypes.h Diff Switch to side-by-side view
Loading...
src/xpdf/splash/SplashXPath.cc Diff Switch to side-by-side view
Loading...
src/xpdf/splash/SplashXPath.h Diff Switch to side-by-side view
Loading...
src/xpdf/splash/SplashXPathScanner.cc Diff Switch to side-by-side view
Loading...
src/xpdf/splash/SplashXPathScanner.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf
Directory.
src/xpdf/xpdf/Annot.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/Array.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/Array.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/BuiltinFont.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/BuiltinFont.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/BuiltinFontTables.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/BuiltinFontTables.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/CMap.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/CMap.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/Catalog.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/CharCodeToUnicode.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/CharCodeToUnicode.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/CoreOutputDev.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/CoreOutputDev.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/Decrypt.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/Decrypt.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/Dict.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/Dict.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/Error.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/Error.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/FontEncodingTables.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/Function.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/Function.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/Gfx.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/Gfx.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/GfxFont.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/GfxFont.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/GfxState.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/GfxState.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/GlobalParams.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/GlobalParams.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/ImageOutputDev.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/ImageOutputDev.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/JArithmeticDecoder.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/JArithmeticDecoder.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/JBIG2Stream.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/JBIG2Stream.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/JPXStream.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/JPXStream.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/Lexer.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/Lexer.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/Link.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/Link.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/Makefile.in Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/NameToCharCode.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/NameToCharCode.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/Object.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/Object.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/Outline.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/Outline.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/OutputDev.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/OutputDev.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/PDFCore.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/PDFCore.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/PDFDoc.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/PDFDoc.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/PDFDocEncoding.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/PDFDocEncoding.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/PSOutputDev.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/PSOutputDev.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/PSTokenizer.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/PSTokenizer.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/Page.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/Page.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/Parser.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/Parser.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/PreScanOutputDev.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/PreScanOutputDev.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/SecurityHandler.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/SecurityHandler.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/SplashOutputDev.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/SplashOutputDev.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/Stream.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/Stream.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/TextOutputDev.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/TextOutputDev.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/UnicodeMap.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/UnicodeMap.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/UnicodeTypeTable.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/UnicodeTypeTable.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/XPDFApp.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/XPDFApp.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/XPDFCore.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/XPDFCore.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/XPDFTree.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/XPDFTreeP.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/XPDFViewer.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/XPDFViewer.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/XRef.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/XRef.h Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/XpdfPluginAPI.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/pdffonts.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/pdfimages.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/pdfinfo.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/pdftoppm.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/pdftops.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/pdftotext.cc Diff Switch to side-by-side view
Loading...
src/xpdf/xpdf/xpdf.cc Diff Switch to side-by-side view
Loading...
tools
Directory.
src/xpdf/aclocal.m4 to config/xpdf.m4
File was copied or renamed.
config.pro.in.in to src/tests/Makefile
--- a/config.pro.in.in
+++ b/src/tests/Makefile
@@ -1,11 +1,20 @@
-PREFIX      = @prefix@
-EPREFIX     = @exec_prefix@
-DATAROOTDIR = @datarootdir@
-DATA_PATH   = @datadir@/pdfedit
-DOC_PATH    = @datadir@/doc/pdfedit
-MAN_PATH    = @mandir@/man1
-BIN_PATH    = @bindir@
-E_RELEASE   = @enable_release@
-QMAKE_CFLAGS   += @EXTRA_CFLAGS@
-QMAKE_CXXFLAGS += @EXTRA_CXXFLAGS@
-QTVERSION   = qt3
+# Makefile for all tests for PDFedit
+#
+# includes basic building rules
+# REL_ADDR has to be defined, because Makefile.rules refers 
+# to the Makefile.flags
+REL_ADDR=../../
+include $(REL_ADDR)Makefile.rules
+
+.PHONY: distclean clean kernel_tests
+
+# TDOD add all, install and uninstall targets depending on configuration
+
+kernel_tests:
+	cd $(KERNELTESTSROOT) && make kernel_tests
+
+clean:
+	cd $(KERNELTESTSROOT) && make clean
+
+distclean: 
+	cd $(KERNELTESTSROOT) && make distclean
post_configure to src/kernel/Makefile
--- a/post_configure
+++ b/src/kernel/Makefile
@@ -1,101 +1,66 @@
-#!/bin/sh
-#Fix config.pro to be suitable for QMake
-sed <config.pro.in 's/${prefix}/$$PREFIX/g' | sed 's/${datarootdir}/$$DATAROOTDIR/g' | sed 's/${exec_prefix}/$$EPREFIX/g' >config.pro
+# General definitions
+# includes basic building rules
+# REL_ADDR has to be defined, because Makefile.rules refers 
+# to the Makefile.flags
+REL_ADDR = ../../
+include $(REL_ADDR)/Makefile.rules
 
-#Write expanded data path into config.h
-prefix=`grep '^PREFIX *=' <config.pro.in |sed 's/^[^=]*= *//'`
-exec_prefix=`grep '^EPREFIX *=' <config.pro.in |sed 's/^[^=]*= *//' |sed "s^\\\${prefix}^$prefix^"`
-data_root_dir=`grep '^DATAROOTDIR *=' <config.pro.in |sed 's/^[^=]*= *//' |sed "s^\\\${prefix}^$prefix^"`
-data_path=`grep '^DATA_PATH *=' <config.pro.in |sed 's/^[^=]*= *//' |sed "s^\\\${prefix}^$prefix^" |sed "s^\\\${exec_prefix}^$exec_prefix^" |sed "s^\\\${datarootdir}^$data_root_dir^"`
-sed <src/gui/config.h.in "s^@DATAPATH@^$data_path^" >src/gui/config.h
+####### Files
+CFLAGS   += $(EXTRA_KERNEL_CFLAGS)
+CXXFLAGS += $(EXTRA_KERNEL_CXXFLAGS)
 
-#check for freetype include parameters for xpdf
-CONFIG_FLAGS=src/Makefile.flags
-if [ -d /usr/include/freetype2/freetype ]
-then
- #Need extra parameter to find freetype
- echo >$CONFIG_FLAGS xpdf_configure_flags=--with-freetype2-includes=/usr/include/freetype2
-else
- #the same can be in /usr/local ...
- if [ -d /usr/local/include/freetype2/freetype ]
- then
-  #Need extra parameter to find freetype
-  echo >$CONFIG_FLAGS xpdf_configure_flags=--with-freetype2-includes=/usr/local/include/freetype2
- else
-  #No extra parameter needed (probably)
-  echo >$CONFIG_FLAGS xpdf_configure_flags=
- fi
-fi
+HEADERS = $(UTILSROOT)/debug.h $(UTILSROOT)/iterator.h $(UTILSROOT)/observer.h\
+	  exceptions.h modecontroller.h filters.h xpdf.h cxref.h xrefwriter.h \
+	  factories.h pdfwriter.h iproperty.h cobject.h cobjectsimple.h \
+	  cobjectsimpleI.h carray.h cdict.h cstream.h cstreamsxpdfreader.h \
+	  cobjecthelpers.h ccontentstream.h pdfoperators.h pdfoperatorsiter.h \
+	  cpage.h cpdf.h streamwriter.h cinlineimage.h coutline.h \
+	  stateupdater.h cannotation.h textoutput.h textoutputbuilder.h \
+	  textoutputentities.h textoutputengines.h static.h
 
-#debug/release
-RELEASE_MODE=`grep '^E_RELEASE *=' <config.pro.in |sed 's/^[^=]*= *//'`
-echo E_RELEASE=$RELEASE_MODE >>$CONFIG_FLAGS
+SOURCES = modecontroller.cc filters.cc factories.cc cannotation.cc \
+	  cxref.cc xrefwriter.cc streamwriter.cc iproperty.cc carray.cc \
+	  cdict.cc cstream.cc cobject.cc cobjecthelpers.cc \
+	  ccontentstream.cc pdfoperators.cc pdfoperatorsiter.cc \
+	  stateupdater.cc pdfwriter.cc cinlineimage.cc coutline.cc \
+	  cpage.cc cpdf.cc textoutputengines.cc textoutputentities.cc \
+	  textoutputbuilder.cc
+OBJECTS = $(SOURCES:.cc=.o)
+# FIXME use LIBPREFIX
+TARGET   = libkernel.a
 
-#debug/release for utils
-if [ "$RELEASE_MODE" = "yes" ]; then
-   UTIL_CXXFLAGS="-DNDEBUG -O2"
-else
-   UTIL_CXXFLAGS="-DDEBUG -g -O0"
-fi
-echo UTIL_CXXFLAGS=$UTIL_CXXFLAGS >>$CONFIG_FLAGS
+####### Build rules
 
-#Try to pick a good qmake (from qt3)
+all: $(TARGET) 
 
-GOOD_QMAKE3=""
+staticlib: $(TARGET)
 
-#function to check if given qmake is valid
-try_qmake() {
- if [ -n "$GOOD_QMAKE3" ]
- then
-  return 0
- fi
- echo -n "Trying qmake: $1"
- is_qmake_3=`$1 --version 2>&1 | grep 3\.[0-9][0-9]*\.[0-9][0-9]*`
- #Is it from Qt 3?
- if [ -z "$is_qmake_3" ]
- then
-  echo " ... not valid"
-  return 1
- else
-  echo " ... ok"
-  echo "Using qmake: $1"
-  export GOOD_QMAKE3="$1"
-  return 0
- fi
- echo " ... not found"
- return 1
-}
+deps: $(SOURCES) $(HEADERS)
+	$(CXX) $(MANDATORY_INCPATH) -M $(SOURCES) > deps
 
-#Qmake passed as argument
-if [ -n "$1" ]
-then
- try_qmake "$1"
-fi
+$(TARGET): deps $(OBJECTS)
+	-$(DEL_FILE) $(TARGET)
+	$(AR) $(TARGET) $(OBJECTS)
+	$(RANLIB) $(TARGET)
 
-#Qmake in QMAKE environment variable (if set)
-if [ -n "$QMAKE" ]
-then
- try_qmake "$QMAKE"
-fi
+.PHONY: dist clean disclean
+dist: 
+	@mkdir -p .obj/kernel && \
+		$(COPY_FILE) --parents $(SOURCES) $(HEADERS) .obj/kernel/ \
+		&& ( cd `dirname .obj/kernel` \
+		&& $(TAR) kernel.tar kernel \
+		&& $(GZIP) kernel.tar ) \
+		&& $(MOVE) `dirname .obj/kernel`/kernel.tar.gz . \
+		&& $(DEL_FILE) -r .obj/kernel
 
-#Qmake in QTDIR
-try_qmake "$QTDIR/bin/qmake"
+clean:
+	-$(DEL_FILE) $(OBJECTS) deps
+	-$(DEL_FILE) *~ core *.core
 
-#Plain qmake
-try_qmake 'qmake'
+distclean: clean
+	-$(DEL_FILE) $(TARGET)
 
-#debian-like qmake-qt3
-try_qmake "qmake-qt3"
 
-#Sometime it is there...
-try_qmake '/usr/bin/qmake'
-
-#This one is mainly because of cygwin
-try_qmake '/usr/lib/qt3/bin/qmake'
-
-if [ -z "$GOOD_QMAKE3" ]
-then
- echo "Failed to find qmake from QT3!"
-fi
-
-echo >>$CONFIG_FLAGS "QMAKE=$GOOD_QMAKE3"
+# FIXME change this because we are force to include this even if we want
+# to do make clean. FreeBSD make is not able to include non existent file
+#-include deps
src/gui/config.h.in to src/tests/kernel/operator.conf
--- a/src/gui/config.h.in
+++ b/src/tests/kernel/operator.conf
@@ -1,15 +1,12 @@
-/** @file
- File with common configuration for entire program
- \brief Configuration header
- */
-#ifndef __CONFIG_H__
-#define __CONFIG_H__
+# An example for operator hint configuration file
+# file has following format:
+# `#' starts comments
+# emtpty lines are ignored
+# [operatorName] : Hint text
+#       stands for hint describtion
 
-/** Directory where all data files of pdfedit would be stored
- *  (icons, default config, etc ...)*/
-#define DATA_PATH "@DATAPATH@"
+:Hint for this is not available
+Tj:Text visualization operator 
+g  : Any idea what it is
+q : # empty text
 
-/** config directory name (will be used relative to $HOME) */
-#define CONFIG_DIR ".pdfedit"
-
-#endif
src/kernel/kernel-obj.pro to src/tests/kernel/Makefile
--- a/src/kernel/kernel-obj.pro
+++ b/src/tests/kernel/Makefile
@@ -1,42 +1,44 @@
-#
-# Path to xpdf object files
-#
-XPDFPATH = ../xpdf
+# includes basic rules for building 
+# REL_ADDR has to be defined, because Makefile.rules refers 
+# to the Makefile.flags
+REL_ADDR = ../../../
+include $(REL_ADDR)/Makefile.rules
 
-#
-# Path to utils
-#
-UTILSPATH = ../utils
 
-#
-# One specific lib, that must exist
-#
-XPDFLIB = libxpdf.a
+MANDATORY_LIBS    += $(CPPUNIT_LIBS) 
+MANDATORY_INCPATH += $(CPPUNITPATH)
 
-#
-# Utils library
-#
-UTILSLIB = libutils.a
+SOURCES = testcobjectsimple.cc \
+		testcobjectcomplex.cc \
+		testcstream.cc \
+		teststream.cc \
+		teststreamwriter.cc \
+		testcobjecthelpers.cc \
+		testpdfoperators.cc \
+		testcpage.cc \
+		testccontentstream.cc \
+		testcpdf.cc \
+		testutils.cc \
+		testoutlines.cc \
+		testtextoutput.cc \
+		main.cc
+OBJECTS = $(SOURCES:.cc=.o)
+TARGET   = kernel_tests
 
-exists( $${XPDFPATH}/xpdf/$${XPDFLIB} ) {
-	LIBS += -lxpdf -L$$XPDFPATH/xpdf
-	LIBS += -lfofi -lGoo -L$$XPDFPATH/fofi -L$$XPDFPATH/goo
-	LIBS += -lsplash -L$$XPDFPATH/splash
+all: $(TARGET)
 
-	exists( ../xpdf/config_xpdf_variables ) {
-		include( ../xpdf/config_xpdf_variables )
-		LIBS += $$config_xpdf_t1_LIBS
-		LIBS += $$config_xpdf_libpaper_LIBS
-		LIBS += $$config_xpdf_freetype2_LIBS
-	}else{
-		error( "You do not have ../config_xpdf_variables created from ../xpdf/config.status" )
-	}
-}else{
-	error( "You do not have xpdf compiled. [../xpdf/xpdf/Object.o, ../xpdf/xpdf/Stream.o, ....]" )
-}
+$(TARGET): deps $(OBJECTS)
+	$(LINK) $(LDFLAGS) -o $(TARGET) $(OBJECTS) $(MANDATORY_LIBS)
 
-exists( $${UTILSPATH}/$${UTILSLIB} ) {
-        LIBS += -lutils -L$$UTILSPATH
-}else{
-        error( "You do not have utils library")
-}
+clean:
+	-$(DEL_FILE) $(OBJECTS)
+	-$(DEL_FILE) *~ core *.core
+
+distclean: clean
+	-$(DEL_FILE) $(TARGET)
+
+deps: $(SOURCES)
+	$(CXX) $(MANDATORY_INCPATH) -M $(SOURCES) > deps
+
+# FIXME FreeBSD make is not able to include non existent file
+#-include deps
src/kernel/kernel-tests.pro to tools/generate_online_help.sh
--- a/src/kernel/kernel-tests.pro
+++ b/tools/generate_online_help.sh
@@ -1,56 +1,51 @@
-#
-# Project file for kernel tests
-#
-TEMPLATE = app
-LANGUAGE = C++
-TARGET = kernel_tests
+#!/bin/sh
 
-CONFIG += complete 
-CONFIG += console precompile_header
-CONFIG += debug
-CONFIG -= qt
-DEFINES += DEBUG
-
-#PRECOMPILED_HEADER = static.h
-
-POST_TARGETDEPENDS = libkernel.a
-
-LIBS += -lkernel -L./ -lutils -L../utils/
-
-#
-# Common utils
-#
-HEADERS += ../utils/debug.h ../utils/iterator.h ../utils/observer.h
-
-#
-# Tests
-#
-HEADERS += tests/testmain.h tests/testcobject.h tests/testcpdf.h
-SOURCES += tests/testcobjectsimple.cc tests/testcobjectcomplex.cc tests/testcstream.cc
-SOURCES += tests/teststream.cc tests/teststreamwriter.cc
-SOURCES += tests/testcobjecthelpers.cc tests/testpdfoperators.cc
-SOURCES += tests/testcpage.cc tests/testccontentstream.cc tests/testcpdf.cc
-SOURCES += tests/testutils.cc tests/testoutlines.cc tests/testtextoutput.cc
-SOURCES += main.cc 
-
-LIBS += -ldl -lcppunit 
-
-#
-# Kernel special settings
-#
-#QMAKE_CXXFLAGS += -Wall -W -Wconversion -Wshadow -Wcast-qual -Wwrite-strings -Wuninitialized -ansi -pedantic -Wno-unused-variable -finline-limit=10000 --param inline-unit-growth=1000 --param large-function-growth=1000
-QMAKE_CXXFLAGS_DEBUG += -W -Wall -Wconversion -Wcast-qual -Wwrite-strings  -ansi -pedantic -Wno-unused-variable -O0 -Wunused-function
-
-#
-# xpdf and utils
-#
-INCLUDEPATH += ../ ../utils ../xpdf/ ../xpdf/xpdf ../xpdf/goo ../xpdf/splash ../xpdf/fofi
-
-#
-# Directories to creating files
-#
-unix {
-  OBJECTS_DIR = .obj
+print_usage()
+{
+	echo
+	echo Usage:
+	echo
+	echo "`basename $0` doc_dir gui_dir [force]"
+	echo
+	echo doc_dir - path to the documentation directory
+	echo gui_dir - path to the gui directory
+	echo force - optional parameter which can be used to force regeneration even
+	echo         if help is already created
+	echo
+	echo Generates online help for gui application.
+	exit 1
 }
 
-include(kernel-obj.pro)
+if [ $# -lt 2 ]
+then
+	echo Not enough parameters.
+	print_usage
+fi
+
+DOC_DIR=$1
+GUI_DIR=$2
+
+if [ ! -d ${DOC_DIR} -o ! -d ${GUI_DIR} ]
+then 
+	echo Bad parameters.
+	print_usage
+fi
+
+# Check whether documentation is already generated and
+# exit if so (unless we are forced - 3rd parameter is 
+# present
+if [ -f ${GUI_DIR}/help/pdfedit.html ]
+then
+	if [ $# -ge 3 ]
+	then
+		echo Online help seems to be generated, but we are forced
+		echo to generate it again.
+		# TODO remove current help
+	else
+		echo Online help seems to be generated.
+		exit 0
+	fi
+fi
+
+cd ${DOC_DIR}/user 
+make online_help
src/kernel/kernel.pro to src/tests/kernel/testcobjecthelpers.cc
--- a/src/kernel/kernel.pro
+++ b/src/tests/kernel/testcobjecthelpers.cc
@@ -1,104 +1,76 @@
-#
-# Project file for kernel
-#
-TEMPLATE = lib
-LANGUAGE = C++
+/*                                                                              
+ * PDFedit - free program for PDF document manipulation.                        
+ * Copyright (C) 2006, 2007  PDFedit team:      Michal Hocko, 
+ *                                              Miroslav Jahoda,       
+ *                                              Jozef Misutka, 
+ *                                              Martin Petricek                                             
+ *
+ * Project is hosted on http://sourceforge.net/projects/pdfedit                                                                      
+ */ 
+// vim:tabstop=4:shiftwidth=4:noexpandtab:textwidth=80
 
-CONFIG += staticlib
-CONFIG += complete 
-CONFIG += console precompile_header
-CONFIG -= qt
+#include "testmain.h"
+#include "kernel/cobjecthelpers.h"
 
-include(../../config.pro)
+namespace {
 
-#check debug/release
-contains( E_RELEASE, no ) {
- CONFIG += debug
- DEFINES += DEBUG
- CONFIG -= release
- QMAKE_CXXFLAGS += -W -Wall -Wconversion -Wwrite-strings -pedantic -Wno-unused-variable -O0 -Wunused-function -Wwrite-strings -Wunused-macros 
-}
-contains( E_RELEASE, yes ) {
- # release mode
- # turns on optimalizations
- CONFIG += release
- CONFIG -= debug
- QMAKE_CXXFLAGS += -O2 -DNDEBUG
+/** Checks functionality od IdCollector class.
+ */
+void idCollectorTC()
+{
+	typedef std::vector<boost::shared_ptr<IProperty> > Storage;
+	typedef std::vector<size_t> Container;
+	typedef std::pair<size_t, const boost::shared_ptr<IProperty> > Entry;
+	
+	Storage array;
+	array.push_back(boost::shared_ptr<IProperty>(new CInt(1)));
+	array.push_back(boost::shared_ptr<IProperty>(new CInt(2)));
+	array.push_back(boost::shared_ptr<IProperty>(new CInt(1)));
+
+	Container container;
+	boost::shared_ptr<CInt> child(new CInt(1));
+	//typedef IdCollector<Container, size_t> IdCollectorType;
+	//IdCollectorType collector(container, child);
+	utils::IdCollector<Container, size_t> collector(container, child);
+
+	size_t pos=0;
+	for(Storage::iterator i=array.begin(); i!=array.end(); i++, pos++)
+	{
+		collector(Entry(pos, *i));
+	}
+
+	printf("container size=%u", container.size());
+	printf("Elements are:");
+	for(Container::iterator i=container.begin(); i!=container.end(); i++)
+		printf(" %u", *i);
+	printf("\n");
 }
 
-#
-# Kernel special settings
-#
-QMAKE_CXXFLAGS += -fexceptions
 
-#
-# Static lib
-#
-QMAKE_CXXFLAGS += -static
+} // end of annonym namespace
 
+class TestCObjectHelpers: public CppUnit::TestFixture
+{
+	CPPUNIT_TEST_SUITE(TestCObjectHelpers);
+		CPPUNIT_TEST(Test);
+	CPPUNIT_TEST_SUITE_END();
+public:
+	/*
+	void setUp()
+	{
+	}
 
-#PRECOMPILED_HEADER = static.h
+	void tearDown()
+	{
+	}
 
-#
-# Building tests
-#
-tests.commands	= qmake -o Makefile-tests kernel-tests.pro && make -f Makefile-tests
-tests.depends	= libkernel.a
-QMAKE_EXTRA_UNIX_TARGETS += tests
+	*/
 
-#
-# Cleaning tests
-#
-cleanall.commands	= make clean && make -f Makefile-tests clean
-QMAKE_EXTRA_UNIX_TARGETS += cleanall
+	void Test()
+	{
+		//idCollectorTC();
+	}
+};
 
-
-#
-# Common utils
-#
-HEADERS += ../utils/debug.h ../utils/iterator.h ../utils/observer.h
-
-#
-# Special utils
-#
-HEADERS += exceptions.h modecontroller.h filters.h xpdf.h cxref.h xrefwriter.h factories.h
-HEADERS += pdfwriter.h
-SOURCES += modecontroller.cc filters.cc factories.cc
-
-#
-# CObjects
-#
-HEADERS += iproperty.h cobject.h 
-HEADERS += cobjectsimple.h cobjectsimpleI.h carray.h cdict.h cstream.h cstreamsxpdfreader.h
-HEADERS += cobjecthelpers.h ccontentstream.h pdfoperators.h pdfoperatorsiter.h cpage.h cpdf.h 
-HEADERS += streamwriter.h cinlineimage.h coutline.h stateupdater.h
-HEADERS += cannotation.h
-
-SOURCES += cannotation.cc
-SOURCES += cxref.cc xrefwriter.cc streamwriter.cc
-SOURCES += iproperty.cc carray.cc cdict.cc cstream.cc cobject.cc
-SOURCES += cobjecthelpers.cc ccontentstream.cc pdfoperators.cc pdfoperatorsiter.cc stateupdater.cc
-SOURCES += pdfwriter.cc
-SOURCES += cinlineimage.cc coutline.cc
-SOURCES += cpage.cc cpdf.cc 
-
-#
-# Add ons
-#
-HEADERS += textoutput.h textoutputbuilder.h textoutputentities.h textoutputengines.h
-SOURCES += textoutputengines.cc textoutputentities.cc textoutputbuilder.cc
-
-
-#
-# xpdf and utils
-#
-INCLUDEPATH += ../ ../utils ../xpdf/ ../xpdf/xpdf ../xpdf/goo ../xpdf/splash ../xpdf/fofi
-
-#
-# Directories to creating files
-#
-unix {
-  OBJECTS_DIR = .obj
-}
-
-include(kernel-obj.pro)
+CPPUNIT_TEST_SUITE_REGISTRATION(TestCObjectHelpers);
+CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(TestCObjectHelpers, "TEST_COBJECTHELPERS");
src/kernel/main.cc to src/tests/kernel/main.cc
--- a/src/kernel/main.cc
+++ b/src/tests/kernel/main.cc
@@ -19,11 +19,11 @@
 #include <sys/stat.h>
 #include <unistd.h>
 
-#include "static.h"
+#include "kernel/static.h"
 
-#include "tests/testmain.h"
-#include "tests/testcobject.h"
-#include "tests/testcpdf.h"
+#include "testmain.h"
+#include "testcobject.h"
+#include "testcpdf.h"
 
 // Default rest pdf file
 const char* PDF_TEST_FILE_NAME = "../../doc/zadani.pdf";
src/kernel/tests/operator.conf to src/gui/Makefile.gui
--- a/src/kernel/tests/operator.conf
+++ b/src/gui/Makefile.gui
@@ -1,12 +1,19 @@
-# An example for operator hint configuration file
-# file has following format:
-# `#' starts comments
-# emtpty lines are ignored
-# [operatorName] : Hint text
-#       stands for hint describtion
+################################################################################
+# Workaround for proper Makefile.flags inclusion into the qmake generated 
+# makefile.
+#
+# I am able to use configuration specific variables from ../../Makefile.flags
+# in pdfedit.pro, however I am not able to force qmake to insert include 
+# ../../Makefile.flags at the beginning of the generated makefile, so my
+# variables are not visible.
+# This file shouldn't be named Makefile, because qmake run by accident will
+# overwrite it. 
+# If you want to compile *always* use this makefile rather than generated
+# one.
+################################################################################
 
-:Hint for this is not available
-Tj:Text visualization operator 
-g  : Any idea what it is
-q : # empty text
+include ../../Makefile.flags
 
+QTMAKEFILE = Makefile.qt
+
+include $(QTMAKEFILE)
src/kernel/tests/testccontentstream.cc to src/tests/kernel/testccontentstream.cc
--- a/src/kernel/tests/testccontentstream.cc
+++ b/src/tests/kernel/testccontentstream.cc
@@ -22,7 +22,7 @@
 #include "testcpdf.h"
 
 #include <PDFDoc.h>
-#include "../cpage.h"
+#include "kernel/cpage.h"
 
 
 //=====================================================================================
src/kernel/tests/testcobject.h to src/tests/kernel/testoutlines.cc
--- a/src/kernel/tests/testcobject.h
+++ b/src/tests/kernel/testoutlines.cc
@@ -8,42 +8,96 @@
  * Project is hosted on http://sourceforge.net/projects/pdfedit                                                                      
  */ 
 // vim:tabstop=4:shiftwidth=4:noexpandtab:textwidth=80
-
 /*
- * $RCSfile$
- *
- * $Log$
- * Revision 1.4  2007/02/04 20:17:03  mstsxfx
- * Common Licence comment for all cc and h files available in doc/licence_header
- * file and its content to all cc and h files in src/{gui,kernel,utils}
- * directories.
- * Xpdf code, QSA and QOutputDevice code are not touched
- *
- * Revision 1.3  2006/04/20 15:00:58  misuj1am
- *
- * -- cobject tests splitted to testcobjectsimple and testcobjectcomplex
- *
- * Revision 1.2  2006/04/20 13:22:22  misuj1am
- *
- * --ADD: cppunittests, improved other tests
- *
- * Revision 1.1  2006/04/01 00:39:50  misuj1am
- *
- *
- * -- tests
- *
- * Revision 1.21  2006/03/31 21:14:40  hockm0bm
- * * file format changed (tabulators - same style)
- * * CVS header
- * * main changed to contain only test functions
- *         - all code from main moved to cobjects_test function
- *         - added cpdf_tests function for CPdf testing
- *
- *
+ * =====================================================================================
+ *        Filename:  testioutlines.cc
+ *         Created:  06/02/2006 02:30:27 AM CEST
+ *          Author:  jmisutka (), 
+ * =====================================================================================
  */
 
-/**
- * Cobject test function.
- */
-//void cobject_tests(int argc, char ** argv, const char*);
+#include "testmain.h"
+#include "testcobject.h"
+#include "testcpage.h"
+#include "testcpdf.h"
 
+#include "kernel/factories.h"
+
+#include "xpdf/PDFDoc.h"
+#include "kernel/cpage.h"
+
+
+//=====================================================================================
+namespace {
+//=====================================================================================
+using namespace std;
+using namespace boost;
+	
+bool
+getout (__attribute__((unused)) ostream& __attribute__((unused)) oss, const char* fileName)
+{
+	boost::shared_ptr<CPdf> pdf (getTestCPdf (fileName), pdf_deleter());
+
+	typedef vector<shared_ptr<IProperty> > Outs;
+	Outs outs;
+	pdf->getOutlines (outs);
+
+	if (outs.empty())
+		oss << " No outlines..." << flush;
+	else
+		for (Outs::iterator it = outs.begin(); it != outs.end(); ++it)
+			oss << "-" << getOutlineText (*it) << flush;
+			
+
+	return true;
+}
+
+
+//=========================================================================
+// class TestOutline
+//=========================================================================
+
+class TestCOutline : public CppUnit::TestFixture 
+{
+	CPPUNIT_TEST_SUITE(TestCOutline);
+		CPPUNIT_TEST(TestGetOutline);
+	CPPUNIT_TEST_SUITE_END();
+
+public:
+	void setUp() {OUTPUT << endl;}
+	void tearDown() {}
+
+public:
+	//
+	//
+	//
+	void TestGetOutline ()
+	{
+		OUTPUT << "Outlines..." << endl;
+
+		for (FileList::const_iterator it = fileList.begin (); it != fileList.end(); ++it)
+		{
+			OUTPUT << "Testing filename: " << *it << endl;
+		
+			TEST(" get outlines");
+			CPPUNIT_ASSERT (getout (OUTPUT, (*it).c_str()));
+			OK_TEST;
+		}
+	}
+
+};
+
+CPPUNIT_TEST_SUITE_REGISTRATION(TestCOutline);
+CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(TestCOutline, "TEST_COUTLINE");
+
+//=====================================================================================
+} // namespace
+//=====================================================================================
+
+
+
+
+
+
+
+
src/kernel/tests/testcobjectcomplex.cc to src/tests/kernel/testcobjectcomplex.cc
--- a/src/kernel/tests/testcobjectcomplex.cc
+++ b/src/tests/kernel/testcobjectcomplex.cc
@@ -21,7 +21,7 @@
 #include "testcpdf.h"
 
 #include <PDFDoc.h>
-#include "../ccontentstream.h"
+#include "kernel/ccontentstream.h"
 
 //=====================================================================================
 namespace {
src/kernel/tests/testcobjecthelpers.cc to src/tests/kernel/teststreamwriter.cc
--- a/src/kernel/tests/testcobjecthelpers.cc
+++ b/src/tests/kernel/teststreamwriter.cc
@@ -9,88 +9,120 @@
  */ 
 // vim:tabstop=4:shiftwidth=4:noexpandtab:textwidth=80
 
-/*
- * $RCSfile$
- *
- * $Log$
- * Revision 1.3  2007/02/04 20:17:03  mstsxfx
- * Common Licence comment for all cc and h files available in doc/licence_header
- * file and its content to all cc and h files in src/{gui,kernel,utils}
- * directories.
- * Xpdf code, QSA and QOutputDevice code are not touched
- *
- * Revision 1.2  2006/05/29 00:11:52  misuj1am
- *
- * -- tests fixed / improved
- *
- * Revision 1.1  2006/04/21 20:42:17  hockm0bm
- * start of cobjecthelpers tests
- *
- *
- */
+#include <errno.h>
+#include "testmain.h"
+#include "kernel/streamwriter.h"
 
-#include "testmain.h"
-#include "../cobjecthelpers.h"
+	
+class TestStreamWriter: public CppUnit::TestFixture
+{
+	CPPUNIT_TEST_SUITE(TestStreamWriter);
+		CPPUNIT_TEST(Test);
+	CPPUNIT_TEST_SUITE_END();
 
-namespace {
+public:
 
-/** Checks functionality od IdCollector class.
- */
-void idCollectorTC()
-{
-	typedef std::vector<boost::shared_ptr<IProperty> > Storage;
-	typedef std::vector<size_t> Container;
-	typedef std::pair<size_t, const boost::shared_ptr<IProperty> > Entry;
-	
-	Storage array;
-	array.push_back(boost::shared_ptr<IProperty>(new CInt(1)));
-	array.push_back(boost::shared_ptr<IProperty>(new CInt(2)));
-	array.push_back(boost::shared_ptr<IProperty>(new CInt(1)));
+	void fileStreamWriterTC(string test_file)
+	{
+		printf("%s with file %s\n", __FUNCTION__, test_file.c_str());
+		
+		FILE * file1=fopen(test_file.c_str(), "r+");
+		// TODO ignore empty files
+		if(!file1)
+		{
+			printf("file: %s open error (reason=%s)\n", test_file.c_str(), strerror(errno));
+			return;
+		}
+		FILE * file2=fopen(test_file.c_str(), "r+");
+		if(!file2)
+		{
+			printf("file: %s open error (reason=%s)\n", test_file.c_str(), strerror(errno));
+			return;
+		}
 
-	Container container;
-	boost::shared_ptr<CInt> child(new CInt(1));
-	//typedef IdCollector<Container, size_t> IdCollectorType;
-	//IdCollectorType collector(container, child);
-	utils::IdCollector<Container, size_t> collector(container, child);
+		Object dict;
+		FileStreamWriter * streamWriter=new FileStreamWriter(file1, 0, false, 0, &dict);
 
-	size_t pos=0;
-	for(Storage::iterator i=array.begin(); i!=array.end(); i++, pos++)
+		printf("TC01:\tData from FileStreamWriter are same as file content\n");
+		int ch1,
+			ch2;
+		while((ch1=streamWriter->getChar())!=EOF)
+		{
+			ch2=fgetc(file2);
+			CPPUNIT_ASSERT(ch1==ch2);
+		}
+
+		printf("TC02:\tData change is visible in original file\n");
+		// sets position to the begining, reads data from this position
+		// and puts different value there. Forces flush on stream to be
+		// sure that data are really written
+		streamWriter->setPos(0);
+		int data1=streamWriter->getChar();
+		streamWriter->setPos(0);
+		streamWriter->putChar(++data1);
+		streamWriter->flush();
+
+		// seeks to the file2 begining and reads first byte
+		fseek(file2, 0, SEEK_SET);
+		int data2=fgetc(file2);
+		
+		// data must be same
+		CPPUNIT_ASSERT(data1==data2);
+		
+		// returns to original state
+		streamWriter->setPos(0);
+		streamWriter->putChar(--data1);
+		streamWriter->flush();
+
+		printf("TC03:\tclone test");
+		// clones stream from the begining to the file size half
+		fseek(file2, 0, SEEK_END);
+		size_t halfSize=ftell(file2) / 2;
+		string cloneName=test_file+"_clone";
+		FILE * file3=fopen(cloneName.c_str(), "w+");
+		streamWriter->cloneToFile(file3, 0, halfSize);
+		fflush(file3);
+		
+		// compares cloned file3 and stream content
+		fseek(file3, 0, SEEK_SET);
+		streamWriter->setPos(0);
+		for(size_t i=0; i<halfSize; i++)
+		{
+			int ch1=streamWriter->getChar(),
+				ch2=fgetc(file3);
+			CPPUNIT_ASSERT(ch1==ch2);
+		}
+
+		delete streamWriter;
+		fclose(file1);
+		fclose(file2);
+		fclose(file3);
+		// removes clone file
+		remove(cloneName.c_str());
+	}
+		
+	virtual ~TestStreamWriter()
 	{
-		collector(Entry(pos, *i));
 	}
 
-	printf("container size=%u", container.size());
-	printf("Elements are:");
-	for(Container::iterator i=container.begin(); i!=container.end(); i++)
-		printf(" %u", *i);
-	printf("\n");
-}
-
-
-} // end of annonym namespace
-
-class TestCObjectHelpers: public CppUnit::TestFixture
-{
-	CPPUNIT_TEST_SUITE(TestCObjectHelpers);
-		CPPUNIT_TEST(Test);
-	CPPUNIT_TEST_SUITE_END();
-public:
-	/*
 	void setUp()
 	{
 	}
+
 
 	void tearDown()
 	{
 	}
 
-	*/
-
 	void Test()
 	{
-		//idCollectorTC();
+		// creates pdf instances for all files
+		for(FileList::iterator i=fileList.begin(); i!=fileList.end(); i++)
+		{
+			fileStreamWriterTC(*i);
+		}
 	}
 };
+CPPUNIT_TEST_SUITE_REGISTRATION(TestStreamWriter);
+CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(TestStreamWriter, "TEST_STREAMWRITER");
 
-CPPUNIT_TEST_SUITE_REGISTRATION(TestCObjectHelpers);
-CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(TestCObjectHelpers, "TEST_COBJECTHELPERS");
src/kernel/tests/testcobjectsimple.cc to src/tests/kernel/testcobjectsimple.cc
--- a/src/kernel/tests/testcobjectsimple.cc
+++ b/src/tests/kernel/testcobjectsimple.cc
@@ -21,7 +21,7 @@
 #include "testcpdf.h"
 
 #include <PDFDoc.h>
-#include "../ccontentstream.h"
+#include "kernel/ccontentstream.h"
 
 
 //=====================================================================================
src/kernel/tests/testcpage.cc to src/tests/kernel/testcpage.cc
--- a/src/kernel/tests/testcpage.cc
+++ b/src/tests/kernel/testcpage.cc
@@ -21,10 +21,10 @@
 #include "testcpage.h"
 #include "testcpdf.h"
 
-#include "factories.h"
-
-#include <PDFDoc.h>
-#include "../cpage.h"
+#include "kernel/factories.h"
+
+#include "xpdf/PDFDoc.h"
+#include "kernel/cpage.h"
 
 
 //=====================================================================================
src/kernel/tests/testcpage.h to src/tests/kernel/testcpage.h
--- a/src/kernel/tests/testcpage.h
+++ b/src/tests/kernel/testcpage.h
@@ -9,11 +9,6 @@
  */ 
 // vim:tabstop=4:shiftwidth=4:noexpandtab:textwidth=80
 
-/*
- * $RCSfile$
- *
- */
-
 boost::shared_ptr<CPage> 
 getPage (const char* fileName, boost::shared_ptr<CPdf> pdf, size_t pageNum = 1);
 
src/kernel/tests/testcpdf.cc to src/tests/kernel/testcpdf.cc
--- a/src/kernel/tests/testcpdf.cc
+++ b/src/tests/kernel/testcpdf.cc
@@ -9,155 +9,12 @@
  */ 
 // vim:tabstop=4:shiftwidth=4:noexpandtab:textwidth=80
 
-/*
- * $RCSfile$
- *
- * $Log$
- * Revision 1.37  2007/11/11 13:43:22  mstsxfx
- * * Typo fixes
- * * getIndirectProperty has reference property now
- * 	- non compatible usage corrected
- *
- * Revision 1.36  2007/02/04 20:17:03  mstsxfx
- * Common Licence comment for all cc and h files available in doc/licence_header
- * file and its content to all cc and h files in src/{gui,kernel,utils}
- * directories.
- * Xpdf code, QSA and QOutputDevice code are not touched
- *
- * Revision 1.35  2006/10/30 21:24:46  hockm0bm
- * test case for inserting page to an empty document
- *
- * Revision 1.34  2006/08/09 20:47:35  hockm0bm
- * indirectPropertyTC minor changes
- *
- * Revision 1.33  2006/06/27 17:26:24  hockm0bm
- * cloneTC skips linearized pdfs
- *
- * Revision 1.32  2006/06/25 17:55:43  hockm0bm
- * * pageManipulationTC
- *         - TC07 fixed (all pages are considered when collecting isDescendants)
- *
- * Revision 1.31  2006/06/22 18:47:27  hockm0bm
- * * deprecated functions replaced
- * * new test cases for ambiguous page tree
- *
- * Revision 1.30  2006/06/19 17:31:56  hockm0bm
- * pageManipulationTC almost finished
- *         - most of test cases are done and successfull
- *         - CPdf interface page manipulation well tested
- *
- * Revision 1.29  2006/06/17 15:04:49  misuj1am
- *
- * -- include rem/add
- *
- * Revision 1.28  2006/06/11 22:17:23  hockm0bm
- * TODOs
- *
- * Revision 1.27  2006/06/11 22:11:46  hockm0bm
- * testManipulationTC
- *         - new test cases for intermediate node (insert new internode,
- *           replace internode by another one)
- *
- * Revision 1.26  2006/06/11 14:36:10  hockm0bm
- * sync with getNodePosition signature change
- *
- * Revision 1.25  2006/06/06 09:47:56  hockm0bm
- * pageIterationTC checks all iterator methods for pages with isChanged
- *         - test DOESN'T PASS - CPage may do changes when it is created (adds
- *           inherited attributes if not present directly in dictionary)
- *
- * Revision 1.24  2006/06/05 22:41:34  hockm0bm
- * * example implementation of IProgressBar
- * * DelinearizatorTC uses
- * * ProgressBar and ProgressObserver test
- *
- * Revision 1.23  2006/06/05 08:57:33  hockm0bm
- * refactoring CObjectSimple
- *         - getPropertyValue -> getValue
- *         - writeValue -> setValue
- *
- * Revision 1.22  2006/05/30 22:30:48  hockm0bm
- * cloneTC corrected
- *         - sets back to the newest revision after testing to get given pdf
- *           instance to same state as it was given to the function
- *
- * Revision 1.21  2006/05/30 17:31:18  hockm0bm
- * cloneTC method added
- *         - creates clone of each revision
- *
- * Revision 1.20  2006/05/24 19:34:03  hockm0bm
- * pageIterationTC mem leak fixed
- *         - fakeXpdfDict is deallocated now
- *
- * Revision 1.19  2006/05/16 18:56:42  hockm0bm
- * test for Delinearizator with observer (ProgressBar)
- *
- * Revision 1.18  2006/05/15 18:31:46  hockm0bm
- * isEncrypted testing
- *
- * Revision 1.17  2006/05/13 22:12:26  hockm0bm
- * tests updated
- *         - addIndirectProperty tested quite well now and seems that new
- *           implementation is correct finally
- *
- * Revision 1.16  2006/05/10 20:38:02  hockm0bm
- * isChanged checked
- *
- * Revision 1.15  2006/05/06 21:17:38  hockm0bm
- * removed additional code
- *
- * Revision 1.14  2006/05/06 08:56:57  hockm0bm
- * tests improved - all of them are successfull - everything tested seems to work
- *
- * Revision 1.13  2006/04/28 17:18:17  hockm0bm
- * * instancingTC
- *         - just skeleton
- * * revisionsTC removed from pdfs loop in Test method
- * * indirectPropertyTC
- *         - first test cases
- *
- * Revision 1.12  2006/04/27 18:35:50  hockm0bm
- * revisionsTC new test cases
- *        - changeRevision seams to be tested quite well
- *
- * Revision 1.11  2006/04/25 02:28:05  misuj1am
- *
- * -- improved cpage, cstream, tests
- *
- * Revision 1.10  2006/04/23 23:20:40  misuj1am
- *
- * -- improved: zero page (incorrect) document handling
- *
- * Revision 1.9  2006/04/23 22:09:48  hockm0bm
- * * pageIterationTC finished
- *         - all tests are ok
- * * pageManipulationTC
- *         - almost finised (interNode removing is TODO)
- *         - all tests until now are ok
- * * revisionsTC
- *         - just skeleton
- *
- * Revision 1.8  2006/04/23 11:16:48  hockm0bm
- * pageManipulationTC added
- *         - insertPage, removePage test cases
- *
- * Revision 1.7  2006/04/22 19:46:12  hockm0bm
- * test case Test added to CPPUnit tests of CPdf suite
- *
- * Revision 1.6  2006/04/22 19:32:20  hockm0bm
- * * old test style replaced by CPPUINT TestCPdf class
- * * TestCPdf::pageIterationTC method implemented
- *
- *
- *
- */
-
 #include "testmain.h"
 #include "testcpdf.h"
-#include "../factories.h"
-#include "../cobjecthelpers.h"
-#include "../cpdf.h"
-#include "../pdfwriter.h"
+#include "kernel/factories.h"
+#include "kernel/cobjecthelpers.h"
+#include "kernel/cpdf.h"
+#include "kernel/pdfwriter.h"
 #include "utils/delinearizator.h"
 
 using namespace pdfobjects;
src/kernel/tests/testcpdf.h to src/tests/kernel/testtextoutput.cc
--- a/src/kernel/tests/testcpdf.h
+++ b/src/tests/kernel/testtextoutput.cc
@@ -8,57 +8,98 @@
  * Project is hosted on http://sourceforge.net/projects/pdfedit                                                                      
  */ 
 // vim:tabstop=4:shiftwidth=4:noexpandtab:textwidth=80
-
 /*
- * $RCSfile$
- *
- * $Log$
- * Revision 1.7  2007/02/04 20:17:03  mstsxfx
- * Common Licence comment for all cc and h files available in doc/licence_header
- * file and its content to all cc and h files in src/{gui,kernel,utils}
- * directories.
- * Xpdf code, QSA and QOutputDevice code are not touched
- *
- * Revision 1.6  2006/04/22 19:32:21  hockm0bm
- * * old test style replaced by CPPUINT TestCPdf class
- * * TestCPdf::pageIterationTC method implemented
- *
- * Revision 1.5  2006/04/12 20:40:44  hockm0bm
- * getTestCPdf is not inline now - because of linking problem for kernel binary
- *
- * Revision 1.4  2006/04/12 20:19:33  hockm0bm
- * methods reorganization
- *
- * Revision 1.3  2006/04/09 21:29:33  misuj1am
- *
- *
- * -- changed the method that creates CPdf to match my views
- *
- * Revision 1.2  2006/04/03 14:38:21  misuj1am
- *
- *
- * -- ADD: getTestPdf function that returns valid pdf object
- *
- * Revision 1.1  2006/04/01 00:39:50  misuj1am
- *
- *
- * -- tests
- *
- * Revision 1.21  2006/03/31 21:14:40  hockm0bm
- * * file format changed (tabulators - same style)
- * * CVS header
- * * main changed to contain only test functions
- *         - all code from main moved to cobjects_test function
- *         - added cpdf_tests function for CPdf testing
- *
- *
+ * =====================================================================================
+ *        Filename:  testtextoutput.cc
+ *         Created:  13/10/2006 09:07:27 PM CEST
+ *          Author:  jmisutka (), 
+ * =====================================================================================
  */
-#ifndef _TESTCPDF_H_
-#define _TESTCPDF_H_
 
 #include "testmain.h"
+#include "testcobject.h"
+#include "testcpage.h"
+#include "testcpdf.h"
+
+#include "kernel/textoutput.h"
+#include "kernel/textoutputengines.h"
 
 
-pdfobjects::CPdf * getTestCPdf(const char* filename);
+//=====================================================================================
+namespace {
+//=====================================================================================
+using namespace std;
+using namespace boost;
+using namespace textoutput;
 
-#endif // _TESTCPDF_H_
+//=====================================================================================
+bool text_cpageout (__attribute__((unused)) std::ostream& oss, 
+			   __attribute__((unused)) const char* file_name)
+{
+
+	boost::shared_ptr<CPdf> pdf (getTestCPdf (file_name), pdf_deleter());
+
+	for (size_t i = 0; i < pdf->getPageCount() && i < 1/*TEST_MAX_PAGE_COUNT*/; ++i)
+	{
+		boost::shared_ptr<CPage> page = pdf->getPage (i+1);
+
+		XmlOutputBuilder out;
+		page->convert<SimpleWordEngine,
+					  SimpleLineEngine,
+					  SimpleColumnEngine> (out);
+		ofstream of;
+		of.open ("1.xml");
+		of << XmlOutputBuilder::xml(out);
+		of.close();
+	}
+
+	return true;
+}
+
+
+//=========================================================================
+// class TestTextOutput
+//=========================================================================
+
+class TestTextOutput : public CppUnit::TestFixture 
+{
+	CPPUNIT_TEST_SUITE(TestTextOutput);
+		CPPUNIT_TEST(test_cpageout);
+	CPPUNIT_TEST_SUITE_END();
+
+public:
+	void setUp() {OUTPUT << endl;}
+	void tearDown() {}
+
+public:
+	//
+	//
+	//
+	void test_cpageout ()
+	{
+		for (FileList::const_iterator it = fileList.begin (); it != fileList.end(); ++it)
+		{
+			OUTPUT << "Testing filename: " << *it << endl;
+			
+			TEST(" text cpage output");
+			CPPUNIT_ASSERT (text_cpageout (OUTPUT, (*it).c_str()));
+			OK_TEST;
+		}
+	}
+
+};
+
+CPPUNIT_TEST_SUITE_REGISTRATION(TestTextOutput);
+CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(TestTextOutput, "TEST_TEXTOUTPUT");
+
+//=====================================================================================
+} // namespace
+//=====================================================================================
+
+
+
+
+
+
+
+
src/kernel/tests/testcstream.cc to src/tests/kernel/testcstream.cc
--- a/src/kernel/tests/testcstream.cc
+++ b/src/tests/kernel/testcstream.cc
@@ -21,11 +21,11 @@
 #include "testcpage.h"
 #include "testcpdf.h"
 
-#include "factories.h"
-#include "filters.h"
+#include "kernel/factories.h"
+#include "kernel/filters.h"
 
 #include <PDFDoc.h>
-#include "../cpage.h"
+#include "kernel/cpage.h"
 
 
 //=====================================================================================
src/kernel/tests/testmain.h to src/tests/kernel/testmain.h
--- a/src/kernel/tests/testmain.h
+++ b/src/tests/kernel/testmain.h
@@ -9,156 +9,16 @@
  */ 
 // vim:tabstop=4:shiftwidth=4:noexpandtab:textwidth=80
 
-/*
- * $RCSfile$
- *
- * $Log$
- * Revision 1.29  2007/11/11 13:43:22  mstsxfx
- * * Typo fixes
- * * getIndirectProperty has reference property now
- * 	- non compatible usage corrected
- *
- * Revision 1.28  2007/11/11 12:41:47  mstsxfx
- * * XPdf 3.02 ported to the tree
- * 	- compilable but not tested at the moment
- * 	- previous state marked by XPDF_3_01-PDFedit_patches
- * 	- mark whole tree with XPDF_3_02-PDFedit_patches after testing
- * * kernel, kpdf-kde-3.3.2 code synced with changes
- * 	- mainly Parser constructor signature change
- *
- * Revision 1.27  2007/02/04 20:17:03  mstsxfx
- * Common Licence comment for all cc and h files available in doc/licence_header
- * file and its content to all cc and h files in src/{gui,kernel,utils}
- * directories.
- * Xpdf code, QSA and QOutputDevice code are not touched
- *
- * Revision 1.26  2006/09/04 01:22:58  misuj1am
- *
- * -- code cleanup
- * 	-- removed not used testing output
- * 	-- tests do not create temporary files if not specified
- *
- * Revision 1.25  2006/06/17 15:11:50  misuj1am
- *
- * -- observers updated
- * -- changes due to cobjectcomplex division
- *
- * Revision 1.24  2006/06/14 23:04:22  misuj1am
- *
- * -- minor fixes
- *
- * Revision 1.23  2006/06/14 22:48:13  misuj1am
- *
- * -- minor updates
- *
- * Revision 1.22  2006/06/09 15:48:24  misuj1am
- *
- *
- * -- structure updates
- *
- * Revision 1.21  2006/06/02 11:31:46  misuj1am
- *
- * -- ADD: outline get text function
- * -- CHANGE: getOutlines returns just iproperites
- * --tests changed
- *
- * Revision 1.20  2006/06/02 01:34:56  misuj1am
- *
- * -- ADD: outline test
- *
- * Revision 1.19  2006/05/29 00:11:53  misuj1am
- *
- * -- tests fixed / improved
- *
- * Revision 1.18  2006/05/27 21:08:10  misuj1am
- *
- * -- tests improved
- * 	-- tests are testing every page instead of only on the first page
- *
- * Revision 1.17  2006/05/10 21:36:59  misuj1am
- *
- * -- adapted to ~CPdf beeing made private
- *
- * Revision 1.16  2006/05/03 01:06:18  misuj1am
- *
- * -- tests improvments
- *
- * Revision 1.15  2006/05/01 12:29:34  misuj1am
- *
- * -- CStream update, CContentStream update, CInlineImage added - test version
- *
- * Revision 1.14  2006/04/23 23:01:28  misuj1am
- *
- * -- tests improved
- *
- * Revision 1.13  2006/04/22 14:57:52  misuj1am
- *
- * --Observers improved
- *
- * Revision 1.12  2006/04/22 02:36:50  misuj1am
- *
- * -- observer correction
- *
- * Revision 1.11  2006/04/21 20:39:50  misuj1am
- *
- * -- test output improved
- *
- * Revision 1.10  2006/04/21 19:06:21  misuj1am
- *
- * -- tests improved
- *
- * Revision 1.9  2006/04/20 21:53:20  misuj1am
- *
- * --minor improvments
- *
- * Revision 1.8  2006/04/20 19:06:28  misuj1am
- *
- * -- tests improved
- *
- * Revision 1.7  2006/04/20 18:27:57  misuj1am
- *
- * -- cppunit tests
- *
- * Revision 1.6  2006/04/20 13:22:23  misuj1am
- *
- * --ADD: cppunittests, improved other tests
- *
- * Revision 1.5  2006/04/20 12:17:51  misuj1am
- *
- * -- IMPORTANT: when kernel output in tests needed, write ./kernel [file] all
- *
- * Revision 1.4  2006/04/10 23:07:22  misuj1am
- *
- *
- * -- ADD support for getObjectsAddPosition
- * 	-- almost done
- *
- * Revision 1.3  2006/04/02 17:15:17  misuj1am
- *
- *
- * -- testing
- *
- * Revision 1.2  2006/04/01 17:55:44  misuj1am
- *
- *
- * --ADD: MEM_CHECK at the end of testing
- *
- * Revision 1.1  2006/04/01 00:39:51  misuj1am
- *
- *
- * -- tests
- *
- */
 #ifndef _TESTMAIN_H_
 #define _TESTMAIN_H_
 
-#include "../static.h"
-#include "../cobject.h"
-#include "../cpdf.h"
-#include "../cpage.h"
-#include "../pdfoperators.h"
-#include "../coutline.h"
-#include "../exceptions.h"
+#include "kernel/static.h"
+#include "kernel/cobject.h"
+#include "kernel/cpdf.h"
+#include "kernel/cpage.h"
+#include "kernel/pdfoperators.h"
+#include "kernel/coutline.h"
+#include "kernel/exceptions.h"
 
 //CPPUNITTEST
 #include <cppunit/TestRunner.h>
src/kernel/tests/testoutlines.cc to config/cppunit.m4
--- a/src/kernel/tests/testoutlines.cc
+++ b/config/cppunit.m4
@@ -1,103 +1,78 @@
-/*                                                                              
- * PDFedit - free program for PDF document manipulation.                        
- * Copyright (C) 2006, 2007  PDFedit team:      Michal Hocko, 
- *                                              Miroslav Jahoda,       
- *                                              Jozef Misutka, 
- *                                              Martin Petricek                                             
- *
- * Project is hosted on http://sourceforge.net/projects/pdfedit                                                                      
- */ 
-// vim:tabstop=4:shiftwidth=4:noexpandtab:textwidth=80
-/*
- * =====================================================================================
- *        Filename:  testioutlines.cc
- *         Created:  06/02/2006 02:30:27 AM CEST
- *          Author:  jmisutka (), 
- * =====================================================================================
- */
+dnl
+dnl AM_PATH_CPPUNIT(MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
+dnl
+AC_DEFUN([AM_PATH_CPPUNIT],
+[
 
-#include "testmain.h"
-#include "testcobject.h"
-#include "testcpage.h"
-#include "testcpdf.h"
+AC_ARG_WITH(cppunit-prefix,[  --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)],
+            cppunit_config_prefix="$withval", cppunit_config_prefix="")
+AC_ARG_WITH(cppunit-exec-prefix,[  --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)],
+            cppunit_config_exec_prefix="$withval", cppunit_config_exec_prefix="")
 
-#include "factories.h"
+  if test x$cppunit_config_exec_prefix != x ; then
+     cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
+     if test x${CPPUNIT_CONFIG+set} != xset ; then
+        CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
+     fi
+  fi
+  if test x$cppunit_config_prefix != x ; then
+     cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
+     if test x${CPPUNIT_CONFIG+set} != xset ; then
+        CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
+     fi
+  fi
 
-#include <PDFDoc.h>
-#include "../cpage.h"
+  AC_PATH_PROG(CPPUNIT_CONFIG, cppunit-config, no)
+  cppunit_version_min=$1
 
+  AC_MSG_CHECKING(for Cppunit - version >= $cppunit_version_min)
+  no_cppunit=""
+  if test "$CPPUNIT_CONFIG" = "no" ; then
+    AC_MSG_RESULT(no)
+    no_cppunit=yes
+  else
+    CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
+    CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
+    cppunit_version=`$CPPUNIT_CONFIG --version`
 
-//=====================================================================================
-namespace {
-//=====================================================================================
-using namespace std;
-using namespace boost;
-	
-bool
-getout (__attribute__((unused)) ostream& __attribute__((unused)) oss, const char* fileName)
-{
-	boost::shared_ptr<CPdf> pdf (getTestCPdf (fileName), pdf_deleter());
+    cppunit_major_version=`echo $cppunit_version | \
+           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
+    cppunit_minor_version=`echo $cppunit_version | \
+           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
+    cppunit_micro_version=`echo $cppunit_version | \
+           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
 
-	typedef vector<shared_ptr<IProperty> > Outs;
-	Outs outs;
-	pdf->getOutlines (outs);
+    cppunit_major_min=`echo $cppunit_version_min | \
+           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
+    cppunit_minor_min=`echo $cppunit_version_min | \
+           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
+    cppunit_micro_min=`echo $cppunit_version_min | \
+           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
 
-	if (outs.empty())
-		oss << " No outlines..." << flush;
-	else
-		for (Outs::iterator it = outs.begin(); it != outs.end(); ++it)
-			oss << "-" << getOutlineText (*it) << flush;
-			
+    cppunit_version_proper=`expr \
+        $cppunit_major_version \> $cppunit_major_min \| \
+        $cppunit_major_version \= $cppunit_major_min \& \
+        $cppunit_minor_version \> $cppunit_minor_min \| \
+        $cppunit_major_version \= $cppunit_major_min \& \
+        $cppunit_minor_version \= $cppunit_minor_min \& \
+        $cppunit_micro_version \>= $cppunit_micro_min `
 
-	return true;
-}
+    if test "$cppunit_version_proper" = "1" ; then
+      AC_MSG_RESULT([$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version])
+    else
+      AC_MSG_RESULT(no)
+      no_cppunit=yes
+    fi
+  fi
 
+  if test "x$no_cppunit" = x ; then
+     ifelse([$2], , :, [$2])     
+  else
+     CPPUNIT_CFLAGS=""
+     CPPUNIT_LIBS=""
+     ifelse([$3], , :, [$3])
+  fi
 
-//=========================================================================
-// class TestOutline
-//=========================================================================
-
-class TestCOutline : public CppUnit::TestFixture 
-{
-	CPPUNIT_TEST_SUITE(TestCOutline);
-		CPPUNIT_TEST(TestGetOutline);
-	CPPUNIT_TEST_SUITE_END();
-
-public:
-	void setUp() {OUTPUT << endl;}
-	void tearDown() {}
-
-public:
-	//
-	//
-	//
-	void TestGetOutline ()
-	{
-		OUTPUT << "Outlines..." << endl;
-
-		for (FileList::const_iterator it = fileList.begin (); it != fileList.end(); ++it)
-		{
-			OUTPUT << "Testing filename: " << *it << endl;
-		
-			TEST(" get outlines");
-			CPPUNIT_ASSERT (getout (OUTPUT, (*it).c_str()));
-			OK_TEST;
-		}
-	}
-
-};
-
-CPPUNIT_TEST_SUITE_REGISTRATION(TestCOutline);
-CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(TestCOutline, "TEST_COUTLINE");
-
-//=====================================================================================
-} // namespace
-//=====================================================================================
-
-
-
-
-
-
-
-
+  AC_SUBST(CPPUNIT_CFLAGS)
+  AC_SUBST(CPPUNIT_LIBS)
+])
src/kernel/tests/testpdfoperators.cc to src/tests/kernel/testpdfoperators.cc
--- a/src/kernel/tests/testpdfoperators.cc
+++ b/src/tests/kernel/testpdfoperators.cc
@@ -22,7 +22,7 @@
 #include "testcpdf.h"
 
 #include <PDFDoc.h>
-#include "../cpage.h"
+#include "kernel/cpage.h"
 
 
 //=====================================================================================
src/kernel/tests/teststream.cc to src/tests/kernel/teststream.cc
--- a/src/kernel/tests/teststream.cc
+++ b/src/tests/kernel/teststream.cc
@@ -9,61 +9,9 @@
  */ 
 // vim:tabstop=4:shiftwidth=4:noexpandtab:textwidth=80
 
-/*
- * $RCSfile$
- *
- * $Log$
- * Revision 1.11  2007/02/04 20:17:03  mstsxfx
- * Common Licence comment for all cc and h files available in doc/licence_header
- * file and its content to all cc and h files in src/{gui,kernel,utils}
- * directories.
- * Xpdf code, QSA and QOutputDevice code are not touched
- *
- * Revision 1.10  2006/07/12 18:41:16  hockm0bm
- * content stream test case uncommented
- *
- * Revision 1.9  2006/06/25 09:27:19  hockm0bm
- * mem leak fixed
- *         - thanks to Jozo
- *
- * Revision 1.8  2006/06/22 18:47:27  hockm0bm
- * * deprecated functions replaced
- * * new test cases for ambiguous page tree
- *
- * Revision 1.7  2006/05/27 21:08:10  misuj1am
- *
- * -- tests improved
- * 	-- tests are testing every page instead of only on the first page
- *
- * Revision 1.6  2006/05/15 18:33:03  hockm0bm
- * test improvements
- *
- * Revision 1.5  2006/05/14 23:53:54  misuj1am
- *
- * -- test fixed
- *
- * Revision 1.4  2006/05/14 21:10:19  hockm0bm
- * content stream to xpdf Object test
- *         - doesn't work properly
- *
- * Revision 1.3  2006/05/13 22:19:29  hockm0bm
- * isInValidPdf refactored to hasValidPdf or isPdfValid functions
- *
- * Revision 1.2  2006/05/08 14:47:46  hockm0bm
- * * clone for FileStream test
- *         - seems to work
- * * clone for FileStream substream test
- *         - seems to work
- *
- * Revision 1.1  2006/05/06 21:16:22  hockm0bm
- * test class for streams
- *
- *
- */
-
 #include <errno.h>
 #include "testmain.h"
-#include "../xpdf.h"
+#include "kernel/xpdf.h"
 
 class TestStream: public CppUnit::TestFixture
 {
src/kernel/tests/teststreamwriter.cc to config/freetype2.m4
--- a/src/kernel/tests/teststreamwriter.cc
+++ b/config/freetype2.m4
@@ -1,149 +1,117 @@
-/*                                                                              
- * PDFedit - free program for PDF document manipulation.                        
- * Copyright (C) 2006, 2007  PDFedit team:      Michal Hocko, 
- *                                              Miroslav Jahoda,       
- *                                              Jozef Misutka, 
- *                                              Martin Petricek                                             
- *
- * Project is hosted on http://sourceforge.net/projects/pdfedit                                                                      
- */ 
-// vim:tabstop=4:shiftwidth=4:noexpandtab:textwidth=80
+# Configure paths for FreeType2
+# Marcelo Magallon 2001-10-26, based on gtk.m4 by Owen Taylor
+#
+# Copyright 2001, 2003, 2007 by
+# David Turner, Robert Wilhelm, and Werner Lemberg.
+#
+# This file is part of the FreeType project, and may only be used, modified,
+# and distributed under the terms of the FreeType project license,
+# LICENSE.TXT.  By continuing to use, modify, or distribute this file you
+# indicate that you have read the license and understand and accept it
+# fully.
+#
+# As a special exception to the FreeType project license, this file may be
+# distributed as part of a program that contains a configuration script
+# generated by Autoconf, under the same distribution terms as the rest of
+# that program.
+#
+# serial 2
 
-/*
- * $RCSfile$
- *
- * $Log$
- * Revision 1.3  2007/11/10 19:24:53  mstsxfx
- * StreamWriter::clone renamed to cloneToFile
- * 	- original name clashes with BaseStream method - thanks to Gwurk
- * 	  for reporting
- *
- * Revision 1.2  2007/02/04 20:17:03  mstsxfx
- * Common Licence comment for all cc and h files available in doc/licence_header
- * file and its content to all cc and h files in src/{gui,kernel,utils}
- * directories.
- * Xpdf code, QSA and QOutputDevice code are not touched
- *
- * Revision 1.1  2006/05/08 14:20:41  hockm0bm
- * test cases for FileStreamWriter - everything seems to work correctly
- *
- *
- */
+# AC_CHECK_FT2([MINIMUM-VERSION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
+# Test for FreeType 2, and define FT2_CFLAGS and FT2_LIBS.
+# MINIMUM-VERSION is what libtool reports; the default is `7.0.1' (this is
+# FreeType 2.0.4).
+#
+AC_DEFUN([AC_CHECK_FT2],
+  [# Get the cflags and libraries from the freetype-config script
+   #
+   AC_ARG_WITH([ft-prefix],
+     dnl don't quote AS_HELP_STRING!
+     AS_HELP_STRING([--with-ft-prefix=PREFIX],
+                    [Prefix where FreeType is installed (optional)]),
+     [ft_config_prefix="$withval"],
+     [ft_config_prefix=""])
 
-#include <errno.h>
-#include "testmain.h"
-#include "../streamwriter.h"
+   AC_ARG_WITH([ft-exec-prefix],
+     dnl don't quote AS_HELP_STRING!
+     AS_HELP_STRING([--with-ft-exec-prefix=PREFIX],
+                    [Exec prefix where FreeType is installed (optional)]),
+     [ft_config_exec_prefix="$withval"],
+     [ft_config_exec_prefix=""])
 
-	
-class TestStreamWriter: public CppUnit::TestFixture
-{
-	CPPUNIT_TEST_SUITE(TestStreamWriter);
-		CPPUNIT_TEST(Test);
-	CPPUNIT_TEST_SUITE_END();
+   AC_ARG_ENABLE([freetypetest],
+     dnl don't quote AS_HELP_STRING!
+     AS_HELP_STRING([--disable-freetypetest],
+                    [Do not try to compile and run a test FreeType program]),
+     [],
+     [enable_fttest=yes])
 
-public:
+   if test x$ft_config_exec_prefix != x ; then
+     ft_config_args="$ft_config_args --exec-prefix=$ft_config_exec_prefix"
+     if test x${FT2_CONFIG+set} != xset ; then
+       FT2_CONFIG=$ft_config_exec_prefix/bin/freetype-config
+     fi
+   fi
 
-	void fileStreamWriterTC(string test_file)
-	{
-		printf("%s with file %s\n", __FUNCTION__, test_file.c_str());
-		
-		FILE * file1=fopen(test_file.c_str(), "r+");
-		// TODO ignore empty files
-		if(!file1)
-		{
-			printf("file: %s open error (reason=%s)\n", test_file.c_str(), strerror(errno));
-			return;
-		}
-		FILE * file2=fopen(test_file.c_str(), "r+");
-		if(!file2)
-		{
-			printf("file: %s open error (reason=%s)\n", test_file.c_str(), strerror(errno));
-			return;
-		}
+   if test x$ft_config_prefix != x ; then
+     ft_config_args="$ft_config_args --prefix=$ft_config_prefix"
+     if test x${FT2_CONFIG+set} != xset ; then
+       FT2_CONFIG=$ft_config_prefix/bin/freetype-config
+     fi
+   fi
 
-		Object dict;
-		FileStreamWriter * streamWriter=new FileStreamWriter(file1, 0, false, 0, &dict);
+   AC_PATH_PROG([FT2_CONFIG], [freetype-config], [no])
 
-		printf("TC01:\tData from FileStreamWriter are same as file content\n");
-		int ch1,
-			ch2;
-		while((ch1=streamWriter->getChar())!=EOF)
-		{
-			ch2=fgetc(file2);
-			CPPUNIT_ASSERT(ch1==ch2);
-		}
+   min_ft_version=m4_if([$1], [], [7.0.1], [$1])
+   AC_MSG_CHECKING([for FreeType -- version >= $min_ft_version])
+   no_ft=""
+   if test "$FT2_CONFIG" = "no" ; then
+     no_ft=yes
+   else
+     FT2_CFLAGS=`$FT2_CONFIG $ft_config_args --cflags`
+     FT2_LIBS=`$FT2_CONFIG $ft_config_args --libs`
+   fi                 # test "$FT2_CONFIG" = "no"
 
-		printf("TC02:\tData change is visible in original file\n");
-		// sets position to the begining, reads data from this position
-		// and puts different value there. Forces flush on stream to be
-		// sure that data are really written
-		streamWriter->setPos(0);
-		int data1=streamWriter->getChar();
-		streamWriter->setPos(0);
-		streamWriter->putChar(++data1);
-		streamWriter->flush();
+   if test x$no_ft = x ; then
+     AC_MSG_RESULT([yes])
+     m4_if([$2], [], [:], [$2])
+   else
+     AC_MSG_RESULT([no])
+     if test "$FT2_CONFIG" = "no" ; then
+       AC_MSG_WARN([
 
-		// seeks to the file2 begining and reads first byte
-		fseek(file2, 0, SEEK_SET);
-		int data2=fgetc(file2);
-		
-		// data must be same
-		CPPUNIT_ASSERT(data1==data2);
-		
-		// returns to original state
-		streamWriter->setPos(0);
-		streamWriter->putChar(--data1);
-		streamWriter->flush();
+  The freetype-config script installed by FreeType 2 could not be found.
+  If FreeType 2 was installed in PREFIX, make sure PREFIX/bin is in
+  your path, or set the FT2_CONFIG environment variable to the
+  full path to freetype-config.
+       ])
+     else
+       if test x$ft_config_is_lt = xyes ; then
+         AC_MSG_WARN([
 
-		printf("TC03:\tclone test");
-		// clones stream from the begining to the file size half
-		fseek(file2, 0, SEEK_END);
-		size_t halfSize=ftell(file2) / 2;
-		string cloneName=test_file+"_clone";
-		FILE * file3=fopen(cloneName.c_str(), "w+");
-		streamWriter->cloneToFile(file3, 0, halfSize);
-		fflush(file3);
-		
-		// compares cloned file3 and stream content
-		fseek(file3, 0, SEEK_SET);
-		streamWriter->setPos(0);
-		for(size_t i=0; i<halfSize; i++)
-		{
-			int ch1=streamWriter->getChar(),
-				ch2=fgetc(file3);
-			CPPUNIT_ASSERT(ch1==ch2);
-		}
+  Your installed version of the FreeType 2 library is too old.
+  If you have different versions of FreeType 2, make sure that
+  correct values for --with-ft-prefix or --with-ft-exec-prefix
+  are used, or set the FT2_CONFIG environment variable to the
+  full path to freetype-config.
+         ])
+       else
+         AC_MSG_WARN([
 
-		delete streamWriter;
-		fclose(file1);
-		fclose(file2);
-		fclose(file3);
-		// removes clone file
-		remove(cloneName.c_str());
-	}
-		
-	virtual ~TestStreamWriter()
-	{
-	}
+  The FreeType test program failed to run.  If your system uses
+  shared libraries and they are installed outside the normal
+  system library path, make sure the variable LD_LIBRARY_PATH
+  (or whatever is appropriate for your system) is correctly set.
+         ])
+       fi
+     fi
 
-	void setUp()
-	{
-	}
+     FT2_CFLAGS=""
+     FT2_LIBS=""
+     m4_if([$3], [], [:], [$3])
+   fi
 
+   AC_SUBST([FT2_CFLAGS])
+   AC_SUBST([FT2_LIBS])])
 
-	void tearDown()
-	{
-	}
-
-	void Test()
-	{
-		// creates pdf instances for all files
-		for(FileList::iterator i=fileList.begin(); i!=fileList.end(); i++)
-		{
-			fileStreamWriterTC(*i);
-		}
-	}
-};
-CPPUNIT_TEST_SUITE_REGISTRATION(TestStreamWriter);
-CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(TestStreamWriter, "TEST_STREAMWRITER");
-
+# end of freetype2.m4
src/kernel/tests/testutils.cc to src/tests/kernel/testutils.cc
--- a/src/kernel/tests/testutils.cc
+++ b/src/tests/kernel/testutils.cc
@@ -9,41 +9,10 @@
  */ 
 // vim:tabstop=4:shiftwidth=4:noexpandtab:textwidth=80
 
-/*
- * $RCSfile$
- *
- * $Log$
- * Revision 1.5  2007/02/04 20:17:03  mstsxfx
- * Common Licence comment for all cc and h files available in doc/licence_header
- * file and its content to all cc and h files in src/{gui,kernel,utils}
- * directories.
- * Xpdf code, QSA and QOutputDevice code are not touched
- *
- * Revision 1.4  2006/06/23 18:20:29  misuj1am
- *
- * -- g++ warning removed
- * -- decoration - (CPage::Test can produce huge output, removed the test from the end and placed it in the middle)
- *
- * Revision 1.3  2006/06/17 18:35:24  hockm0bm
- * observerHandlerTC added
- *
- * Revision 1.2  2006/06/06 11:48:57  hockm0bm
- * * test configuration files added
- * * test case for OperatorHinter
- * * test files macros changed (placed to tests directory)
- *
- * Revision 1.1  2006/06/01 14:07:36  hockm0bm
- * * New test module for utils used by kernel
- *         - tokenizer function tested
- *         - ModeController class tested
- * * libutils is linked with kernel test program
- *
- *
- */
 #include "testmain.h"
-#include "../utils/confparser.h"
-#include "../modecontroller.h"
-#include "../operatorhinter.h"
+#include "utils/confparser.h"
+#include "kernel/modecontroller.h"
+#include "kernel/operatorhinter.h"
 
 template<typename T=pdfobjects::IProperty>
 class Observer:public observer::IObserver<T>
src/xpdf/misc/xpdf.dt to src/tests/kernel/testcpdf.h
--- a/src/xpdf/misc/xpdf.dt
+++ b/src/tests/kernel/testcpdf.h
@@ -1,28 +1,20 @@
-# simple CDE action for xpdf
-# written by Roland.Mainz@informatik.med.uni-giessen.de
-#
-# To use, copy this file into $HOME/.dt/types
-#
-# NOTE: this overrides the actions AcroRead and AcroReadPrint 
-# defined in /usr/dt/appconfig/types/C/solaris.dt
+/*                                                                              
+ * PDFedit - free program for PDF document manipulation.                        
+ * Copyright (C) 2006, 2007  PDFedit team:      Michal Hocko, 
+ *                                              Miroslav Jahoda,       
+ *                                              Jozef Misutka, 
+ *                                              Martin Petricek                                             
+ *
+ * Project is hosted on http://sourceforge.net/projects/pdfedit                                                                      
+ */ 
+// vim:tabstop=4:shiftwidth=4:noexpandtab:textwidth=80
 
-ACTION AcroRead
-{
-        TYPE            COMMAND
-        WINDOW_TYPE     NO_STDIO
-        EXEC_STRING     xpdf "%(File)Arg_1%"
-}
+#ifndef _TESTCPDF_H_
+#define _TESTCPDF_H_
 
-# NOTE: Add a '-level1' switch to pdftops if your printer does not
-#       support Level 2 Postscript.
-ACTION AcroReadPrint
-{
-        TYPE            COMMAND
-        WINDOW_TYPE     NO_STDIO
-        EXEC_STRING     ksh -c ' \
-                MYFILE="%(File)Arg_1%" ; \
-                pdftops "${MYFILE}" /dev/stdout | \
-                dtlp -w -b "${MYFILE}"'
-}
+#include "testmain.h"
 
-# EOF.
+
+pdfobjects::CPdf * getTestCPdf(const char* filename);
+
+#endif // _TESTCPDF_H_
1 2 3 .. 17 > >> (Page 1 of 17)