From 65780a7ef9a0b237d620265b3f712a535d288460 Mon Sep 17 00:00:00 2001 From: Ravi Pratap Date: Sun, 12 Aug 2001 14:11:25 +0000 Subject: [PATCH] Add ZoomFitHeight verb and toolbar item. 2001-08-12 Ravi Pratap * xpdf/bonobo-application-x-pdf-ui.xml : Add ZoomFitHeight verb and toolbar item. * xpdf/bonobo-application-x-pdf.h (VERB_Z_FIT): Rename to VERB_Z_FIT_WIDTH (VERB_Z_FIT_HEIGHT): Add * xpdf/bonobo-application-x-pdf.cc (verbs): Update to use the new verbs and names. (view_zoom_verb): update accordingly (zoom_to_fit): Modify to take an extra argument determining type of fit. Use the scrolled_window to determine allocation height and width. * xpdf/Makefile.am : Comment out unnecessary targets 2001-08-10 Ravi Pratap * xpdf/stock-zoom-in.xpm : Add * xpdf/stock-zoom-out.xpm : Add * xpdf/stock-zoom-fit.xpm : Add * xpdf/stock-zoom-fit-wide.xpm : Add * xpdf/stock-zoom-fit-tall.xpm : Add * xpdf/Makefile.am : Update, add targets etc. * xpdf/bonobo-application-x-pdf.cc (view_zoom_verb): Change zoom factor to 1.2 which is more correct (zoom_to_fit): Small tweak to enable better approximation * xpdf/bonobo-application-x-pdf-ui.xml : Change ZoomFit to ZoomFitWidth. * xpdf/bonobo-application-x-pdf.cc : Update to use the new name. 2001-08-09 Ravi Pratap * xpdf/bonobo-application-pdf-ui.xml: Add Zoom items to the toolbar 2001-07-10 Ravi Pratap * xpdf/gpdf.cc (main): Make indentation consistent with the rest of the source 2001-07-01 Ravi Pratap * xpdf/gpdf-ui.xml: Make the print menu item visible. --- pdf/xpdf/Makefile.am | 108 ++++++++------- pdf/xpdf/bonobo-application-x-pdf.h | 4 +- pdf/xpdf/gpdf-ui.xml | 8 +- pdf/xpdf/gpdf.cc | 84 ++++++------ pdf/xpdf/stock-zoom-fit-tall.xpm | 158 ++++++++++++++++++++++ pdf/xpdf/stock-zoom-fit-wide.xpm | 158 ++++++++++++++++++++++ pdf/xpdf/stock-zoom-fit.xpm | 181 +++++++++++++++++++++++++ pdf/xpdf/stock-zoom-in.xpm | 190 ++++++++++++++++++++++++++ pdf/xpdf/stock-zoom-out.xpm | 203 ++++++++++++++++++++++++++++ 9 files changed, 996 insertions(+), 98 deletions(-) create mode 100644 pdf/xpdf/stock-zoom-fit-tall.xpm create mode 100644 pdf/xpdf/stock-zoom-fit-wide.xpm create mode 100644 pdf/xpdf/stock-zoom-fit.xpm create mode 100644 pdf/xpdf/stock-zoom-in.xpm create mode 100644 pdf/xpdf/stock-zoom-out.xpm diff --git a/pdf/xpdf/Makefile.am b/pdf/xpdf/Makefile.am index b4ea2eda..dec83249 100644 --- a/pdf/xpdf/Makefile.am +++ b/pdf/xpdf/Makefile.am @@ -12,11 +12,11 @@ else gui = xpdf endif -bin_PROGRAMS = \ - pdftops pdftotext \ - pdfinfo pdftopbm \ - pdfimages $(gui) \ - bonobo-application-x-pdf +bin_PROGRAMS = $(gui) bonobo-application-x-pdf +# pdftops pdftotext +# pdfinfo pdftopbm +# pdfimages + common_sources = \ Array.cc \ @@ -108,57 +108,63 @@ xpdf_SOURCES = \ xpdf_CFLAGS = $(X_CFLAGS) xpdf_LDADD = ../goo/libgoo.a ../ltk/libltk.a -lXpm $(EXTRA_GNOME_LIBS) -pdfimages_SOURCES = \ - $(common_sources) \ - ImageOutputDev.cc \ - ImageOutputDev.h \ - pdfimages.cc - -pdfimages_LDADD = ../goo/libgoo.a - -pdftops_SOURCES = \ - $(common_sources) \ - PSOutputDev.cc \ - pdftops.cc -pdftops_LDADD = ../goo/libgoo.a - -pdftotext_SOURCES = \ - $(common_sources) \ - pdftotext.cc -pdftotext_LDADD = ../goo/libgoo.a - -pdfinfo_SOURCES = \ - $(common_sources) \ - pdfinfo.cc -pdfinfo_LDADD = ../goo/libgoo.a - -pdftopbm_SOURCES = \ - $(common_sources) \ - PBMOutputDev.cc \ - PBMOutputDev.h \ - XOutputDev.cc \ - XOutputDev.h \ - XOutputFontInfo.h \ - pdftopbm.cc - -pdftopbm_LDADD = ../goo/libgoo.a $(EXTRA_GNOME_LIBS) +#pdfimages_SOURCES = +# $(common_sources) +# ImageOutputDev.cc +# ImageOutputDev.h +# pdfimages.cc + +#pdfimages_LDADD = ../goo/libgoo.a +# +#pdftops_SOURCES = +# $(common_sources) +# PSOutputDev.cc +# pdftops.cc +#pdftops_LDADD = ../goo/libgoo.a + +#pdftotext_SOURCES = +# $(common_sources) +# pdftotext.cc +#pdftotext_LDADD = ../goo/libgoo.a + +#pdfinfo_SOURCES = +# $(common_sources) +# pdfinfo.cc +#pdfinfo_LDADD = ../goo/libgoo.a + +#pdftopbm_SOURCES = +# $(common_sources) +# PBMOutputDev.cc +# PBMOutputDev.h +# XOutputDev.cc +# XOutputDev.h +# XOutputFontInfo.h +# pdftopbm.cc + +#pdftopbm_LDADD = ../goo/libgoo.a $(EXTRA_GNOME_LIBS) xpdf-ltk.h: xpdf.ltk rm -f $@ $(top_srcdir)/ltk/ltkbuild $@.new mv $@.new $@ -bitmaps = \ - about.xbm \ - dblLeftArrow.xbm \ - dblRightArrow.xbm \ - find.xbm \ - leftArrow.xbm \ - postscript.xbm \ - rightArrow.xbm \ - xpdfIcon.xpm \ - zoomIn.xbm \ - zoomOut.xbm +#bitmaps = +# about.xbm +# dblLeftArrow.xbm +# dblRightArrow.xbm +# find.xbm +# leftArrow.xbm +# postscript.xbm +# rightArrow.xbm +# xpdfIcon.xpm +# zoomIn.xbm +# zoomOut.xbm + + +stockdir = $(datadir)/pixmaps/gpdf +stock_DATA = stock-zoom-in.xpm stock-zoom-out.xpm \ + stock-zoom-fit.xpm stock-zoom-fit-wide.xpm \ + stock-zoom-fit-tall.xpm ltk = \ xpdf-flip.ltk \ @@ -175,7 +181,7 @@ XML_FILES = \ uidir = $(datadir)/gnome/ui ui_DATA = $(XML_FILES) -EXTRA_DIST = $(bitmaps) ChangeLog $(ltk) \ +EXTRA_DIST = $(stock_DATA) ChangeLog $(ltk) \ $(oaf_DATA) config.h $(XML_FILES) diff --git a/pdf/xpdf/bonobo-application-x-pdf.h b/pdf/xpdf/bonobo-application-x-pdf.h index 01668ab6..66b4ee43 100644 --- a/pdf/xpdf/bonobo-application-x-pdf.h +++ b/pdf/xpdf/bonobo-application-x-pdf.h @@ -10,8 +10,10 @@ #define VERB_PREV "PrevPage" #define VERB_NEXT "NextPage" #define VERB_LAST "LastPage" -#define VERB_Z_FIT "ZoomFit" + #define VERB_Z_IN "ZoomIn" #define VERB_Z_OUT "ZoomOut" +#define VERB_Z_FIT_WIDTH "ZoomFitWidth" +#define VERB_Z_FIT_HEIGHT "ZoomFitHeight" #endif /* BONOBOAPPLICATIONXPDF_H */ diff --git a/pdf/xpdf/gpdf-ui.xml b/pdf/xpdf/gpdf-ui.xml index 6424ff90..7a52076a 100644 --- a/pdf/xpdf/gpdf-ui.xml +++ b/pdf/xpdf/gpdf-ui.xml @@ -12,11 +12,11 @@ pixtype="stock" pixname="Exit" accel="*Control*q"/>