00001 #ifndef __ATETextUtil__
00002 #define __ATETextUtil__
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 #ifndef __AITypes__
00033 #include "AITypes.h"
00034 #endif
00035
00036 #ifndef __AIArt__
00037 #include "AIArt.h"
00038 #endif
00039
00040 #ifndef __ATESuites__
00041 #include "ATESuites.h"
00042 #endif
00043
00044 #ifndef __AIDocument__
00045 #include "AIDocument.h"
00046 #endif
00047
00048 #ifndef __AIFont__
00049 #include "AIFont.h"
00050 #endif
00051
00052 #ifndef __SPFiles__
00053 #include "SPFiles.h"
00054 #endif
00055
00056
00057 #include "AIHeaderBegin.h"
00058
00062
00063
00064
00065
00066
00067
00068 #define kAIATETextUtilSuite "AI ATE Text Util Suite"
00069 #define kAIATETextUtilSuiteVersion4 AIAPI_VERSION(4)
00070 #define kAIATETextUtilSuiteVersion kAIATETextUtilSuiteVersion4
00071 #define kAIATETextUtilVersion kAIATETextUtilSuiteVersion
00072
00073
00076 #define kAICurrentFontChangedNotifier "AI Current Font Changed Notifier"
00077
00079 #define kAICurrentFontSizeChangedNotifier "AI Current Font Size Changed Notifier"
00080
00082 #define kAIFontListChangedNotifier "AI Font List Changed Notifier"
00083
00085 #define kATEDocumentResourceChangedNotifier "AI ATE Document Resource Changed Notifier"
00086
00087
00092 #define kAIATEInvalidBounds 'INVB'
00093
00094
00095
00096
00097
00098
00099
00106 struct AIATETextUtilSuite {
00112 AIAPI AIErr (*GetBoundsFromTextRange)( ATE::TextRangeRef tr, AIRealRect* bounds );
00113
00120 AIAPI AIErr (*GetApplicationTextResources)( ATE::ApplicationTextResourcesRef *result );
00121
00128 AIAPI AIErr (*GetTextResourcesFromDocument)( AIDocumentHandle pDocument, ATE::TextResourcesRef* pResources );
00129
00137 AIAPI AIErr (*GetCompositeFont)( const ai::FilePath&, ATE::CompFontRef * compFont );
00138
00144 AIAPI AIErr (*WriteCompositeFont)( const ai::FilePath&, const ATE::CompFontRef compFontRef);
00145
00153 AIAPI AIErr (*GetKinsokuFile)( const ai::FilePath&, ATE::KinsokuRef *kinsokuRef );
00154
00160 AIAPI AIErr (*WriteKinsokuFile)( const ai::FilePath&, const ATE::KinsokuRef kinsokuRef );
00161
00169 AIAPI AIErr (*GetMojiKumiFile) ( const ai::FilePath&, ATE::MojiKumiRef *mojikumeRef );
00170
00176 AIAPI AIErr (*WriteMojiKumiFile)( const ai::FilePath&, const ATE::MojiKumiRef mojikumeRef);
00177
00180 AIAPI AIErr (*UpdateParagraphPaletteKinsoku) (ai::int32 index);
00181
00184 AIAPI AIErr (*UpdateParagraphPaletteMojiKumi)(ai::int32 index);
00185
00190 AIAPI AIErr (*GetSpellFile)( const ai::FilePath& pSrcFileSpec, ATE::SpellRef* pDst );
00191
00195 AIAPI AIErr (*SetCurrentFont)(AIFontKey theFont);
00196
00201 AIAPI AIErr (*GetCurrentFont)(AIFontKey *result);
00202
00206 AIAPI AIErr (*SetCurrentFontSize)(AIReal theFontSize);
00207
00212 AIAPI AIErr (*GetCurrentFontSize)(AIReal *result);
00213
00214
00215
00224 AIAPI AIErr (*GetUnderlinePoints)(const ATE::GlyphRunRef gr , ATE::ArrayRealPointRef* pPoints);
00225
00234 AIAPI AIErr (*GetStrikethroughPoints)(const ATE::GlyphRunRef gr , ATE::ArrayRealPointRef* pPoints);
00235 };
00236
00237
00238 #include "AIHeaderEnd.h"
00239
00240
00241 #endif