shellprint.h

Go to the documentation of this file.
00001 
00002 /*  $Id: shellprint.h 472 2005-12-05 20:36:16Z karstenw $    */
00003 
00004 /******************************************************************************
00005 
00006     UserLand Frontier(tm) -- High performance Web content management,
00007     object database, system-level and Internet scripting environment,
00008     including source code editing and debugging.
00009 
00010     Copyright (C) 1992-2004 UserLand Software, Inc.
00011 
00012     This program is free software; you can redistribute it and/or modify
00013     it under the terms of the GNU General Public License as published by
00014     the Free Software Foundation; either version 2 of the License, or
00015     (at your option) any later version.
00016 
00017     This program is distributed in the hope that it will be useful,
00018     but WITHOUT ANY WARRANTY; without even the implied warranty of
00019     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020     GNU General Public License for more details.
00021 
00022     You should have received a copy of the GNU General Public License
00023     along with this program; if not, write to the Free Software
00024     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00025 
00026 ******************************************************************************/
00027 
00028 #define shellprintinclude /*so other includes can tell if we've been loaded*/
00029 
00030 
00031 typedef struct typrintinfo {
00032     
00033     /*the margins we're enforcing to calculate paperrect*/
00034     Rect
00035     margins,
00036     paperrect;
00037     
00038     long
00039         scaleMult,
00040         scaleDiv;
00041     
00042     /*the number of pages in the document being printed*/
00043     short ctpages;
00044     
00045 #if MACVERSION
00046     
00047 #   if TARGET_API_MAC_CARBON == 1
00048     
00049     GrafPtr         printport;
00050     PMPrintSession  printhandle;
00051     PMPrintSession  printDefaultSession;    /* kw added 2005-06 */
00052     PMPageFormat    pageformat;
00053     PMPrintSettings printsettings;
00054     PMRect          pagerect;
00055     
00056 #   else
00057     Rect            pagerect;
00058     
00059     TPPrPort        printport;
00060     
00061     /*a handle to the machine's print record*/
00062     THPrint printhandle;
00063     
00064 #   endif
00065 #endif
00066 
00067     #ifdef WIN95VERSION
00068     
00069         HDC printport;
00070 
00071         PAGESETUPDLG pagesetupinfo;
00072 
00073     #endif
00074     } typrintinfo;
00075 
00076 
00077 extern typrintinfo shellprintinfo;
00078 
00079 
00080 /*prototypes*/
00081 
00082 extern boolean shellinitprint (void); /*shellprint.c*/
00083 
00084 extern boolean shellpagesetup (void);
00085 
00086 extern boolean shellprint (WindowPtr, boolean);
00087 
00088 extern boolean iscurrentportprintport (void);
00089 
00090 extern boolean isprintingactive (void);
00091 
00092 extern boolean getprintscale (long * scaleMult, long * scaleDiv);

Generated on Wed May 31 18:20:01 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6