]> www.fi.muni.cz Git - evince.git/commitdiff
add xpdf/gpdf-link-canvas-item.cc xpdf/gpdf-links-canvas-layer.cc
authorMartin Kretzschmar <mkretzschmar@src.gnome.org>
Sat, 17 May 2003 22:21:50 +0000 (22:21 +0000)
committerMartin Kretzschmar <mkretzschmar@src.gnome.org>
Sat, 17 May 2003 22:21:50 +0000 (22:21 +0000)
* po/POTFILES.in: add xpdf/gpdf-link-canvas-item.cc
xpdf/gpdf-links-canvas-layer.cc

* xpdf/gpdf-view.cc (gpdf_view_motion_notify_event)
(gpdf_view_handle_drag_motion): chain up to parent implementation
of motion-notify, factor out dragging
(gpdf_view_button_press_event): chain up to parent
(gpdf_view_render_page): use GPdfLinksCanvasLayer to draw links
(link_clicked_cb, gpdf_view_link_action_goto): implement simple
GoTo links
(gpdf_view_dispose): unref the links_layer

* xpdf/gpdf-persist-stream.cc: store bonoboStream as BaseStream

* xpdf/gpdf-marshal.list: add VOID:POINTER

* xpdf/gpdf-links-canvas-layer.cc, xpdf/gpdf-links-canvas-layer.h:
new class, links are grouped in such layers

* xpdf/gpdf-link-canvas-item.cc, xpdf/gpdf-link-canvas-item.h: new
class, representing links in the GPdfView

* xpdf/Makefile.am: move away from $common_sources to convenience
libraries, add gpdf-link-canvas-item.{cc,h},
gpdf-links-canvas-layer.{cc,h}

* xpdf/BonoboStream.cc (bfread, bfseek): fix debug messages

pdf/xpdf/Makefile.am

index 0eb235e7696c784e6dd19f76582488fe32daf0a9..ffb96d7ef440e8b9b20b9588b2803eb70a83bc33 100644 (file)
@@ -1,3 +1,5 @@
+# SUBDIRS = . tests
+
 INCLUDES =                                                     \
        -I$(top_srcdir)                                         \
        -I$(top_srcdir)/goo                                     \
@@ -25,34 +27,29 @@ bin_PROGRAMS =      $(gui)
 
 libexec_PROGRAMS = gnome-pdf-viewer
 
-common_sources =               \
+noinst_LIBRARIES = libxpdf.a libgpdf.a
+
+libxpdf_a_SOURCES =            \
        Annot.cc                \
        Annot.h                 \
        Array.cc                \
        Array.h                 \
-       BaseFile.h              \
        BuiltinFont.cc          \
        BuiltinFont.h           \
        BuiltinFontTables.cc    \
        BuiltinFontTables.h     \
-       CMap.cc                 \
-       CMap.h                  \
        Catalog.cc              \
        Catalog.h               \
        CharCodeToUnicode.cc    \
        CharCodeToUnicode.h     \
-       CharTypes.h             \
-       CompactFontTables.h     \
+       CMap.cc                 \
+       CMap.h                  \
        Decrypt.cc              \
        Decrypt.h               \
        Dict.cc                 \
        Dict.h                  \
-       DisplayFontTable.h      \
        Error.cc                \
        Error.h                 \
-       ErrorCodes.h            \
-       FTFont.cc               \
-       FTFont.h                \
        FontEncodingTables.cc   \
        FontEncodingTables.h    \
        FontFile.cc             \
@@ -75,40 +72,55 @@ common_sources =            \
        Link.h                  \
        NameToCharCode.cc       \
        NameToCharCode.h        \
-       NameToUnicodeTable.h    \
        Object.cc               \
        Object.h                \
        Outline.cc              \
        Outline.h               \
-       OutputDev.cc            \
-       OutputDev.h             \
+       Page.cc                 \
+       Page.h                  \
+       Parser.cc               \
+       Parser.h                \
        PDFDoc.cc               \
        PDFDoc.h                \
        PDFDocEncoding.cc       \
        PDFDocEncoding.h        \
        PSTokenizer.cc          \
        PSTokenizer.h           \
-       Page.cc                 \
-       Page.h                  \
-       Parser.cc               \
-       Parser.h                \
-       SFont.cc                \
-       SFont.h                 \
        Stream-CCITT.h          \
        Stream.cc               \
        Stream.h                \
+       UnicodeMap.cc           \
+       UnicodeMap.h            \
+       UnicodeMapTables.h      \
+       XRef.cc                 \
+       XRef.h
+
+common_sources =               \
+       BaseFile.h              \
+       CharTypes.h             \
+       CompactFontTables.h     \
+       DisplayFontTable.h      \
+       ErrorCodes.h            \
+       FTFont.cc               \
+       FTFont.h                \
+       NameToUnicodeTable.h    \
+       OutputDev.cc            \
+       OutputDev.h             \
+       SFont.cc                \
+       SFont.h                 \
        T1Font.cc               \
        T1Font.h                \
        TTFont.cc               \
        TTFont.h                \
        TextOutputDev.cc        \
        TextOutputDev.h         \
-       UTF8.h                  \
-       UnicodeMap.cc           \
-       UnicodeMap.h            \
-       UnicodeMapTables.h      \
-       XRef.cc                 \
-       XRef.h
+       UTF8.h
+
+libgpdf_a_SOURCES =                    \
+       gpdf-link-canvas-item.cc        \
+       gpdf-link-canvas-item.h         \
+       gpdf-links-canvas-layer.cc      \
+       gpdf-links-canvas-layer.h
 
 gnome_pdf_viewer_SOURCES =             \
        $(common_sources)               \
@@ -141,6 +153,7 @@ gnome_pdf_viewer_SOURCES =          \
        pdf-properties-display.h        \
        $(BUILT_SOURCES)
 
+
 # Old files
 #      GOutputDev.cc                   \
 #      GOutputDev.h                    \
@@ -152,6 +165,8 @@ gnome_pdf_viewer_SOURCES =          \
 #      gpdf-embeddable-view.h
 
 gnome_pdf_viewer_LDADD =               \
+       libxpdf.a                       \
+       libgpdf.a                       \
        $(top_builddir)/goo/libGoo.a    \
        $(EXTRA_GNOME_LIBS)             \
        $(libpaper_LIBS)
@@ -176,6 +191,7 @@ xpdf_SOURCES =                      \
 
 xpdf_CFLAGS = $(X_CFLAGS)
 xpdf_LDADD =                           \
+       libxpdf.a                       \
        $(top_builddir)/goo/libGoo.a    \
        -lXpm                           \
        $(EXTRA_GNOME_LIBS)             \