Commit graph

2081 commits

Author SHA1 Message Date
Piotr Szymanski
3cbcb2fb7f - update openDocument and freegui stuff
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=455516
2005-08-31 18:13:59 +00:00
Piotr Szymanski
e84607d34c - use the per character textpage generation by default
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=450786
2005-08-19 02:40:39 +00:00
Piotr Szymanski
0513ddeb58 - my wrapper around both KHTMLPart and KCHMView's chmlib wrapper so that we get a rendered page.
- What works: 
  + viewing documents 
  + thumbnail generation
  + calculating page sizes based on the size of their KHTMLView
  + table of contents

- What is pending:
  + using internal index, will code it once I comeback, wasted too much time on textpage generation

- What probably will not work:
  + printing the entire document, no CHM viewer provides it now
    it would need some kind of being able to print multiple HTML files
    at once or sth similar (maybe anyone else has an idea?)

- About generating the textpage:
  I went a long way, with enormous, and I do mean enormous help from SadEagle explaining to me how
  to use the KHTML API to generate the text page in a usable way (actually getCaretPos is depreciated
  and not document, and if you try to read the code, you'll notice it delegate the important stuff
  further and further into the KHTML core. Understanding KHTML's core is a bit too much to require 
  at the moment.

  Well finally I had something close to working, some words are matched properly - the rectangles are ok,
  most are matched with a one/one and a half offshot to the right, finally some are not matched because
  getCaretPost returns -1 as the left X border, I have no idea why, when I am asking for a

  This is why I am ccing to kfm-devel, if anyone of you guys, has a while to spare and would be kind 
  enough, I would like to ask you to look at generator_t.cpp and the 
      void TGenerator::recursiveExploreNodes(DOM::Node node,KPDFTextPage *tp)
  function, and tell me what seems wrong there? Also if you knwo a better way to get per character
  coordinates for every character in the text inside a HTML Page, please let me know.

CCMAIL:kfm-devel@kde.org


svn path=/trunk/playground/graphics/oKular/kpdf/; revision=450785
2005-08-19 02:37:37 +00:00
Piotr Szymanski
c394549b81 - reusing code from KCHHViewer, contains a small wrapper around chmlib and a better version of kio-msits then the one from kdevelop, added minor modifications by myself so that they can be used in oKular, also stripped the library of unneeded stuff
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=450783
2005-08-19 02:22:44 +00:00
Piotr Szymanski
e73e14bb1e - adding the directory for CHM backend (also to Makefile.am, no configure check yet, you need to have chmlib installed and have chm_lib.h in your include path, libchm in your lib path)
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=450782
2005-08-19 02:20:03 +00:00
Piotr Szymanski
687fe3c0fc - trying to fix the automake issue
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=448935
2005-08-13 16:27:32 +00:00
Piotr Szymanski
c259a8fc9d - I get:
make: *** No rule to make target `gssettingswidget.lo', needed by `libgssettings.la'.  Stop.
  but everything seems to be ok in the makefile.am, help me please


svn path=/trunk/playground/graphics/oKular/kpdf/; revision=445674
2005-08-11 15:31:20 +00:00
Piotr Szymanski
d2dc54a926 - fix compile
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=445650
2005-08-11 14:27:09 +00:00
Piotr Szymanski
21d9c299d0 - interpreters contain anticrash fixes,
- GSLogWindow initially based on kghostview code got a total overhaul and is practically rewritten
- THIS SHOULD COMPLETE 3rd of5 DELIVERABLES, 5 am, need sleep now.

svn path=/trunk/playground/graphics/oKular/kpdf/; revision=445397
2005-08-11 03:37:38 +00:00
Piotr Szymanski
b55e0c3d71 - API headers of ESP Ghostscript 8.15rc3, but should work with any other Ghostscript with libgs. GPL
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=445396
2005-08-11 03:00:14 +00:00
Piotr Szymanski
ac523a75a5 - add relevant signals (xpdf)
- port to new api (kimgio)

svn path=/trunk/playground/graphics/oKular/kpdf/; revision=445384
2005-08-11 01:00:20 +00:00
Piotr Szymanski
83a91ddbe9 - comment out textpage genration on loading of document (takes too much time, need a different way)
- port to new generator API/desktop

svn path=/trunk/playground/graphics/oKular/kpdf/; revision=445382
2005-08-11 00:48:11 +00:00
Piotr Szymanski
c5b853601e - adding the libgs detection functions
Ghostscript backend depends on libgs Ghostscript shared library.
- BTW. anyone know how to add a -Lsth flag to KDE_CHECK_LIB so it can be found if nonstandard directory is chosen?


svn path=/trunk/playground/graphics/oKular/kpdf/; revision=445369
2005-08-10 23:58:01 +00:00
Piotr Szymanski
571fe69b58 - sync X before sending pixmap, works ok now
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=445318
2005-08-10 21:37:35 +00:00
Piotr Szymanski
691a5324ab - update to reflect current state, only libgs configure check pending and this is finished
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=445294
2005-08-10 20:17:00 +00:00
Piotr Szymanski
5a03d1e2a6 - add libgs helper app
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=445291
2005-08-10 20:13:07 +00:00
Piotr Szymanski
aaa190ce2e - SVN_SILENT get rid of bad file
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=445278
2005-08-10 19:45:14 +00:00
Piotr Szymanski
94635d7041 - Adding the follwoing code:
1. GSGenerator (generator ghostview, need renaming) 
     Implements the Generator class, handles PixmapRequest transmission and starts other objects.

  2. InternalDocument
     Holds information stored in document's DSC and the information set by the user:
     Page Format, BoundingBoxes, etc, some code taken from kghostview

  3. GSInterpreterLib, the synchronous pixmap generator

  4. GSInterpreterCMD, asynchronous pixmap generator that communciates with the kpdflibgsasynchelper application
  

svn path=/trunk/playground/graphics/oKular/kpdf/; revision=445276
2005-08-10 19:44:28 +00:00
Piotr Szymanski
350667967d - pscopying functions, from kghostview
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=445274
2005-08-10 19:38:45 +00:00
Piotr Szymanski
9548d85a98 - add configuration widgets for ghostscript backend
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=445273
2005-08-10 19:36:54 +00:00
Piotr Szymanski
1bf4276bf8 - add %%Copyright comment support
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=445264
2005-08-10 19:32:05 +00:00
Piotr Szymanski
757db52ac7 - gui support
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=442117
2005-08-01 17:47:17 +00:00
Piotr Szymanski
235e3e4c29 - support for changing rotation and added access to the programs interface
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=442116
2005-08-01 17:46:43 +00:00
Piotr Szymanski
0be10d88e5 - code for use of command line GS interpreter, reused from kghostview, a little remodeled, still fails to work,
GS says it cant open the initial device, does it mean the pximap or the widget? does the widget need to be shown
  before it can receive communication from X11?
  Asking Luis, he might know. I wanted to use the library version of the interpreter but it 
  somehow fails to create instance... Will investigate it later.
CCMAIL: luis@luispedro.org

svn path=/trunk/playground/graphics/oKular/kpdf/; revision=439247
2005-07-27 13:52:37 +00:00
Piotr Szymanski
bb8e583945 -make the library based interprer one of the possibilities
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=438593
2005-07-25 13:25:26 +00:00
Piotr Szymanski
fdf0f2ff51 - gvinterpreter using libgs, doesnt work, gsapi fails to provide an instance, no idea why... moving to owrk on commandline gs
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=437870
2005-07-23 11:51:50 +00:00
Piotr Szymanski
1c7662dec2 - makefile changes for reorganisation
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=437102
2005-07-20 22:47:35 +00:00
Piotr Szymanski
a1989bda36 - move xpdf to genrators/xpdf/xpdf as it is that generator's backend
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=437100
2005-07-20 22:42:44 +00:00
Piotr Szymanski
df76e34a99 - add this too
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=437098
2005-07-20 22:39:05 +00:00
Piotr Szymanski
b9d106bb6f - move to generators
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=437097
2005-07-20 22:38:29 +00:00
Piotr Szymanski
fc6b0ad1f0 - reorganisation part 1, moving pdf generator to genrators/xpdf
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=437095
2005-07-20 22:33:27 +00:00