aboutsummaryrefslogtreecommitdiff
path: root/Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/API/SafeResources.h
diff options
context:
space:
mode:
Diffstat (limited to 'Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/API/SafeResources.h')
-rw-r--r--Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/API/SafeResources.h126
1 files changed, 126 insertions, 0 deletions
diff --git a/Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/API/SafeResources.h b/Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/API/SafeResources.h
new file mode 100644
index 0000000..76faa9f
--- /dev/null
+++ b/Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/API/SafeResources.h
@@ -0,0 +1,126 @@
+/*********************************************************************
+
+ ADOBE SYSTEMS INCORPORATED
+ Copyright (C) 1996-2006 Adobe Systems Incorporated
+ All rights reserved.
+
+ NOTICE: Adobe permits you to use, modify, and distribute this file
+ in accordance with the terms of the Adobe license agreement
+ accompanying it. If you have received this file from a source other
+ than Adobe, then your use, modification, or distribution of it
+ requires the prior written permission of Adobe.
+
+ ---------------------------------------------------------------------
+
+ SafeResources.h
+
+*********************************************************************/
+
+#ifndef _H_SafeResources
+#define _H_SafeResources
+
+#if !defined(__GNUC__)
+#include <Resources.h>
+#include <OSUtils.h>
+#include <Icons.h>
+#include <Dialogs.h>
+#endif
+
+#if PRAGMA_STRUCT_ALIGN
+ #if __MWERKS__
+ #pragma options align=power_gcc
+ #elif __GNUC__
+ #pragma options align=power
+ #else
+ #error
+ #endif
+#endif
+
+#ifdef __cplusplus
+
+class StAcroResourceContext
+{
+public:
+ StAcroResourceContext();
+ StAcroResourceContext(short resFile);
+ virtual ~StAcroResourceContext();
+
+protected :
+ short mOldResFile;
+ short mCurResFile;
+};
+
+#endif /* __cplusplus */
+
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+pascal Handle SafeGet1Resource(ResType type, short resNum);
+
+pascal Handle SafeGet1NamedResource(ResType type, ConstStr255Param name);
+
+pascal Handle SafeGetResource(ResType type, short resNum);
+
+pascal void SafeGetIndString(Str255 str, short strListID, short index);
+
+pascal StringHandle SafeGetString(short strID);
+
+pascal WindowRef SafeGetNewWindow(short windowID, void *wStorage, WindowRef behind);
+
+pascal WindowRef SafeGetNewCWindow(short windowID, void *wStorage, WindowRef behind);
+
+pascal DialogRef SafeGetNewDialog(short dialogID, void *dStorage, WindowRef behind);
+
+pascal short SafeAlert(short alertID, ModalFilterUPP modalFilter);
+
+pascal short SafeStopAlert(short alertID, ModalFilterUPP modalFilter);
+
+pascal short SafeNoteAlert(short alertID, ModalFilterUPP modalFilter);
+
+pascal short SafeCautionAlert(short alertID, ModalFilterUPP modalFilter);
+
+pascal ControlHandle SafeGetNewControl(short ctrlID, WindowPtr window);
+
+pascal CursHandle SafeGetCursor(short cursID);
+
+pascal Handle SafeGetIcon(short iconID);
+
+pascal OSErr SafeGetIconSuite(IconSuiteRef *theIconSuite, short theResID, IconSelectorValue selector);
+
+pascal CIconHandle SafeGetCIcon(short iconID);
+
+pascal PicHandle SafeGetPicture(short picID);
+
+pascal PatHandle SafeGetPattern(short patternID);
+
+pascal void SafeGetIndPattern(Pattern *thePat, short patternListID, short index);
+
+pascal MenuHandle SafeGetMenu(short menuID);
+
+pascal void SafeModalDialog(ModalFilterUPP modalFilter, short *itemHit);
+
+/* While we still support the SetLocaleFile mechansim, */
+/* we suggest you use Mac OS X's localization support */
+/* and bundle your plugin instead. */
+void SetLocaleFile( UInt8 * langStr, OSType signature );
+
+#if TARGET_API_MAC_OS8
+short PreCarbonSetupResourceChain( void );
+#endif /* TARGET_API_MAC_OS8 */
+
+
+OSErr AcroPluginCFragInitFunction( const CFragInitBlock * initBlock );
+void AcroPluginCFragTermProcedure( void );
+
+#ifdef __cplusplus
+}
+#endif
+
+#if PRAGMA_STRUCT_ALIGN
+ #pragma options align=reset
+#endif
+
+#endif /* _H_SafeResources */