aboutsummaryrefslogtreecommitdiff
path: root/Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/SDK/ASZStringSuite.h
diff options
context:
space:
mode:
Diffstat (limited to 'Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/SDK/ASZStringSuite.h')
-rw-r--r--Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/SDK/ASZStringSuite.h153
1 files changed, 153 insertions, 0 deletions
diff --git a/Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/SDK/ASZStringSuite.h b/Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/SDK/ASZStringSuite.h
new file mode 100644
index 0000000..a401f57
--- /dev/null
+++ b/Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/SDK/ASZStringSuite.h
@@ -0,0 +1,153 @@
+/*
+ * Name:
+ * ASZStringSuite.h
+ *
+ * Copyright 1986-1998,2003 Adobe Systems Incorporated.
+ * All Rights Reserved.
+ *
+ * Purpose:
+ * ZString handling suite.
+ *
+ * Distribution:
+ * PUBLIC
+ *
+ * Version history:
+ * 1.0.0 1/26/1996 DL First version.
+ * Created by Dave Lazarony.
+ */
+
+#ifndef _ASZSTRING_H_
+#define _ASZSTRING_H_
+
+#include "ASTypes.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+ * Constants
+ */
+
+#define kASZStringSuite "AS ZString Suite"
+#define kASZStringDictionarySuite "AS ZString Dictionary Suite"
+
+
+#define kASUnknownErr 'UNK '
+#define kASBufferTooSmallErr 'BUFF'
+#define kASMemoryErr 'MEM '
+
+/*
+ * Types
+ */
+
+// aja 4.5.98 moved this into PIActions.h to accommodate SuspendHistory
+#ifndef ASZString_defined
+#define ASZString_defined
+struct ASZByteRun;
+typedef struct ASZByteRun *ASZString;
+#endif
+
+// FIX_ME (jreid 98.12.14) -- ASUnicode is now defined in ASTypes.h, so I'm
+// commenting this out for now. The definition is ASTypes.h is slightly different
+// (unsigned instead of signed).
+//typedef short ASUnicode;
+
+/*
+ * ZString Suite
+ */
+
+/******************************************************************************/
+
+#define kASZStringSuiteVersion1 1
+
+typedef struct ASZStringSuite
+{
+
+ ASErr ASAPI(*MakeFromUnicode)( ASUnicode *src, size_t byteCount, ASZString *newZString );
+ ASErr ASAPI(*MakeFromCString)( const char *src, size_t byteCount, ASZString *newZString );
+ ASErr ASAPI(*MakeFromPascalString)( const unsigned char *src, size_t byteCount,
+ ASZString *newZString );
+
+ ASErr ASAPI (*MakeRomanizationOfInteger)( ASInt32 value, ASZString *newZString );
+ ASErr ASAPI (*MakeRomanizationOfFixed)( ASInt32 value, ASInt16 places, ASBoolean trim,
+ ASBoolean isSigned, ASZString *newZString);
+ ASErr ASAPI (*MakeRomanizationOfDouble)( double value, ASZString *newZString );
+ ASZString ASAPI (*GetEmpty)();
+
+ ASErr ASAPI (*Copy)( ASZString source, ASZString *copy);
+ ASErr ASAPI (*Replace)( ASZString zstr, ASUInt32 index, ASZString replacement);
+ ASErr ASAPI (*TrimEllipsis)( ASZString zstr );
+ ASErr ASAPI (*TrimSpaces)( ASZString zstr );
+ ASErr ASAPI (*RemoveAccelerators)( ASZString zstr );
+
+ /* These functions support reference counting of ASZStrings. When the
+ * ASZString is created its reference count is one. When the reference
+ * count goes to zero, the ASZString referred to is deleted.
+ */
+ ASErr ASAPI (*AddRef)( ASZString zstr);
+ ASErr ASAPI (*Release)( ASZString zstr );
+
+
+
+ ASBoolean ASAPI (*IsAllWhiteSpace)( ASZString zstr );
+ ASBoolean ASAPI (*IsEmpty)( ASZString zstr );
+
+ ASBoolean ASAPI (*WillReplace)( ASZString zstr, ASUInt32 index );
+
+ ASUInt32 ASAPI (*LengthAsUnicodeCString)( ASZString zstr );
+ ASErr ASAPI (*AsUnicodeCString)( ASZString zstr, ASUnicode *str, ASUInt32 strSize,
+ ASBoolean checkStrSize );
+
+ ASUInt32 ASAPI (*LengthAsCString)( ASZString zstr );
+ ASErr ASAPI (*AsCString)( ASZString zstr, char *str, ASUInt32 strSize,
+ ASBoolean checkStrSize );
+
+ ASUInt32 ASAPI (*LengthAsPascalString)( ASZString zstr );
+ ASErr ASAPI (*AsPascalString)( ASZString zstr, char *str, ASUInt32 strBufferSize,
+ ASBoolean checkBufferSize );
+
+} ASZStringSuite1;
+
+
+
+/******************************************************************************/
+
+#define kASZStringDictionarySuiteVersion1 1
+
+typedef struct
+{
+ /* This functions set up the ZString tag-value pairs dictionary. The
+ * dictionary is scoped by the SPPluginRef to reduce naming conflicts
+ * between plug-ins.
+ */
+ ASErr ASAPI (*DictionaryAddTags)( SPPluginRef context, const char *tags );
+ ASErr ASAPI (*DictionaryAddTagsRsrc)( SPPluginRef context, ASUInt32 rsrcType, ASInt16 rsrcID );
+ ASErr ASAPI (*MakeFromTag)( SPPluginRef context, const char *tag, ASZString *newZString );
+
+} ASZStringDictionarySuite1;
+
+#define kASZStringDictionarySuiteVersion2 2
+
+typedef struct
+{
+ /* This functions set up the ZString tag-value pairs dictionary. The
+ * dictionary is scoped by the SPPluginRef to reduce naming conflicts
+ * between plug-ins.
+ */
+ ASErr ASAPI (*DictionaryAddTags)( SPPluginRef context, const char *tags );
+ ASErr ASAPI (*DictionaryAddTagsRsrc)( SPPluginRef context, ASUInt32 rsrcType, ASInt16 rsrcID );
+ ASErr ASAPI (*MakeFromTag)( SPPluginRef context, const char *tag, ASZString *newZString );
+
+ ASBoolean ASAPI (*DictionaryExists)( SPPluginRef context );
+ ASErr ASAPI (*DictionaryAddTagsLength)( SPPluginRef context, const char *tags,long length);
+
+} ASZStringDictionarySuite2;
+
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _ASZSTRING_H_ */