1 2002-09-14 Martin Kretzschmar <Martin.Kretzschmar@inf.tu-dresden.de>
3 * gpdf-embeddable-view.cc (destroy_view): kill already commented
4 out, previously unused destructor
5 (gev_destroy): set mainbox member = NULL
7 * pdf-view.cc (pv_destroy): new destructor
8 (class_init): use it, init parent_class
9 (pdf_view_construct): reindent
11 2002-09-14 Martin Kretzschmar <Martin.Kretzschmar@inf.tu-dresden.de>
13 * gpdf-embeddable-view.h (GPdfEmbeddableView): kill bed member
15 * gpdf-embeddable-view.cc: removed newlines from g_message calls
16 (class_init): use checked casts, we now have destroy, no need to
17 keep a ref to our embeddable here
18 (gev_destroy): new destructor
20 2002-09-14 Martin Kretzschmar <Martin.Kretzschmar@inf.tu-dresden.de>
22 * gpdf-embeddable-view.cc (gpdf_embeddable_view_new):
24 (view_create_menus, view_remove_menus): rename to
25 (gev_set_ui_container, gev_unset_ui_container): and rewrite in EOG
28 2002-09-13 Martin Kretzschmar <Martin.Kretzschmar@inf.tu-dresden.de>
30 * gpdf-embeddable-view.cc (gev_activate): chain up to parent's
31 activate handler, not to grand parent's
33 2002-09-13 Martin Kretzschmar <Martin.Kretzschmar@inf.tu-dresden.de>
35 * bonobo-application-x-pdf.cc (embeddable_factory): don't
36 initialize embeddable (where did that come from?)
38 * gpdf-embeddable-view.cc (gpdf_embeddable_view_construct): don't
39 handle "activate" by connecting...
40 (class_init): ...install a default signal handler...
41 (gev_activate): cleaned up "activate" handler, renamed from
44 2002-09-13 Martin Kretzschmar <Martin.Kretzschmar@inf.tu-dresden.de>
46 * Makefile.am: add pdf-view.cc, pdf-view.h
48 * gpdf-embeddable-view.cc (view_is_good, first_page, last_page)
49 (next_page, prev_page, configure_size, setup_size, setup_pixmap)
50 (render_page, realize_mainbox, redraw_view_all, real_redraw_view)
52 (first_page, last_page, next_page, prev_page, redraw_view_all):
53 only declare here, use definitions from pdf-view.cc
54 (page_first_cb, page_next_cb, page_prev_cb, page_last_cb):
55 s/view_data_t/PdfView/ etc.
56 (view_switch_page): kill
57 (zoom_to_fit): leave only declaration
58 (view_zoom_verb, page_zoom_fit_width_cb, page_zoom_fit_height_cb)
59 (page_enlarge_cb, page_shrink_cb, view_zoom_query): s///
60 (verbs[]): make static
61 (view_create_menus, view_remove_menus, view_activate): s///
62 (button_press_event_cb, gesture_page_event_cb)
63 (gesture_zoom_event_cb): kill
64 (key_press_event_cb): s///, only handle scrolling here
65 (mainbox_realize): kill
66 (destroy_view): comment out for now
68 (gpdf_embeddable_view_construct): mainbox = pdf_view_new,
69 remove mainbox construction code
71 * pdf-view.cc (view_is_good): s/view_data_t/PdfView/
72 (first_page, last_page, next_page, prev_page): non-static
73 (setup_pixmap): view_data is our mainbox now
74 (render_page): s/view_data_t/PdfView/ s/view_data/view/
75 (redraw_view_all): ditto
76 (realize_mainbox): /GPdfEmbeddableView/PdfView/ etc.
77 (real_redraw_view): ditto
78 (redraw_view): ditto, view is our mainbox now
79 (page_first_cb, page_next_cb, page_prev_cb, page_last_cb): kill
80 here (verb implementations)
81 (view_switch_page): s/// as above
82 (zoom_to_fit): non-static, commented out for now
83 (view_zoom_verb, view_zoom_query): s/// as above
84 (page_zoom_fit_width_cb, page_zoom_fit_height_cb)
85 (page_enlarge_cb, page_shrink_cb): kill here (verb impl)
86 (verbs[], view_create_menus, view_remove_menus, view_activate):
87 kill here (bonobo stuff)
88 (gesture_page_event_cb, gesture_zoom_event_cb): s///
89 (key_press_event_cb): don't handle scrolling here, s///
90 (destroy_view): kill here
91 (pdf_view_construct): kill everything except mainbox construction
94 * gpdf-embeddable-view.h: view_data_t is no longer a typedef'd
95 GPdfEmbeddableView. Remove PdfView related members from
98 * pdf-view.h: s/GPdfEmbeddableView/PdfView/ with some AI ;)
99 GPdfEmbeddableView still typedef'd view_data_t. Super class
102 Split bonobo / non-bonobo parts of GPdfEmbeddableView:
104 * pdf-view.h: new file (cvs copy of gpdf-embeddable.h)
106 * pdf-view.c: ditto. These will contain non-bonobo parts
108 2002-09-08 Martin Kretzschmar <Martin.Kretzschmar@inf.tu-dresden.de>
110 * GOutputDev.h: add missing gdk include
112 * GOutputDev.cc (GOutputDev::drawLink): don't #if 0, just don't
114 (GOutputDev::drawImage, GOutputDev::drawImageMask): use Michael's
115 broken image handling code from gpdf 0.90.1 instead of my even
118 * gpdf-embeddable-view.cc (render_page): disable links here.
119 (realize_mainbox): view == view_data now. Don't have to
120 gtk_object_get_data anymore
121 (real_redraw_view): ditto
122 (redraw_view): ditto, make it static again
123 (gpdf_embeddable_view_construct): connect redraw_view to
124 pdf_changed signal, don't gtk_object_set_data "view_data"
125 (view_switch_page, view_zoom_verb, view_activate)
126 (button_press_event_cb, gesture_page_event_cb)
127 (gesture_zoom_event_cb, key_press_event_cb, mainbox_realize): make
130 * gpdf-embeddable.cc (class_init): add "pdf_changed" signal
131 (load_pdf_from_stream): emit it, don't redraw_view explicitly
133 * gpdf-embeddable.h: add signal to class struct
135 2002-09-01 Martin Kretzschmar <Martin.Kretzschmar@inf.tu-dresden.de>
137 * gpdf-embeddable.cc (gpdf_embeddable_view_factory): move here
138 from bonobo-application-x-pdf.cc
140 * GOutputDev.cc (GOutputDev::drawLink): comment out for
141 now. Segfaults. I don't understand this.
143 * bonobo-application-x-pdf.cc: move view_data_t related code
144 ( except view_factory) to gpdf-embeddable-view.cc, remove lots of
147 * gpdf-embeddable-view.h: new files with new GPdfEmbeddableView
150 * gpdf-embeddable-view.cc:
152 * gtkgesture.h: double include protection
154 * XOutputDev.h: add missing include "Object.h"
156 * GOutputDev.h: add missing include "Object.h"
158 2002-08-31 Martin Kretzschmar <Martin.Kretzschmar@inf.tu-dresden.de>
160 * gpdf-embeddable.cc:
162 * gpdf-embeddable.h: bed_t: Replace Data Value with Object
163 [Fowler] i.e. turn it into the GPdf::Embeddable class.
165 * bonobo-application-x-pdf.cc: temporarily make some functions
167 (view_is_good): move up in file, use it in more places.
168 (setup_pixmap): remove window parameter, get it from view_data
169 (destroy_embed): move to GPdfEmbeddable::destroy
170 (embeddable_factory): drastically simplify, work is done in
171 GPdfEmbeddable::new and friends
172 remove count of running_objects.
174 * gpdf-util.h: new file
175 (E_MAKE_TYPE): copied from gal
177 2002-08-29 Martin Kretzschmar <Martin.Kretzschmar@inf.tu-dresden.de>
179 * bonobo-application-x-pdf.cc: move struct bed_t to
180 gpdf-embeddable.{cc,h}
181 (setup_pixmap) remove doc parameter. (Get it from view_data param)
183 * gpdf-embeddable.cc: New files to contain the embeddable class
187 * gpdf.cc (main): remove call to setlocale (done in
188 gnome_init...), ignore return value of oaf_init, let bonobo_init
189 figure out which orb to use.
191 * Link.h: declare some methods as const.
194 2002-08-12 Martin Kretzschmar <Martin.Kretzschmar@inf.tu-dresden.de>
196 * GOutputDev.cc: make it compile (without Type 3 support for now)
198 * bonobo-application-x-pdf.cc: Derek has removed the global xref
199 variable. Remove the ``Ugly global xref fix''
201 2002-08-09 Martin Kretzschmar <Martin.Kretzschmar@inf.tu-dresden.de>
203 * BonoboStream.h: ditto.
205 * BonoboStream.cc: sync with FileStream.
207 Merge in Xpdf 1.01 files
209 * GOutputDev.cc (drawImage), (drawImageMask): use gdk_image_get
212 2002-08-05 Martin Kretzschmar <Martin.Kretzschmar@inf.tu-dresden.de>
214 * GOutputDev.h: ditto.
216 * GOutputDev.cc: sync with XOutputDev.cc.
218 * bonobo-application-x-pdf.cc (printCommands): is in Gfx.cc now
220 2002-08-04 Martin Kretzschmar <Martin.Kretzschmar@inf.tu-dresden.de>
222 * BonoboStream.cc: merge in decryption code from FileStream 0.92
223 (close): new method, from FileStream,
224 (~bonoboStream): use close
226 * BonoboStream.h: #define bonoboStreamBufSize as in FileStream
228 (bonoboStream): use it.
230 2001-01-11 Michael Meeks <michael@helixcode.com>
232 * gpdf.cc (container_launch_component): don't add the client
233 site to the item container.
235 2000-12-21 Michael Meeks <michael@helixcode.com>
237 * bonobo-application-x-pdf.cc: Kill mutex / thread init code,
240 * gpdf.cc: update the IID naming scheme.
242 * bonobo-application-x-pdf.cc (init_bonobo_application_x_pdf_factory):
243 ditto. (init_server_factory): setup ORB properly.
245 * Makefile.am: De-goadize; update oafinfo fnames.
247 2000-11-16 Ramiro Estrugo <ramiro@eazel.com>
249 * bonobo-application-x-pdf.cc:
250 Make the signatures of callbacks match the declaraed types to
251 avoid compiler warnings.
253 2000-11-07 Fatih Demir <kabalak@gmx.net>
255 * .cvsignore: Added bonobo-application-x-pdf-ui.h and
256 gpdf-ui.h to the ignores.
258 2000-10-19 Michael Meeks <michael@helixcode.com>
260 * gpdf.cc: update for Dietmer internal changes.
262 2000-10-17 Michael Meeks <michael@helixcode.com>
266 * Makefile.am: sort out xml files.
268 * gpdf.cc: Re-engineer to the new UI handler.
270 * bonobo-application-x-pdf.cc: update to new UI handler
272 * bonobo-appliation-x-pdf-ui.xml: create.
274 * gpdf-ui.xml: create.
276 2000-10-07 Michael Meeks <michael@helixcode.com>
278 * gpdf.cc (main): cut out stale gnorba fat.
280 * bonobo-application-x-pdf.cc (init_server_factory),
281 (init_bonobo_application_x_pdf_factory): ditto.
283 * bonobo-application-x-pdf.cc (embeddable_factory): remove the
286 2000-10-04 Michael Meeks <michael@helixcode.com>
288 * bonobo-application-x-pdf.cc (view_create_menus): upd.
290 * gpdf.cc (container_launch_component): update for ItemContainer
291 rename. (container_new): update to bonobo-win stuff.
292 (container_set_view): use compat_get_container.
294 2000-08-13 Arik Devens <arik@helixcode.com>
296 * bonobo-application-x-pdf.cc (view_create_menus): Switched
297 page_enlarge_cb and page_shrink_cb to get zooming in and out
298 workin correctly in the menu.
300 2000-08-02 Michael Meeks <michael@helixcode.com>
302 * Makefile.am (gpdf_LDADD): kill ghastly hack adding -lbonobo.
303 (bonobo_application_x_pdf_LDADD): add EXTRA_GNOME_LIBS
305 2000-07-25 Michael Meeks <michael@helixcode.com>
307 * bonobo-application-x-pdf.cc (embeddable_factory): s/gtk/bonobo/
308 on unref. Junk 2 stop tabs throught, Derek can have my kittens.
309 (view_create_menus): create the pdf toolbar before using it.
310 (button_press_event_cb): return a value.
312 2000-07-04 Michael Meeks <michael@helixcode.com>
314 * GOutputDev.cc (drawImage): kill double free.
316 * BonoboStream.cc (bfread): update for new API.
318 2000-03-10 Michael Meeks <michael@helixcode.com>
320 * gpdf.cc: s/GNOME/Bonobo/
322 * application-x-pdf.gnorba: s/GNOME/Bonobo/
324 2000-02-28 Michael Meeks <michael@helixcode.com>
326 * bonobo-application-x-pdf.cc (view_factory): kill spurious UI
329 * gpdf.cc (container_set_view): update to new bonobo api.
331 2000-02-25 NotZed <NotZed@HelixCode.com>
333 * Makefile.am: Fixed up lists of sources so that distcheck works.
334 Also, only build gpdf if with gnome (otherwise distcheck fails).
336 * gpdf.cc (container_about_cmd): Define i if we are going
339 2000-02-09 Michael Meeks <michael@helixcode.com>
341 * Clean unused & lack of casting all round the place.
343 2000-02-07 Michael Meeks <michael@helixcode.com>
345 * bonobo-application-x-pdf.cc: fix typo.
347 1999-12-17 Michael Meeks <mmeeks@gnu.org>
349 * gpdf.cc (container_set_view): make wrapper invisible.
351 * bonobo-application-x-pdf.cc (embeddable_factory): kill
352 diff id string. + constify lots of paths.
353 (view_factory): kill size query. (view_size_query): kill.
355 1999-11-06 Michael Meeks <mmeeks@gnu.org>
357 * gtkgesture.c (gesture_data_append_point): fix leak.
359 * bonobo-application-x-pdf.c (setup_pixmap): Fix leak + flicker.
361 * GOutputDev.cc (~GOutputDev): Add clear of state stack + clear
362 text page + delete font. (startPage): fic gdkGC leaks.
365 1999-10-11 Michael Meeks <mmeeks@gnu.org>
367 * GOutputDev.cc: Re-enable stroke color setting.
369 1999-10-08 Michael Meeks <mmeeks@gnu.org>
371 * gpdf.cc (container_new): add to list before possibly removing.
373 * bonobo-application-x-pdf.cc (destroy_embed): Quit on last component
374 close. (load_pdf_from_stream): inline redraw-all with new API.
375 (redraw_view): implement (redraw_all): remove. (realize_mainbox): remould.
376 (destroy_view): Fix serious memory corruption freeing pixmap twice.
377 (view_activate): kill debug.
379 1999-10-06 Peter Teichman <pat4@acpub.duke.edu>
381 * GOutputDev.cc: add return type for GOutputServerFont::isOk()
383 * bonobo-application-x-pdf.cc: casting fixes, for compiling with
386 * PSOutputDev.cc: same, more casting fixes
388 1999-10-06 Michael Meeks <mmeeks@gnu.org>
390 * BonoboStream.cc (bfseek): Add debug case.
391 (bfread): nail immense leak.
393 * gpdf.cc (container_set_view): Activate the component to
394 allow gestures to work.
396 1999-10-05 Michael Meeks <mmeeks@gnu.org>
398 * bonobo-application-x-pdf.cc (setup_pixmap): Connect gestures + add
401 * gpdf.cc (container_close): Created. (container_close_cmd): Use it.
404 * gtkgesture.[ch]: Create.
406 1999-09-11 Michael Meeks <michael@nuclecu.unam.mx>
408 * bonobo-application-x-pdf.cc (destroy_view): destroy don't unref,
409 make more paranoid add debug. (destroy_embed): Clean.
411 * gpdf.cc (key_press_event_cb): Added all manner of shortcuts.
412 (container_new): Add key stuff (container_destroy_cb): Implement.
413 (container_destroy): Add paranoid check.
415 1999-09-07 Michael Meeks <michael@imaginator.com>
417 * gpdf.cc (container_new): Fiddled with scrollpane
419 1999-09-01 Michael Meeks <michael@imaginator.com>
421 * bonobo-application-x-pdf.cc: Fix a massive leak :-).
422 Considerably simplified with GtkPixmap. Fixed location problems.
424 1999-08-27 Michael Meeks <michael@imaginator.com>
426 * bonobo-application-x-pdf.cc: Remove count of embeddable
427 servers: seems to be handled inside Bonobo now.
429 1999-08-26 Michael Meeks <michael@imaginator.com>
431 * gpdf.cc (component_destroy): Improved clean up.
433 * bonobo-application-x-pdf.cc (bed_free_data): Expand, and
434 clean; remove redundant pdf_stream delete.
436 1999-08-24 Michael Meeks <michael@imaginator.com>
438 * application-x-pdf.gnorba: Update to new mime type.
440 * Makefile.am (gnorba_DATA): Rename mime type.
443 * gpdf.cc (main): File up a container if we fail to load
444 any of the command line files.
446 1999-08-24 Michael Meeks <michael@imaginator.com>
448 * Makefile.am: Cleaned + added thread bits.
450 * bonobo-image-x-pdf.cc: Add locking round 'xref' global.
451 Remove CORBA_Environment global.
453 1999-08-24 Michael Meeks <michael@imaginator.com>
455 * bonobo-image-x-pdf.cc (bed_free_data): Rationalised Stream
456 duplicate / release, and scoped BonoboFile correctly.
458 * BonoboStream.cc (bfseek): Add init / free to all corba
459 exceptions, ( stupidly lost this code somehow ).
461 * bonobo-image-x-pdf.cc (render_page): Add startDoc.
462 (main): Add freeParams.
464 1999-08-23 Michael Meeks <michael@imaginator.com>
466 * gpdf.cc (container_launch_component): Fix flags.
467 (container_create_toolbar): Fix for new Bonobo.
469 1999-08-23 Michael Meeks <michael@imaginator.com>
471 * Makefile.am: Added helper programs back in.
473 * bonobo-image-x-pdf.cc (view_create_menus): Toolbars.
475 1999-08-23 Miguel de Icaza <miguel@gnu.org>
477 * bonobo-image-x-pdf.cc: Replace exit() with gtk_main_quit()
479 1999-08-22 Miguel de Icaza <miguel@gnu.org>
481 * bonobo-image-x-pdf.cc (main): Add error checking for factory
484 1999-08-22 Michael Meeks <michael@imaginator.com>
486 * bonobo-image-x-pdf.cc: Add zoom.
488 1999-08-19 Michael Meeks <michael@imaginator.com>
490 * PDFDoc.cc: Altered to read / write lines.
492 * PDFDoc.cc: Move FileStream::checkHeader so its called
493 in FileStream constructor.
495 1999-08-18 Michael Meeks <michael@imaginator.com>
497 * gpdf.cc: cloned from test-container.
498 (launch_server): use GOAD_ACTIVATE_SHLIB not '0'
500 1999-08-16 Michael Meeks <michael@imaginator.com>
502 * Makefile.am (bin_PROGRAMS): Hack to only make bonobo component.
504 * bonobo-image-x-pdf.cc (view_factory): Init all members.
506 1999-08-15 Michael Meeks <michael@imaginator.com>
508 * Now bonobo-image-x-pdf works, but everything else
511 make bonobo-image-xpdf to compile...
513 1999-08-11 Michael Meeks <michael@imaginator.com>
515 * bonobo-image-x-pdf.cc: Fixed innumerable bugs,
517 (load_image_from_stream): Try closing the file to let its
518 contents hit disk before reading from it :-)
519 (configure_size): Don't get scared by configure_size.
520 (redraw_view): Get the parameters in some sort of order.
522 1999-08-11 Michael Meeks <michael@imaginator.com>
524 * bonobo-image-x-pdf.cc: Added.
526 * Makefile.am: added bonobo-image-x-pdf.c
528 1999-08-03 Michael Meeks <michael@imaginator.com>
530 * gpdf.cc: Lots of updates, gives up on logging changes
533 1999-08-02 Michael Meeks <michael@edenproject.org>
535 * GOutputDev.cc: Fix more silly region merging bugs.
537 1999-08-01 Michael Meeks <michael@edenproject.org>
539 * Makefile.in: Added -lglade, -lglade-gnome & Added -Wall
543 * gpdf.cc (loadFile): Add typecast.
544 Remove all DOC_ROOT's magic numbers.
546 Lots of other bits ...
548 1999-07-29 Michael Meeks <michael@edenproject.org>
550 * GOutputDev.cc: Hahaaa... the bug ! :-)
551 A difference in how GDK / X deal with merging rectangles
554 * gpdf.cc (doc_redraw_event): Messing around.
556 * GOutputDev.cc (drawChar): Fix char printed as string.
558 1999-06-09 Michael Meeks <michael@edenproject.org>
560 * gpdf.cc (main): Add error init.
562 1999-06-03 Michael Meeks <michael@edenproject.org>
564 * GOutputDev.cc (GOutputDev): Actually set up pixmapW & H
565 (GOutputDev): Setup 'depth' correctly.
567 * gpdf.cc (main): Moved freeParams() to after the main
570 * Params.cc (initParams): Added assert on fontPathLen.
571 (freeParams): Clean global pointers on free.
573 * Makefile.in (CXXFLAGS): Added LTKSRCDIR and
574 Xpm_CFLAGS to CXXFLAGS.
576 1999-05-29 Michael Meeks <michael@edenproject.org>
578 * Makefile.in (GPDF_OBJS): Remove XOutputDev
579 (all): Remove all but gpdf.
581 * gpdf.cc: Add define GString / undef.
582 (main): Argc not Argv :)
584 * GOutputDev.cc (findColor): Made pigs ear of colour
587 1999-05-28 Michael Meeks <michael@imaginator.com>
589 * GOutputDev.cc (drawChar16): XChar2b -> GdkWChar
591 1999-05-27 Michael Meeks <michael@imaginator.com>
593 * GOutputDev.cc (GOutputFont): Hacks.
594 (GOutputFont): Renamed.
595 (getFont): killed redundant 'display'
596 getGdkFont not getXFont.
597 (GOutputDev): NB. colormap -> gtk_widget_get_default_colormap ()
598 which returns GdkColormap *, killed colormap & depth1 in prototype.
599 Removed redundant assigns.
600 NB. Miguel says 'miguel> michael: a GdkPixmap is a GdkWindow'
601 Many misc. fixes upto convertSubPath.
603 * GOutputDev.h: Comments 'G'd and GOutputDev updated.
606 * Makefile.in (CXXFLAGS): Add GOOSRCDIR.