Remove support for Gnome printing from wxGTK.
It was replaced by GTK+ printing several years ago and is almost never used any longer anyhow, so any problems in this code (and there are some) would never be found and fixed. Also update the message catalogs to avoid having the strings not used any more, as they were only used in Gnome printing code. Closes #15517. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74912 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
afab8b85c4
commit
9ed99f82da
27
Makefile.in
27
Makefile.in
@ -3001,8 +3001,7 @@ COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_GUI_HDR = \
|
||||
wx/gtk/textctrl.h \
|
||||
wx/gtk/textentry.h \
|
||||
wx/gtk/tglbtn.h \
|
||||
wx/generic/fontdlgg.h \
|
||||
wx/gtk/gnome/gprint.h
|
||||
wx/generic/fontdlgg.h
|
||||
@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@GUI_HDR = $(COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_GUI_HDR)
|
||||
COND_TOOLKIT_GTK_TOOLKIT_VERSION_3_GUI_HDR = \
|
||||
wx/generic/fdrepdlg.h \
|
||||
@ -5642,8 +5641,7 @@ COND_TOOLKIT_GTK_TOOLKIT_VERSION_2___GUI_SRC_OBJECTS = \
|
||||
monodll_gtk_textentry.o \
|
||||
monodll_gtk_tglbtn.o \
|
||||
monodll_treeentry_gtk.o \
|
||||
monodll_fontdlgg.o \
|
||||
monodll_gprint.o
|
||||
monodll_fontdlgg.o
|
||||
@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@__GUI_SRC_OBJECTS = $(COND_TOOLKIT_GTK_TOOLKIT_VERSION_2___GUI_SRC_OBJECTS)
|
||||
COND_TOOLKIT_GTK_TOOLKIT_VERSION_3___GUI_SRC_OBJECTS = \
|
||||
monodll_generic_accel.o \
|
||||
@ -7891,8 +7889,7 @@ COND_TOOLKIT_GTK_TOOLKIT_VERSION_2___GUI_SRC_OBJECTS_1 = \
|
||||
monolib_gtk_textentry.o \
|
||||
monolib_gtk_tglbtn.o \
|
||||
monolib_treeentry_gtk.o \
|
||||
monolib_fontdlgg.o \
|
||||
monolib_gprint.o
|
||||
monolib_fontdlgg.o
|
||||
@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@__GUI_SRC_OBJECTS_1 = $(COND_TOOLKIT_GTK_TOOLKIT_VERSION_2___GUI_SRC_OBJECTS_1)
|
||||
COND_TOOLKIT_GTK_TOOLKIT_VERSION_3___GUI_SRC_OBJECTS_1 = \
|
||||
monolib_generic_accel.o \
|
||||
@ -10314,8 +10311,7 @@ COND_TOOLKIT_GTK_TOOLKIT_VERSION_2___GUI_SRC_OBJECTS_2 = \
|
||||
coredll_gtk_textentry.o \
|
||||
coredll_gtk_tglbtn.o \
|
||||
coredll_treeentry_gtk.o \
|
||||
coredll_fontdlgg.o \
|
||||
coredll_gprint.o
|
||||
coredll_fontdlgg.o
|
||||
@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@__GUI_SRC_OBJECTS_2 = $(COND_TOOLKIT_GTK_TOOLKIT_VERSION_2___GUI_SRC_OBJECTS_2)
|
||||
COND_TOOLKIT_GTK_TOOLKIT_VERSION_3___GUI_SRC_OBJECTS_2 = \
|
||||
coredll_generic_accel.o \
|
||||
@ -11992,8 +11988,7 @@ COND_TOOLKIT_GTK_TOOLKIT_VERSION_2___GUI_SRC_OBJECTS_3 = \
|
||||
corelib_gtk_textentry.o \
|
||||
corelib_gtk_tglbtn.o \
|
||||
corelib_treeentry_gtk.o \
|
||||
corelib_fontdlgg.o \
|
||||
corelib_gprint.o
|
||||
corelib_fontdlgg.o
|
||||
@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@__GUI_SRC_OBJECTS_3 = $(COND_TOOLKIT_GTK_TOOLKIT_VERSION_2___GUI_SRC_OBJECTS_3)
|
||||
COND_TOOLKIT_GTK_TOOLKIT_VERSION_3___GUI_SRC_OBJECTS_3 = \
|
||||
corelib_generic_accel.o \
|
||||
@ -17329,9 +17324,6 @@ monodll_net.o: $(srcdir)/src/msw/wince/net.cpp $(MONODLL_ODEP)
|
||||
monodll_sockosx.o: $(srcdir)/src/osx/core/sockosx.cpp $(MONODLL_ODEP)
|
||||
$(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/osx/core/sockosx.cpp
|
||||
|
||||
monodll_gprint.o: $(srcdir)/src/gtk/gnome/gprint.cpp $(MONODLL_ODEP)
|
||||
$(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/gtk/gnome/gprint.cpp
|
||||
|
||||
monodll_gtk1_bmpbuttn.o: $(srcdir)/src/gtk1/bmpbuttn.cpp $(MONODLL_ODEP)
|
||||
$(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/gtk1/bmpbuttn.cpp
|
||||
|
||||
@ -23200,9 +23192,6 @@ monolib_net.o: $(srcdir)/src/msw/wince/net.cpp $(MONOLIB_ODEP)
|
||||
monolib_sockosx.o: $(srcdir)/src/osx/core/sockosx.cpp $(MONOLIB_ODEP)
|
||||
$(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/osx/core/sockosx.cpp
|
||||
|
||||
monolib_gprint.o: $(srcdir)/src/gtk/gnome/gprint.cpp $(MONOLIB_ODEP)
|
||||
$(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/gtk/gnome/gprint.cpp
|
||||
|
||||
monolib_gtk1_bmpbuttn.o: $(srcdir)/src/gtk1/bmpbuttn.cpp $(MONOLIB_ODEP)
|
||||
$(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/gtk1/bmpbuttn.cpp
|
||||
|
||||
@ -29806,9 +29795,6 @@ coredll_uma.o: $(srcdir)/src/osx/carbon/uma.cpp $(COREDLL_ODEP)
|
||||
coredll_osx_cocoa_utils.o: $(srcdir)/src/osx/cocoa/utils.mm $(COREDLL_ODEP)
|
||||
$(CXXC) -c -o $@ $(COREDLL_OBJCXXFLAGS) $(srcdir)/src/osx/cocoa/utils.mm
|
||||
|
||||
coredll_gprint.o: $(srcdir)/src/gtk/gnome/gprint.cpp $(COREDLL_ODEP)
|
||||
$(CXXC) -c -o $@ $(COREDLL_CXXFLAGS) $(srcdir)/src/gtk/gnome/gprint.cpp
|
||||
|
||||
coredll_gtk1_bmpbuttn.o: $(srcdir)/src/gtk1/bmpbuttn.cpp $(COREDLL_ODEP)
|
||||
$(CXXC) -c -o $@ $(COREDLL_CXXFLAGS) $(srcdir)/src/gtk1/bmpbuttn.cpp
|
||||
|
||||
@ -34186,9 +34172,6 @@ corelib_uma.o: $(srcdir)/src/osx/carbon/uma.cpp $(CORELIB_ODEP)
|
||||
corelib_osx_cocoa_utils.o: $(srcdir)/src/osx/cocoa/utils.mm $(CORELIB_ODEP)
|
||||
$(CXXC) -c -o $@ $(CORELIB_OBJCXXFLAGS) $(srcdir)/src/osx/cocoa/utils.mm
|
||||
|
||||
corelib_gprint.o: $(srcdir)/src/gtk/gnome/gprint.cpp $(CORELIB_ODEP)
|
||||
$(CXXC) -c -o $@ $(CORELIB_CXXFLAGS) $(srcdir)/src/gtk/gnome/gprint.cpp
|
||||
|
||||
corelib_gtk1_bmpbuttn.o: $(srcdir)/src/gtk1/bmpbuttn.cpp $(CORELIB_ODEP)
|
||||
$(CXXC) -c -o $@ $(CORELIB_CXXFLAGS) $(srcdir)/src/gtk1/bmpbuttn.cpp
|
||||
|
||||
|
@ -506,7 +506,6 @@ it if SHARED=1 unless you know what you are doing.
|
||||
<if cond="COMPILER=='gcc'">-lopengl32 -lglu32</if>
|
||||
</set>
|
||||
<set var="EXTRALIBS_SDL"/>
|
||||
<set var="EXTRALIBS_GNOMEPRINT"/>
|
||||
|
||||
<set var="WITH_PLUGIN_SDL">0</set>
|
||||
|
||||
|
@ -1224,8 +1224,6 @@ IMPORTANT: please read docs/tech/tn0016.txt before modifying this file!
|
||||
$(GTK_SRC)
|
||||
<!-- Generic implementations used by wxGPE: -->
|
||||
src/generic/fontdlgg.cpp
|
||||
<!-- GTK+ specific files: -->
|
||||
src/gtk/gnome/gprint.cpp
|
||||
</set>
|
||||
<set var="GTK_HDR" hints="files">
|
||||
wx/generic/fdrepdlg.h
|
||||
@ -1282,7 +1280,6 @@ IMPORTANT: please read docs/tech/tn0016.txt before modifying this file!
|
||||
<set var="GTK2_HDR" hints="files">
|
||||
$(GTK_HDR)
|
||||
wx/generic/fontdlgg.h
|
||||
wx/gtk/gnome/gprint.h
|
||||
</set>
|
||||
|
||||
|
||||
|
@ -53,8 +53,8 @@ WXZLIB_CFLAGS = /M$(__RUNTIME_LIBS_25)$(__DEBUGRUNTIME) /DWIN32 $(__DEBUGINFO) \
|
||||
/Fd$(LIBDIRNAME)\wxzlib$(WXDEBUGFLAG).pdb $(____DEBUGRUNTIME) \
|
||||
$(__OPTIMIZEFLAG) /D_CRT_SECURE_NO_DEPRECATE=1 \
|
||||
/D_CRT_NON_CONFORMING_SWPRINTFS=1 /D_SCL_SECURE_NO_WARNINGS=1 \
|
||||
$(__NO_VC_CRTDBG_p) /DNDEBUG /D_CRT_SECURE_NO_WARNINGS \
|
||||
/D_CRT_NONSTDC_NO_WARNINGS $(CPPFLAGS) $(CFLAGS)
|
||||
$(__NO_VC_CRTDBG_p) /DNDEBUG /D_CRT_SECURE_NO_WARNINGS \
|
||||
/D_CRT_NONSTDC_NO_WARNINGS $(CPPFLAGS) $(CFLAGS)
|
||||
WXZLIB_OBJECTS = \
|
||||
$(OBJS)\wxzlib_adler32.obj \
|
||||
$(OBJS)\wxzlib_compress.obj \
|
||||
|
@ -42,8 +42,8 @@ RSC=rc.exe
|
||||
# PROP Output_Dir "..\..\lib\vc_dll"
|
||||
# PROP Intermediate_Dir "vc_mswudll\wxzlib"
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /FD /MD /W1 /O2 /GR /EHsc /Zi /Fd..\..\lib\vc_dll\wxzlib.pdb /opt:ref /opt:icf /D "WIN32" /D "_LIB" /D "NDEBUG" /D "_CRT_SECURE_NO_WARNINGS" /D "_CRT_NONSTDC_NO_WARNINGS" /c
|
||||
# ADD CPP /nologo /FD /MD /W1 /O2 /GR /EHsc /Zi /Fd..\..\lib\vc_dll\wxzlib.pdb /opt:ref /opt:icf /D "WIN32" /D "_LIB" /D "NDEBUG" /D "_CRT_SECURE_NO_WARNINGS" /D "_CRT_NONSTDC_NO_WARNINGS" /c
|
||||
# ADD BASE CPP /nologo /FD /MD /W1 /O2 /GR /EHsc /Zi /Fd..\..\lib\vc_dll\wxzlib.pdb /opt:ref /opt:icf /D "WIN32" /D "_LIB" /D "NDEBUG" /D "_CRT_SECURE_NO_WARNINGS" /D "_CRT_NONSTDC_NO_WARNINGS" /c
|
||||
# ADD CPP /nologo /FD /MD /W1 /O2 /GR /EHsc /Zi /Fd..\..\lib\vc_dll\wxzlib.pdb /opt:ref /opt:icf /D "WIN32" /D "_LIB" /D "NDEBUG" /D "_CRT_SECURE_NO_WARNINGS" /D "_CRT_NONSTDC_NO_WARNINGS" /c
|
||||
# ADD BASE RSC /l 0x409
|
||||
# ADD RSC /l 0x409
|
||||
BSC32=bscmake.exe
|
||||
@ -65,8 +65,8 @@ LIB32=link.exe -lib
|
||||
# PROP Output_Dir "..\..\lib\vc_dll"
|
||||
# PROP Intermediate_Dir "vc_mswuddll\wxzlib"
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /FD /MDd /W1 /Od /Gm /GR /EHsc /Zi /Fd..\..\lib\vc_dll\wxzlibd.pdb /D "WIN32" /D "_LIB" /D "_DEBUG" /D "NDEBUG" /D "_CRT_SECURE_NO_WARNINGS" /D "_CRT_NONSTDC_NO_WARNINGS" /c
|
||||
# ADD CPP /nologo /FD /MDd /W1 /Od /Gm /GR /EHsc /Zi /Fd..\..\lib\vc_dll\wxzlibd.pdb /D "WIN32" /D "_LIB" /D "_DEBUG" /D "NDEBUG" /D "_CRT_SECURE_NO_WARNINGS" /D "_CRT_NONSTDC_NO_WARNINGS" /c
|
||||
# ADD BASE CPP /nologo /FD /MDd /W1 /Od /Gm /GR /EHsc /Zi /Fd..\..\lib\vc_dll\wxzlibd.pdb /D "WIN32" /D "_LIB" /D "_DEBUG" /D "NDEBUG" /D "_CRT_SECURE_NO_WARNINGS" /D "_CRT_NONSTDC_NO_WARNINGS" /c
|
||||
# ADD CPP /nologo /FD /MDd /W1 /Od /Gm /GR /EHsc /Zi /Fd..\..\lib\vc_dll\wxzlibd.pdb /D "WIN32" /D "_LIB" /D "_DEBUG" /D "NDEBUG" /D "_CRT_SECURE_NO_WARNINGS" /D "_CRT_NONSTDC_NO_WARNINGS" /c
|
||||
# ADD BASE RSC /l 0x409
|
||||
# ADD RSC /l 0x409
|
||||
BSC32=bscmake.exe
|
||||
@ -88,8 +88,8 @@ LIB32=link.exe -lib
|
||||
# PROP Output_Dir "..\..\lib\vc_lib"
|
||||
# PROP Intermediate_Dir "vc_mswu\wxzlib"
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /FD /MD /W1 /O2 /GR /EHsc /Zi /Fd..\..\lib\vc_lib\wxzlib.pdb /opt:ref /opt:icf /D "WIN32" /D "_LIB" /D "NDEBUG" /D "_CRT_SECURE_NO_WARNINGS" /D "_CRT_NONSTDC_NO_WARNINGS" /c
|
||||
# ADD CPP /nologo /FD /MD /W1 /O2 /GR /EHsc /Zi /Fd..\..\lib\vc_lib\wxzlib.pdb /opt:ref /opt:icf /D "WIN32" /D "_LIB" /D "NDEBUG" /D "_CRT_SECURE_NO_WARNINGS" /D "_CRT_NONSTDC_NO_WARNINGS" /c
|
||||
# ADD BASE CPP /nologo /FD /MD /W1 /O2 /GR /EHsc /Zi /Fd..\..\lib\vc_lib\wxzlib.pdb /opt:ref /opt:icf /D "WIN32" /D "_LIB" /D "NDEBUG" /D "_CRT_SECURE_NO_WARNINGS" /D "_CRT_NONSTDC_NO_WARNINGS" /c
|
||||
# ADD CPP /nologo /FD /MD /W1 /O2 /GR /EHsc /Zi /Fd..\..\lib\vc_lib\wxzlib.pdb /opt:ref /opt:icf /D "WIN32" /D "_LIB" /D "NDEBUG" /D "_CRT_SECURE_NO_WARNINGS" /D "_CRT_NONSTDC_NO_WARNINGS" /c
|
||||
# ADD BASE RSC /l 0x409
|
||||
# ADD RSC /l 0x409
|
||||
BSC32=bscmake.exe
|
||||
@ -111,8 +111,8 @@ LIB32=link.exe -lib
|
||||
# PROP Output_Dir "..\..\lib\vc_lib"
|
||||
# PROP Intermediate_Dir "vc_mswud\wxzlib"
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /FD /MDd /W1 /Od /Gm /GR /EHsc /Zi /Fd..\..\lib\vc_lib\wxzlibd.pdb /D "WIN32" /D "_LIB" /D "_DEBUG" /D "NDEBUG" /D "_CRT_SECURE_NO_WARNINGS" /D "_CRT_NONSTDC_NO_WARNINGS" /c
|
||||
# ADD CPP /nologo /FD /MDd /W1 /Od /Gm /GR /EHsc /Zi /Fd..\..\lib\vc_lib\wxzlibd.pdb /D "WIN32" /D "_LIB" /D "_DEBUG" /D "NDEBUG" /D "_CRT_SECURE_NO_WARNINGS" /D "_CRT_NONSTDC_NO_WARNINGS" /c
|
||||
# ADD BASE CPP /nologo /FD /MDd /W1 /Od /Gm /GR /EHsc /Zi /Fd..\..\lib\vc_lib\wxzlibd.pdb /D "WIN32" /D "_LIB" /D "_DEBUG" /D "NDEBUG" /D "_CRT_SECURE_NO_WARNINGS" /D "_CRT_NONSTDC_NO_WARNINGS" /c
|
||||
# ADD CPP /nologo /FD /MDd /W1 /Od /Gm /GR /EHsc /Zi /Fd..\..\lib\vc_lib\wxzlibd.pdb /D "WIN32" /D "_LIB" /D "_DEBUG" /D "NDEBUG" /D "_CRT_SECURE_NO_WARNINGS" /D "_CRT_NONSTDC_NO_WARNINGS" /c
|
||||
# ADD BASE RSC /l 0x409
|
||||
# ADD RSC /l 0x409
|
||||
BSC32=bscmake.exe
|
||||
|
@ -281,8 +281,7 @@ def main(scriptName, args):
|
||||
wxpy_configure_opts.append("--enable-monolithic")
|
||||
else:
|
||||
wxpy_configure_opts.append("--with-sdl")
|
||||
wxpy_configure_opts.append("--with-gnomeprint")
|
||||
|
||||
|
||||
# Try to use use lowest available SDK back to 10.5. Both Carbon and
|
||||
# Cocoa builds require at least the 10.5 SDK now. We only add it to
|
||||
# the wxpy options because this is a hard-requirement for wxPython,
|
||||
|
160
configure
vendored
160
configure
vendored
@ -964,8 +964,6 @@ LIBNOTIFY_LIBS
|
||||
LIBNOTIFY_CFLAGS
|
||||
GNOMEVFS_LIBS
|
||||
GNOMEVFS_CFLAGS
|
||||
LIBGNOMEPRINTUI_LIBS
|
||||
LIBGNOMEPRINTUI_CFLAGS
|
||||
GTKPRINT_LIBS
|
||||
GTKPRINT_CFLAGS
|
||||
SDL_LIBS
|
||||
@ -1108,7 +1106,6 @@ with_libxpm
|
||||
with_libiconv
|
||||
with_libmspack
|
||||
with_gtkprint
|
||||
with_gnomeprint
|
||||
with_gnomevfs
|
||||
with_libnotify
|
||||
with_hildon
|
||||
@ -1412,8 +1409,6 @@ MesaGL_CFLAGS
|
||||
MesaGL_LIBS
|
||||
GTKPRINT_CFLAGS
|
||||
GTKPRINT_LIBS
|
||||
LIBGNOMEPRINTUI_CFLAGS
|
||||
LIBGNOMEPRINTUI_LIBS
|
||||
GNOMEVFS_CFLAGS
|
||||
GNOMEVFS_LIBS
|
||||
LIBNOTIFY_CFLAGS
|
||||
@ -2340,7 +2335,6 @@ Optional Packages:
|
||||
--with-libiconv use libiconv (character conversion)
|
||||
--with-libmspack use libmspack (CHM help files loading)
|
||||
--without-gtkprint don't use GTK printing support
|
||||
--without-gnomeprint don't use GNOME printing libraries
|
||||
--with-gnomevfs use GNOME VFS for associating MIME types
|
||||
--with-libnotify use libnotify for notifications
|
||||
--with-hildon use Hildon framework for Nokia 770/800/810
|
||||
@ -2411,10 +2405,6 @@ Some influential environment variables:
|
||||
C compiler flags for GTKPRINT, overriding pkg-config
|
||||
GTKPRINT_LIBS
|
||||
linker flags for GTKPRINT, overriding pkg-config
|
||||
LIBGNOMEPRINTUI_CFLAGS
|
||||
C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
|
||||
LIBGNOMEPRINTUI_LIBS
|
||||
linker flags for LIBGNOMEPRINTUI, overriding pkg-config
|
||||
GNOMEVFS_CFLAGS
|
||||
C compiler flags for GNOMEVFS, overriding pkg-config
|
||||
GNOMEVFS_LIBS
|
||||
@ -5179,50 +5169,6 @@ fi
|
||||
$as_echo "$result" >&6; }
|
||||
|
||||
|
||||
withstring=without
|
||||
defaultval=$wxUSE_ALL_FEATURES
|
||||
if test -z "$defaultval"; then
|
||||
if test x"$withstring" = xwithout; then
|
||||
defaultval=yes
|
||||
else
|
||||
defaultval=no
|
||||
fi
|
||||
fi
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${withstring:-with}-gnomeprint" >&5
|
||||
$as_echo_n "checking for --${withstring:-with}-gnomeprint... " >&6; }
|
||||
|
||||
# Check whether --with-gnomeprint was given.
|
||||
if test "${with_gnomeprint+set}" = set; then :
|
||||
withval=$with_gnomeprint;
|
||||
if test "$withval" = yes; then
|
||||
wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
|
||||
else
|
||||
wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
|
||||
fi
|
||||
|
||||
else
|
||||
|
||||
wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
|
||||
|
||||
fi
|
||||
|
||||
|
||||
eval "$wx_cv_use_gnomeprint"
|
||||
|
||||
if test x"$withstring" = xwithout; then
|
||||
if test $wxUSE_LIBGNOMEPRINT = yes; then
|
||||
result=no
|
||||
else
|
||||
result=yes
|
||||
fi
|
||||
else
|
||||
result=$wxUSE_LIBGNOMEPRINT
|
||||
fi
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
|
||||
$as_echo "$result" >&6; }
|
||||
|
||||
|
||||
withstring=
|
||||
defaultval=$wxUSE_ALL_FEATURES
|
||||
if test -z "$defaultval"; then
|
||||
@ -34151,109 +34097,6 @@ $as_echo "yes" >&6; }
|
||||
$as_echo "#define wxUSE_GTKPRINT 1" >>confdefs.h
|
||||
|
||||
|
||||
fi
|
||||
fi
|
||||
|
||||
if test "$WXGTK3" = 1; then
|
||||
wxUSE_LIBGNOMEPRINT=no
|
||||
fi
|
||||
|
||||
if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
|
||||
|
||||
|
||||
pkg_failed=no
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGNOMEPRINTUI" >&5
|
||||
$as_echo_n "checking for LIBGNOMEPRINTUI... " >&6; }
|
||||
|
||||
if test -n "$PKG_CONFIG"; then
|
||||
if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
|
||||
pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
|
||||
else
|
||||
if test -n "$PKG_CONFIG" && \
|
||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\""; } >&5
|
||||
($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
|
||||
ac_status=$?
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||
test $ac_status = 0; }; then
|
||||
pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
|
||||
else
|
||||
pkg_failed=yes
|
||||
fi
|
||||
fi
|
||||
else
|
||||
pkg_failed=untried
|
||||
fi
|
||||
if test -n "$PKG_CONFIG"; then
|
||||
if test -n "$LIBGNOMEPRINTUI_LIBS"; then
|
||||
pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
|
||||
else
|
||||
if test -n "$PKG_CONFIG" && \
|
||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\""; } >&5
|
||||
($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
|
||||
ac_status=$?
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||
test $ac_status = 0; }; then
|
||||
pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
|
||||
else
|
||||
pkg_failed=yes
|
||||
fi
|
||||
fi
|
||||
else
|
||||
pkg_failed=untried
|
||||
fi
|
||||
|
||||
|
||||
|
||||
if test $pkg_failed = yes; then
|
||||
|
||||
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
||||
_pkg_short_errors_supported=yes
|
||||
else
|
||||
_pkg_short_errors_supported=no
|
||||
fi
|
||||
if test $_pkg_short_errors_supported = yes; then
|
||||
LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
|
||||
else
|
||||
LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
|
||||
fi
|
||||
# Put the nasty error message in config.log where it belongs
|
||||
echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
|
||||
|
||||
|
||||
if test "$wxUSE_GTKPRINT" = yes; then
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||
$as_echo "no" >&6; }
|
||||
else
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
|
||||
$as_echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
|
||||
fi
|
||||
wxUSE_LIBGNOMEPRINT="no"
|
||||
|
||||
|
||||
elif test $pkg_failed = untried; then
|
||||
|
||||
if test "$wxUSE_GTKPRINT" = yes; then
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||
$as_echo "no" >&6; }
|
||||
else
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
|
||||
$as_echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
|
||||
fi
|
||||
wxUSE_LIBGNOMEPRINT="no"
|
||||
|
||||
|
||||
else
|
||||
LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
|
||||
LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
$as_echo "yes" >&6; }
|
||||
|
||||
GUI_TK_LIBRARY="$GUI_TK_LIBRARY $LIBGNOMEPRINTUI_LIBS"
|
||||
CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
|
||||
CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
|
||||
$as_echo "#define wxUSE_LIBGNOMEPRINT 1" >>confdefs.h
|
||||
|
||||
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
@ -37984,9 +37827,6 @@ case "$TOOLKIT" in
|
||||
if test "$wxUSE_GTKPRINT" = "yes" ; then
|
||||
TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing";
|
||||
fi
|
||||
if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
|
||||
TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
|
||||
fi
|
||||
if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
|
||||
TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
|
||||
fi
|
||||
|
29
configure.in
29
configure.in
@ -588,7 +588,6 @@ WX_ARG_SYS_WITH(libxpm, [ --with-libxpm use libxpm (XPM file forma
|
||||
WX_ARG_WITH(libiconv, [ --with-libiconv use libiconv (character conversion)], wxUSE_LIBICONV)
|
||||
WX_ARG_WITH(libmspack, [ --with-libmspack use libmspack (CHM help files loading)], wxUSE_LIBMSPACK)
|
||||
WX_ARG_WITHOUT(gtkprint, [ --without-gtkprint don't use GTK printing support], wxUSE_GTKPRINT)
|
||||
WX_ARG_WITHOUT(gnomeprint, [ --without-gnomeprint don't use GNOME printing libraries], wxUSE_LIBGNOMEPRINT)
|
||||
WX_ARG_WITH(gnomevfs, [ --with-gnomevfs use GNOME VFS for associating MIME types], wxUSE_LIBGNOMEVFS)
|
||||
WX_ARG_WITH(libnotify, [ --with-libnotify use libnotify for notifications], wxUSE_LIBNOTIFY)
|
||||
WX_ARG_WITH(hildon, [ --with-hildon use Hildon framework for Nokia 770/800/810], wxUSE_LIBHILDON)
|
||||
@ -5627,31 +5626,6 @@ if test "$WXGTK2" = 1; then
|
||||
]
|
||||
)
|
||||
fi
|
||||
|
||||
if test "$WXGTK3" = 1; then
|
||||
wxUSE_LIBGNOMEPRINT=no
|
||||
fi
|
||||
|
||||
if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
|
||||
|
||||
PKG_CHECK_MODULES(LIBGNOMEPRINTUI,
|
||||
[libgnomeprintui-2.2 >= 2.8],
|
||||
[
|
||||
GUI_TK_LIBRARY="$GUI_TK_LIBRARY $LIBGNOMEPRINTUI_LIBS"
|
||||
CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
|
||||
CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
|
||||
AC_DEFINE(wxUSE_LIBGNOMEPRINT)
|
||||
],
|
||||
[
|
||||
if test "$wxUSE_GTKPRINT" = yes; then
|
||||
AC_MSG_RESULT(no)
|
||||
else
|
||||
AC_MSG_WARN([libgnomeprintui not found, library will use standard PostScript printing])
|
||||
fi
|
||||
wxUSE_LIBGNOMEPRINT="no"
|
||||
]
|
||||
)
|
||||
fi
|
||||
fi
|
||||
|
||||
if test "$wxUSE_MIMETYPE" = "yes" ; then
|
||||
@ -8028,9 +8002,6 @@ case "$TOOLKIT" in
|
||||
if test "$wxUSE_GTKPRINT" = "yes" ; then
|
||||
TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing";
|
||||
fi
|
||||
if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
|
||||
TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
|
||||
fi
|
||||
if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
|
||||
TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
|
||||
fi
|
||||
|
@ -282,7 +282,6 @@ library:
|
||||
@beginDefList
|
||||
@itemdef{wxUSE_DETECT_SM, Use code to detect X11 session manager.}
|
||||
@itemdef{wxUSE_GTKPRINT, Use GTK+ printing support.}
|
||||
@itemdef{wxUSE_LIBGNOMEPRINT, Use GNOME printing support.}
|
||||
@itemdef{wxUSE_LIBGNOMEVFS, Use GNOME VFS support. Currently has no effect. }
|
||||
@itemdef{wxUSE_LIBHILDON, Use Hildon framework for Nokia 770. Currently has no effect. }
|
||||
@endDefList
|
||||
|
@ -9,8 +9,6 @@
|
||||
|
||||
@page overview_unixprinting Printing Under Unix (GTK+)
|
||||
|
||||
@tableofcontents
|
||||
|
||||
Printing under Unix has always been a cause of problems as Unix does not
|
||||
provide a standard way to display text and graphics on screen and print it to a
|
||||
printer using the same application programming interface - instead, displaying
|
||||
@ -20,27 +18,13 @@ fonts with the result that only a selected number of application could offer
|
||||
WYSIWYG under Unix. Equally, wxWidgets offered its own printing implementation
|
||||
using PostScript which never really matched the screen display.
|
||||
|
||||
Starting with version 2.8.X, the GNOME project provides printing support
|
||||
through the libgnomeprint and libgnomeprintui libraries by which especially the
|
||||
font problem is mostly solved. Beginning with version 2.5.4, the GTK+ port of
|
||||
wxWidgets can make use of these libraries if wxWidgets is configured
|
||||
accordingly and if the libraries are present. You need to configure wxWidgets
|
||||
with the <tt>configure --with-gnomeprint</tt> switch and your application will
|
||||
then search for the GNOME print libraries at runtime. If they are found,
|
||||
printing will be done through these, otherwise the application will fall back
|
||||
to the old PostScript printing code. Note that the application will not require
|
||||
the GNOME print libraries to be installed in order to run (there will be no
|
||||
dependency on these libraries).
|
||||
|
||||
In version GTK+ 2.10, support for printing has been added to GTK+ itself.
|
||||
Beginning with version wxWidgets 2.9.X, the GTK+ port of wxWidgets can make use
|
||||
of this feature if wxWidgets is configured accordingly and if the GTK+ version
|
||||
is = 2.10. You need to configure wxWidgets with the
|
||||
<tt>configure --with-gtkprint</tt> switch and your application will then search
|
||||
for the GTK+ print support at runtime. If it is found, printing will be done
|
||||
through GTK+, otherwise the application will fall back to GNOME printing
|
||||
support if it is available or, if it isn't, to the old PostScript printing
|
||||
code. Note that the application will not require a GTK+ version = 2.10 to be
|
||||
installed in order to run (there will be no dependency on this version).
|
||||
Since GTK+ 2.10, support for printing has been added to GTK+ itself and
|
||||
beginning with wxWidgets 2.9, GTK+ printing is used by default (i.e. unless
|
||||
<tt>--without-gtkprint</tt> was explicitly used when configuring the library).
|
||||
Support for GTK+ print is detected dynamically, i.e. during the run-time: if it
|
||||
is found, printing will be done through GTK+, otherwise the application will
|
||||
fall back to the old PostScript printing code. This allows the applications
|
||||
built with wxWidgets to still work on the very old systems using GTK+ earlier
|
||||
than 2.10.
|
||||
|
||||
*/
|
||||
|
@ -3,10 +3,10 @@
|
||||
|
||||
You have downloaded the GTK+ port of the wxWidgets GUI library.
|
||||
|
||||
It is required to use at least GTK+ 2.6 and some features are
|
||||
only available when using GTK+ 2.8 or higher. Note that if you
|
||||
compile wxWidgets against GTK+ 2.8 your app will still work
|
||||
with older GTK+ version down to version 2.6 as wxWidgets
|
||||
It is required to use at least GTK+ 2.6 and some features are
|
||||
only available when using GTK+ 2.10 or higher. Note that even if
|
||||
you compile wxWidgets against a later GTK+ version, your application
|
||||
will still work with older GTK+ version down to version 2.6 as wxWidgets
|
||||
tests for the presence of newer features at run-time and it
|
||||
will fall back to a generic implementation if these features
|
||||
are not present in the GTK+ version used.
|
||||
|
@ -1,351 +0,0 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/gtk/gnome/gprint.h
|
||||
// Author: Robert Roebling
|
||||
// Purpose: GNOME printing support
|
||||
// Created: 09/20/04
|
||||
// Copyright: Robert Roebling
|
||||
// Licence: wxWindows Licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_GTK_GPRINT_H_
|
||||
#define _WX_GTK_GPRINT_H_
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_LIBGNOMEPRINT
|
||||
|
||||
#include "wx/print.h"
|
||||
#include "wx/printdlg.h"
|
||||
#include "wx/dc.h"
|
||||
#include "wx/module.h"
|
||||
|
||||
typedef struct _GnomePrintJob GnomePrintJob;
|
||||
typedef struct _GnomePrintContext GnomePrintContext;
|
||||
typedef struct _GnomePrintConfig GnomePrintConfig;
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxGnomePrintModule
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
class wxGnomePrintModule: public wxModule
|
||||
{
|
||||
public:
|
||||
wxGnomePrintModule() {}
|
||||
bool OnInit();
|
||||
void OnExit();
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxGnomePrintModule)
|
||||
};
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
// wxGnomePrintNativeData
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
class wxGnomePrintNativeData: public wxPrintNativeDataBase
|
||||
{
|
||||
public:
|
||||
wxGnomePrintNativeData();
|
||||
virtual ~wxGnomePrintNativeData();
|
||||
|
||||
virtual bool TransferTo( wxPrintData &data );
|
||||
virtual bool TransferFrom( const wxPrintData &data );
|
||||
|
||||
virtual bool Ok() const { return IsOk(); }
|
||||
virtual bool IsOk() const { return true; }
|
||||
|
||||
GnomePrintConfig* GetPrintConfig() { return m_config; }
|
||||
void SetPrintJob( GnomePrintJob *job ) { m_job = job; }
|
||||
GnomePrintJob* GetPrintJob() { return m_job; }
|
||||
|
||||
|
||||
private:
|
||||
GnomePrintConfig *m_config;
|
||||
GnomePrintJob *m_job;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxGnomePrintNativeData)
|
||||
};
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
// wxGnomePrintFactory
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
class wxGnomePrintFactory: public wxPrintFactory
|
||||
{
|
||||
public:
|
||||
virtual wxPrinterBase *CreatePrinter( wxPrintDialogData *data );
|
||||
|
||||
virtual wxPrintPreviewBase *CreatePrintPreview( wxPrintout *preview,
|
||||
wxPrintout *printout = NULL,
|
||||
wxPrintDialogData *data = NULL );
|
||||
virtual wxPrintPreviewBase *CreatePrintPreview( wxPrintout *preview,
|
||||
wxPrintout *printout,
|
||||
wxPrintData *data );
|
||||
|
||||
virtual wxPrintDialogBase *CreatePrintDialog( wxWindow *parent,
|
||||
wxPrintDialogData *data = NULL );
|
||||
virtual wxPrintDialogBase *CreatePrintDialog( wxWindow *parent,
|
||||
wxPrintData *data );
|
||||
|
||||
virtual wxPageSetupDialogBase *CreatePageSetupDialog( wxWindow *parent,
|
||||
wxPageSetupDialogData * data = NULL );
|
||||
|
||||
#if wxUSE_NEW_DC
|
||||
virtual wxDCImpl* CreatePrinterDCImpl( wxPrinterDC *owner, const wxPrintData& data );
|
||||
#else
|
||||
virtual wxDC* CreatePrinterDC( const wxPrintData& data );
|
||||
#endif
|
||||
|
||||
virtual bool HasPrintSetupDialog();
|
||||
virtual wxDialog *CreatePrintSetupDialog( wxWindow *parent, wxPrintData *data );
|
||||
virtual bool HasOwnPrintToFile();
|
||||
virtual bool HasPrinterLine();
|
||||
virtual wxString CreatePrinterLine();
|
||||
virtual bool HasStatusLine();
|
||||
virtual wxString CreateStatusLine();
|
||||
|
||||
virtual wxPrintNativeDataBase *CreatePrintNativeData();
|
||||
};
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
// wxGnomePrintDialog
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
class wxGnomePrintDialog: public wxPrintDialogBase
|
||||
{
|
||||
public:
|
||||
wxGnomePrintDialog( wxWindow *parent,
|
||||
wxPrintDialogData* data = NULL );
|
||||
wxGnomePrintDialog( wxWindow *parent, wxPrintData* data);
|
||||
virtual ~wxGnomePrintDialog();
|
||||
|
||||
wxPrintData& GetPrintData()
|
||||
{ return m_printDialogData.GetPrintData(); }
|
||||
wxPrintDialogData& GetPrintDialogData()
|
||||
{ return m_printDialogData; }
|
||||
|
||||
wxDC *GetPrintDC();
|
||||
|
||||
virtual int ShowModal();
|
||||
|
||||
virtual bool Validate();
|
||||
virtual bool TransferDataToWindow();
|
||||
virtual bool TransferDataFromWindow();
|
||||
|
||||
protected:
|
||||
// Implement some base class methods to do nothing to avoid asserts and
|
||||
// GTK warnings, since this is not a real wxDialog.
|
||||
virtual void DoSetSize(int WXUNUSED(x), int WXUNUSED(y),
|
||||
int WXUNUSED(width), int WXUNUSED(height),
|
||||
int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {}
|
||||
virtual void DoMoveWindow(int WXUNUSED(x), int WXUNUSED(y),
|
||||
int WXUNUSED(width), int WXUNUSED(height)) {}
|
||||
|
||||
private:
|
||||
void Init();
|
||||
wxPrintDialogData m_printDialogData;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxGnomePrintDialog)
|
||||
};
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
// wxGnomePageSetupDialog
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
class wxGnomePageSetupDialog: public wxPageSetupDialogBase
|
||||
{
|
||||
public:
|
||||
wxGnomePageSetupDialog( wxWindow *parent,
|
||||
wxPageSetupDialogData* data = NULL );
|
||||
virtual ~wxGnomePageSetupDialog();
|
||||
|
||||
virtual wxPageSetupDialogData& GetPageSetupDialogData();
|
||||
|
||||
virtual int ShowModal();
|
||||
|
||||
virtual bool Validate();
|
||||
virtual bool TransferDataToWindow();
|
||||
virtual bool TransferDataFromWindow();
|
||||
|
||||
protected:
|
||||
// Implement some base class methods to do nothing to avoid asserts and
|
||||
// GTK warnings, since this is not a real wxDialog.
|
||||
virtual void DoSetSize(int WXUNUSED(x), int WXUNUSED(y),
|
||||
int WXUNUSED(width), int WXUNUSED(height),
|
||||
int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {}
|
||||
virtual void DoMoveWindow(int WXUNUSED(x), int WXUNUSED(y),
|
||||
int WXUNUSED(width), int WXUNUSED(height)) {}
|
||||
|
||||
private:
|
||||
wxPageSetupDialogData m_pageDialogData;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxGnomePageSetupDialog)
|
||||
};
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
// wxGnomePrinter
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
class wxGnomePrinter: public wxPrinterBase
|
||||
{
|
||||
public:
|
||||
wxGnomePrinter(wxPrintDialogData *data = NULL);
|
||||
virtual ~wxGnomePrinter();
|
||||
|
||||
virtual bool Print(wxWindow *parent,
|
||||
wxPrintout *printout,
|
||||
bool prompt = true);
|
||||
virtual wxDC* PrintDialog(wxWindow *parent);
|
||||
virtual bool Setup(wxWindow *parent);
|
||||
|
||||
private:
|
||||
bool m_native_preview;
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxGnomePrinter)
|
||||
wxDECLARE_NO_COPY_CLASS(wxGnomePrinter);
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxGnomePrinterDC
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#if wxUSE_NEW_DC
|
||||
class wxGnomePrinterDCImpl : public wxDCImpl
|
||||
#else
|
||||
#define wxGnomePrinterDCImpl wxGnomePrinterDC
|
||||
class wxGnomePrinterDC : public wxDC
|
||||
#endif
|
||||
{
|
||||
public:
|
||||
#if wxUSE_NEW_DC
|
||||
wxGnomePrinterDCImpl( wxPrinterDC *owner, const wxPrintData& data );
|
||||
#else
|
||||
wxGnomePrinterDC( const wxPrintData& data );
|
||||
#endif
|
||||
virtual ~wxGnomePrinterDCImpl();
|
||||
|
||||
bool Ok() const { return IsOk(); }
|
||||
bool IsOk() const;
|
||||
|
||||
bool CanDrawBitmap() const { return true; }
|
||||
void Clear();
|
||||
void SetFont( const wxFont& font );
|
||||
void SetPen( const wxPen& pen );
|
||||
void SetBrush( const wxBrush& brush );
|
||||
void SetLogicalFunction( wxRasterOperationMode function );
|
||||
void SetBackground( const wxBrush& brush );
|
||||
void DestroyClippingRegion();
|
||||
bool StartDoc(const wxString& message);
|
||||
void EndDoc();
|
||||
void StartPage();
|
||||
void EndPage();
|
||||
wxCoord GetCharHeight() const;
|
||||
wxCoord GetCharWidth() const;
|
||||
bool CanGetTextExtent() const { return true; }
|
||||
wxSize GetPPI() const;
|
||||
virtual int GetDepth() const { return 24; }
|
||||
void SetBackgroundMode(int WXUNUSED(mode)) { }
|
||||
void SetPalette(const wxPalette& WXUNUSED(palette)) { }
|
||||
|
||||
protected:
|
||||
bool DoFloodFill(wxCoord x1, wxCoord y1, const wxColour &col,
|
||||
wxFloodFillStyle style=wxFLOOD_SURFACE );
|
||||
bool DoGetPixel(wxCoord x1, wxCoord y1, wxColour *col) const;
|
||||
void DoDrawLine(wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2);
|
||||
void DoCrossHair(wxCoord x, wxCoord y);
|
||||
void DoDrawArc(wxCoord x1,wxCoord y1,wxCoord x2,wxCoord y2,wxCoord xc,wxCoord yc);
|
||||
void DoDrawEllipticArc(wxCoord x,wxCoord y,wxCoord w,wxCoord h,double sa,double ea);
|
||||
void DoDrawPoint(wxCoord x, wxCoord y);
|
||||
void DoDrawLines(int n, const wxPoint points[], wxCoord xoffset = 0, wxCoord yoffset = 0);
|
||||
void DoDrawPolygon(int n, const wxPoint points[], wxCoord xoffset = 0, wxCoord yoffset = 0, wxPolygonFillMode fillStyle=wxODDEVEN_RULE);
|
||||
void DoDrawPolyPolygon(int n, const int count[], const wxPoint points[], wxCoord xoffset = 0, wxCoord yoffset = 0, wxPolygonFillMode fillStyle=wxODDEVEN_RULE);
|
||||
void DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height);
|
||||
void DoDrawRoundedRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height, double radius = 20.0);
|
||||
void DoDrawEllipse(wxCoord x, wxCoord y, wxCoord width, wxCoord height);
|
||||
#if wxUSE_SPLINES
|
||||
void DoDrawSpline(const wxPointList *points);
|
||||
#endif
|
||||
bool DoBlit(wxCoord xdest, wxCoord ydest, wxCoord width, wxCoord height,
|
||||
wxDC *source, wxCoord xsrc, wxCoord ysrc,
|
||||
wxRasterOperationMode = wxCOPY, bool useMask = false,
|
||||
wxCoord xsrcMask = wxDefaultCoord, wxCoord ysrcMask = wxDefaultCoord);
|
||||
void DoDrawIcon( const wxIcon& icon, wxCoord x, wxCoord y );
|
||||
void DoDrawBitmap( const wxBitmap& bitmap, wxCoord x, wxCoord y, bool useMask = false );
|
||||
void DoDrawText(const wxString& text, wxCoord x, wxCoord y );
|
||||
void DoDrawRotatedText(const wxString& text, wxCoord x, wxCoord y, double angle);
|
||||
void DoSetClippingRegion(wxCoord x, wxCoord y, wxCoord width, wxCoord height);
|
||||
void DoSetDeviceClippingRegion( const wxRegion &WXUNUSED(clip) )
|
||||
{
|
||||
wxFAIL_MSG( "not implemented" );
|
||||
}
|
||||
void DoGetTextExtent(const wxString& string, wxCoord *x, wxCoord *y,
|
||||
wxCoord *descent = NULL,
|
||||
wxCoord *externalLeading = NULL,
|
||||
const wxFont *theFont = NULL ) const;
|
||||
void DoGetSize(int* width, int* height) const;
|
||||
void DoGetSizeMM(int *width, int *height) const;
|
||||
|
||||
void SetPrintData(const wxPrintData& data);
|
||||
wxPrintData& GetPrintData() { return m_printData; }
|
||||
|
||||
// overridden for wxPrinterDC Impl
|
||||
virtual wxRect GetPaperRect() const;
|
||||
virtual int GetResolution() const;
|
||||
|
||||
virtual void* GetHandle() const { return (void*)m_gpc; }
|
||||
|
||||
private:
|
||||
wxPrintData m_printData;
|
||||
PangoContext *m_context;
|
||||
PangoLayout *m_layout;
|
||||
PangoFontDescription *m_fontdesc;
|
||||
|
||||
unsigned char m_currentRed;
|
||||
unsigned char m_currentGreen;
|
||||
unsigned char m_currentBlue;
|
||||
|
||||
double m_pageHeight;
|
||||
|
||||
GnomePrintContext *m_gpc;
|
||||
GnomePrintJob* m_job;
|
||||
|
||||
void makeEllipticalPath(wxCoord x, wxCoord y, wxCoord width, wxCoord height);
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxGnomePrinterDCImpl)
|
||||
wxDECLARE_NO_COPY_CLASS(wxGnomePrinterDCImpl);
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxGnomePrintPreview: programmer creates an object of this class to preview a
|
||||
// wxPrintout.
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
class wxGnomePrintPreview : public wxPrintPreviewBase
|
||||
{
|
||||
public:
|
||||
wxGnomePrintPreview(wxPrintout *printout,
|
||||
wxPrintout *printoutForPrinting = NULL,
|
||||
wxPrintDialogData *data = NULL);
|
||||
wxGnomePrintPreview(wxPrintout *printout,
|
||||
wxPrintout *printoutForPrinting,
|
||||
wxPrintData *data);
|
||||
|
||||
virtual ~wxGnomePrintPreview();
|
||||
|
||||
virtual bool Print(bool interactive);
|
||||
virtual void DetermineScaling();
|
||||
|
||||
private:
|
||||
void Init(wxPrintout *printout, wxPrintout *printoutForPrinting);
|
||||
|
||||
private:
|
||||
DECLARE_CLASS(wxGnomePrintPreview)
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
// wxUSE_LIBGNOMEPRINT
|
||||
|
||||
#endif
|
596
locale/af.po
596
locale/af.po
File diff suppressed because it is too large
Load Diff
594
locale/ar.po
594
locale/ar.po
File diff suppressed because it is too large
Load Diff
596
locale/ca.po
596
locale/ca.po
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
594
locale/cs.po
594
locale/cs.po
File diff suppressed because it is too large
Load Diff
594
locale/da.po
594
locale/da.po
File diff suppressed because it is too large
Load Diff
602
locale/de.po
602
locale/de.po
File diff suppressed because it is too large
Load Diff
594
locale/el.po
594
locale/el.po
File diff suppressed because it is too large
Load Diff
594
locale/es.po
594
locale/es.po
File diff suppressed because it is too large
Load Diff
594
locale/eu.po
594
locale/eu.po
File diff suppressed because it is too large
Load Diff
594
locale/fi.po
594
locale/fi.po
File diff suppressed because it is too large
Load Diff
594
locale/fr.po
594
locale/fr.po
File diff suppressed because it is too large
Load Diff
594
locale/gl_ES.po
594
locale/gl_ES.po
File diff suppressed because it is too large
Load Diff
594
locale/hi.po
594
locale/hi.po
File diff suppressed because it is too large
Load Diff
594
locale/hu.po
594
locale/hu.po
File diff suppressed because it is too large
Load Diff
594
locale/id.po
594
locale/id.po
File diff suppressed because it is too large
Load Diff
594
locale/it.po
594
locale/it.po
File diff suppressed because it is too large
Load Diff
594
locale/ja.po
594
locale/ja.po
File diff suppressed because it is too large
Load Diff
594
locale/ko_KR.po
594
locale/ko_KR.po
File diff suppressed because it is too large
Load Diff
594
locale/lt.po
594
locale/lt.po
File diff suppressed because it is too large
Load Diff
594
locale/lv.po
594
locale/lv.po
File diff suppressed because it is too large
Load Diff
594
locale/ms.po
594
locale/ms.po
File diff suppressed because it is too large
Load Diff
594
locale/nb.po
594
locale/nb.po
File diff suppressed because it is too large
Load Diff
594
locale/ne.po
594
locale/ne.po
File diff suppressed because it is too large
Load Diff
594
locale/nl.po
594
locale/nl.po
File diff suppressed because it is too large
Load Diff
703
locale/pl.po
703
locale/pl.po
File diff suppressed because it is too large
Load Diff
594
locale/pt.po
594
locale/pt.po
File diff suppressed because it is too large
Load Diff
594
locale/pt_BR.po
594
locale/pt_BR.po
File diff suppressed because it is too large
Load Diff
594
locale/ro.po
594
locale/ro.po
File diff suppressed because it is too large
Load Diff
594
locale/ru.po
594
locale/ru.po
File diff suppressed because it is too large
Load Diff
594
locale/sk.po
594
locale/sk.po
File diff suppressed because it is too large
Load Diff
598
locale/sl.po
598
locale/sl.po
File diff suppressed because it is too large
Load Diff
594
locale/sq.po
594
locale/sq.po
File diff suppressed because it is too large
Load Diff
594
locale/sv.po
594
locale/sv.po
File diff suppressed because it is too large
Load Diff
1601
locale/ta.po
1601
locale/ta.po
File diff suppressed because it is too large
Load Diff
594
locale/tr.po
594
locale/tr.po
File diff suppressed because it is too large
Load Diff
594
locale/uk.po
594
locale/uk.po
File diff suppressed because it is too large
Load Diff
594
locale/vi.po
594
locale/vi.po
File diff suppressed because it is too large
Load Diff
589
locale/wxstd.pot
589
locale/wxstd.pot
File diff suppressed because it is too large
Load Diff
594
locale/zh_CN.po
594
locale/zh_CN.po
File diff suppressed because it is too large
Load Diff
594
locale/zh_TW.po
594
locale/zh_TW.po
File diff suppressed because it is too large
Load Diff
@ -811,13 +811,9 @@
|
||||
#define wxUSE_PLUGINS 0
|
||||
|
||||
/*
|
||||
* Use GTK print for printing under GTK+ 2.0
|
||||
* Use GTK print for printing under GTK+ 2.10+
|
||||
*/
|
||||
#define wxUSE_GTKPRINT 0
|
||||
/*
|
||||
* Use GNOME print for printing under GTK+ 2.0
|
||||
*/
|
||||
#define wxUSE_LIBGNOMEPRINT 0
|
||||
/*
|
||||
* Use GNOME VFS for MIME types
|
||||
*/
|
||||
|
@ -862,17 +862,13 @@ typedef pid_t GPid;
|
||||
*/
|
||||
#define wxUSE_LIBSDL 0
|
||||
/*
|
||||
* Use GTK print for printing under GTK+ 2.0
|
||||
* Use GTK print for printing under GTK+ 2.10+
|
||||
*/
|
||||
#ifdef VMS_GTK2
|
||||
#define wxUSE_GTKPRINT 1
|
||||
#else
|
||||
#define wxUSE_GTKPRINT 0
|
||||
#endif
|
||||
/*
|
||||
* Use GNOME print for printing under GTK+ 2.0
|
||||
*/
|
||||
#define wxUSE_LIBGNOMEPRINT 0
|
||||
/*
|
||||
* Use GNOME VFS for MIME types
|
||||
*/
|
||||
|
@ -63,11 +63,6 @@
|
||||
|
||||
#ifndef __WXUNIVERSAL__
|
||||
|
||||
#if wxUSE_LIBGNOMEPRINT
|
||||
#include "wx/link.h"
|
||||
wxFORCE_LINK_MODULE(gnome_print)
|
||||
#endif
|
||||
|
||||
#if wxUSE_GTKPRINT
|
||||
#include "wx/link.h"
|
||||
wxFORCE_LINK_MODULE(gtk_print)
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -51,10 +51,6 @@
|
||||
#include "wx/link.h"
|
||||
wxFORCE_LINK_THIS_MODULE(gtk_print)
|
||||
|
||||
#if wxUSE_LIBGNOMEPRINT
|
||||
#include "wx/gtk/gnome/gprint.h"
|
||||
#endif
|
||||
|
||||
#include "wx/gtk/private/object.h"
|
||||
|
||||
// Useful to convert angles from/to Rad to/from Deg.
|
||||
@ -64,8 +60,7 @@ static const double DEG2RAD = M_PI / 180.0;
|
||||
//----------------------------------------------------------------------------
|
||||
// wxGtkPrintModule
|
||||
// Initialized when starting the app : if it successfully load the gtk-print framework,
|
||||
// it uses it. If not, it falls back to gnome print (see /gtk/gnome/gprint.cpp) then
|
||||
// to postscript if gnomeprint is not available.
|
||||
// it uses it. If not, it falls back to Postscript.
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
class wxGtkPrintModule: public wxModule
|
||||
@ -73,10 +68,6 @@ class wxGtkPrintModule: public wxModule
|
||||
public:
|
||||
wxGtkPrintModule()
|
||||
{
|
||||
#if wxUSE_LIBGNOMEPRINT
|
||||
// This module must be initialized AFTER gnomeprint's one
|
||||
AddDependency(wxCLASSINFO(wxGnomePrintModule));
|
||||
#endif
|
||||
}
|
||||
bool OnInit();
|
||||
void OnExit() {}
|
||||
|
@ -1,15 +0,0 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: src/gtk1/gnome/gprint.cpp
|
||||
// Author: Robert Roebling
|
||||
// Purpose: Implement GNOME printing support
|
||||
// Created: 09/20/04
|
||||
// Copyright: Robert Roebling
|
||||
// Licence: wxWindows Licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// For compilers that support precompilation, includes "wx/wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user