Back to index

lightning-sunbird  0.9+nobinonly
PDEUtilities.h
Go to the documentation of this file.
00001 /*
00002 ********************************************************************************
00003 
00004     $Log: PDEUtilities.h,v $
00005     Revision 1.3  2005/08/08 03:08:43  smfr%smfr.org
00006     Fix bug 202014: add UI to the Mac Print Dialog Extension (PDE) that allows the user to select which headers and footers to print. Patch by Conrad Carlen, r=pinkerton, sr=me, a=asa.
00007 
00008     Revision 1.2  2003/04/03 19:20:05  ccarlen%netscape.com
00009     Bug 188508 - Upgrade print dialog PDE. r=pinkerton/sr=sfraser
00010 
00011 
00012 
00013     (c) Copyright 2002 Apple Computer, Inc.  All rights reserved.
00014     
00015     IMPORTANT: This Apple software is supplied to you by Apple Computer,
00016     Inc. ("Apple") in consideration of your agreement to the following
00017     terms, and your use, installation, modification or redistribution of
00018     this Apple software constitutes acceptance of these terms.  If you do
00019     not agree with these terms, please do not use, install, modify or
00020     redistribute this Apple software.
00021     
00022     In consideration of your agreement to abide by the following terms, and
00023     subject to these terms, Apple grants you a personal, non-exclusive
00024     license, under Apple's copyrights in this original Apple software (the
00025     "Apple Software"), to use, reproduce, modify and redistribute the Apple
00026     Software, with or without modifications, in source and/or binary forms;
00027     provided that if you redistribute the Apple Software in its entirety and
00028     without modifications, you must retain this notice and the following
00029     text and disclaimers in all such redistributions of the Apple Software.
00030     Neither the name, trademarks, service marks or logos of Apple Computer,
00031     Inc. may be used to endorse or promote products derived from the Apple
00032     Software without specific prior written permission from Apple.  Except
00033     as expressly stated in this notice, no other rights or licenses, express
00034     or implied, are granted by Apple herein, including but not limited to
00035     any patent rights that may be infringed by your derivative works or by
00036     other works in which the Apple Software may be incorporated.
00037     
00038     The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES
00039     NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE
00040     IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR
00041     A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND
00042     OPERATION ALONE OR IN COMBINATION WITH YOUR PRODUCTS.
00043     
00044     IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL
00045     OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
00046     SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
00047     INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION,
00048     MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED
00049     AND WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE),
00050     STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE
00051     POSSIBILITY OF SUCH DAMAGE.
00052     
00053 ********************************************************************************
00054 */
00055  
00056 #ifndef __PDEUTILITIES__
00057 #define __PDEUTILITIES__
00058 
00059 #include <Carbon/Carbon.h>
00060 #include <Print/PMPrintingDialogExtensions.h>
00061 
00062 #include "PDECore.h"
00063 
00064 
00065 /*
00066 --------------------------------------------------------------------------------
00067     Prototypes
00068 --------------------------------------------------------------------------------
00069 */
00070 
00071 extern void         MyDebugMessage (char *msg, SInt32 err);
00072 extern CFTypeRef    MyCFAssign(CFTypeRef srcRef, CFTypeRef dstRef);
00073 
00074 extern CFBundleRef  MyGetBundle();
00075 extern void         MyFreeBundle();
00076 
00077 extern CFStringRef  MyGetTitle();
00078 extern void         MyFreeTitle();
00079 
00080 extern OSStatus     MyEmbedControl (WindowRef, ControlRef, const ControlID*, ControlRef*);
00081 extern OSStatus     MyGetTicket (PMPrintSession, CFStringRef, PMTicketRef*);
00082 
00083 extern void         MyReleaseContext (MyContext);
00084 extern OSStatus     MyInstallHelpEventHandler (WindowRef, EventHandlerRef*, EventHandlerUPP *);
00085 extern OSStatus     MyRemoveHelpEventHandler (EventHandlerRef*, EventHandlerUPP *);
00086 
00087 
00088 #endif