char *text__in__;
long text__len__;
int text__in_len__;
+#ifndef TESetText
+ PyMac_PRECHECK(TESetText);
+#endif
if (!PyArg_ParseTuple(_args, "s#",
&text__in__, &text__in_len__))
return NULL;
{
PyObject *_res = NULL;
CharsHandle _rv;
+#ifndef TEGetText
+ PyMac_PRECHECK(TEGetText);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = TEGetText(_self->ob_itself);
static PyObject *TEObj_TEIdle(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
+#ifndef TEIdle
+ PyMac_PRECHECK(TEIdle);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
TEIdle(_self->ob_itself);
PyObject *_res = NULL;
long selStart;
long selEnd;
+#ifndef TESetSelect
+ PyMac_PRECHECK(TESetSelect);
+#endif
if (!PyArg_ParseTuple(_args, "ll",
&selStart,
&selEnd))
static PyObject *TEObj_TEActivate(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
+#ifndef TEActivate
+ PyMac_PRECHECK(TEActivate);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
TEActivate(_self->ob_itself);
static PyObject *TEObj_TEDeactivate(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
+#ifndef TEDeactivate
+ PyMac_PRECHECK(TEDeactivate);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
TEDeactivate(_self->ob_itself);
{
PyObject *_res = NULL;
CharParameter key;
+#ifndef TEKey
+ PyMac_PRECHECK(TEKey);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&key))
return NULL;
static PyObject *TEObj_TECut(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
+#ifndef TECut
+ PyMac_PRECHECK(TECut);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
TECut(_self->ob_itself);
static PyObject *TEObj_TECopy(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
+#ifndef TECopy
+ PyMac_PRECHECK(TECopy);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
TECopy(_self->ob_itself);
static PyObject *TEObj_TEPaste(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
+#ifndef TEPaste
+ PyMac_PRECHECK(TEPaste);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
TEPaste(_self->ob_itself);
static PyObject *TEObj_TEDelete(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
+#ifndef TEDelete
+ PyMac_PRECHECK(TEDelete);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
TEDelete(_self->ob_itself);
char *text__in__;
long text__len__;
int text__in_len__;
+#ifndef TEInsert
+ PyMac_PRECHECK(TEInsert);
+#endif
if (!PyArg_ParseTuple(_args, "s#",
&text__in__, &text__in_len__))
return NULL;
{
PyObject *_res = NULL;
short just;
+#ifndef TESetAlignment
+ PyMac_PRECHECK(TESetAlignment);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&just))
return NULL;
{
PyObject *_res = NULL;
Rect rUpdate;
+#ifndef TEUpdate
+ PyMac_PRECHECK(TEUpdate);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetRect, &rUpdate))
return NULL;
PyObject *_res = NULL;
short dh;
short dv;
+#ifndef TEScroll
+ PyMac_PRECHECK(TEScroll);
+#endif
if (!PyArg_ParseTuple(_args, "hh",
&dh,
&dv))
static PyObject *TEObj_TESelView(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
+#ifndef TESelView
+ PyMac_PRECHECK(TESelView);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
TESelView(_self->ob_itself);
PyObject *_res = NULL;
short dh;
short dv;
+#ifndef TEPinScroll
+ PyMac_PRECHECK(TEPinScroll);
+#endif
if (!PyArg_ParseTuple(_args, "hh",
&dh,
&dv))
{
PyObject *_res = NULL;
Boolean fAuto;
+#ifndef TEAutoView
+ PyMac_PRECHECK(TEAutoView);
+#endif
if (!PyArg_ParseTuple(_args, "b",
&fAuto))
return NULL;
static PyObject *TEObj_TECalText(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
+#ifndef TECalText
+ PyMac_PRECHECK(TECalText);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
TECalText(_self->ob_itself);
PyObject *_res = NULL;
short _rv;
Point pt;
+#ifndef TEGetOffset
+ PyMac_PRECHECK(TEGetOffset);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetPoint, &pt))
return NULL;
PyObject *_res = NULL;
Point _rv;
short offset;
+#ifndef TEGetPoint
+ PyMac_PRECHECK(TEGetPoint);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&offset))
return NULL;
PyObject *_res = NULL;
Point pt;
Boolean fExtend;
+#ifndef TEClick
+ PyMac_PRECHECK(TEClick);
+#endif
if (!PyArg_ParseTuple(_args, "O&b",
PyMac_GetPoint, &pt,
&fExtend))
{
PyObject *_res = NULL;
TEStyleHandle theHandle;
+#ifndef TESetStyleHandle
+ PyMac_PRECHECK(TESetStyleHandle);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &theHandle))
return NULL;
{
PyObject *_res = NULL;
TEStyleHandle _rv;
+#ifndef TEGetStyleHandle
+ PyMac_PRECHECK(TEGetStyleHandle);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = TEGetStyleHandle(_self->ob_itself);
TextStyle theStyle;
short lineHeight;
short fontAscent;
+#ifndef TEGetStyle
+ PyMac_PRECHECK(TEGetStyle);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&offset))
return NULL;
static PyObject *TEObj_TEStylePaste(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
+#ifndef TEStylePaste
+ PyMac_PRECHECK(TEStylePaste);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
TEStylePaste(_self->ob_itself);
short mode;
TextStyle newStyle;
Boolean fRedraw;
+#ifndef TESetStyle
+ PyMac_PRECHECK(TESetStyle);
+#endif
if (!PyArg_ParseTuple(_args, "hO&b",
&mode,
TextStyle_Convert, &newStyle,
TextStyle oldStyle;
TextStyle newStyle;
Boolean fRedraw;
+#ifndef TEReplaceStyle
+ PyMac_PRECHECK(TEReplaceStyle);
+#endif
if (!PyArg_ParseTuple(_args, "hO&O&b",
&mode,
TextStyle_Convert, &oldStyle,
{
PyObject *_res = NULL;
StScrpHandle _rv;
+#ifndef TEGetStyleScrapHandle
+ PyMac_PRECHECK(TEGetStyleScrapHandle);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = TEGetStyleScrapHandle(_self->ob_itself);
long text__len__;
int text__in_len__;
StScrpHandle hST;
+#ifndef TEStyleInsert
+ PyMac_PRECHECK(TEStyleInsert);
+#endif
if (!PyArg_ParseTuple(_args, "s#O&",
&text__in__, &text__in_len__,
ResObj_Convert, &hST))
long _rv;
long endLine;
long startLine;
+#ifndef TEGetHeight
+ PyMac_PRECHECK(TEGetHeight);
+#endif
if (!PyArg_ParseTuple(_args, "ll",
&endLine,
&startLine))
Boolean _rv;
short mode;
TextStyle aStyle;
+#ifndef TEContinuousStyle
+ PyMac_PRECHECK(TEContinuousStyle);
+#endif
if (!PyArg_ParseTuple(_args, "hO&",
&mode,
TextStyle_Convert, &aStyle))
long rangeEnd;
StScrpHandle newStyles;
Boolean fRedraw;
+#ifndef TEUseStyleScrap
+ PyMac_PRECHECK(TEUseStyleScrap);
+#endif
if (!PyArg_ParseTuple(_args, "llO&b",
&rangeStart,
&rangeEnd,
long _rv;
long rangeStart;
long rangeEnd;
+#ifndef TENumStyles
+ PyMac_PRECHECK(TENumStyles);
+#endif
if (!PyArg_ParseTuple(_args, "ll",
&rangeStart,
&rangeEnd))
short _rv;
short feature;
short action;
+#ifndef TEFeatureFlag
+ PyMac_PRECHECK(TEFeatureFlag);
+#endif
if (!PyArg_ParseTuple(_args, "hh",
&feature,
&action))
PyObject *_res = NULL;
OSErr _err;
RgnHandle region;
+#ifndef TEGetHiliteRgn
+ PyMac_PRECHECK(TEGetHiliteRgn);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, ®ion))
return NULL;
{
PyObject *_res = NULL;
Handle _rv;
+#ifndef as_Resource
+ PyMac_PRECHECK(as_Resource);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = as_Resource(_self->ob_itself);
{
PyObject *_res = NULL;
Handle _rv;
+#ifndef TEScrapHandle
+ PyMac_PRECHECK(TEScrapHandle);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = TEScrapHandle();
{
PyObject *_res = NULL;
long _rv;
+#ifndef TEGetScrapLength
+ PyMac_PRECHECK(TEGetScrapLength);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = TEGetScrapLength();
TEHandle _rv;
Rect destRect;
Rect viewRect;
+#ifndef TENew
+ PyMac_PRECHECK(TENew);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
PyMac_GetRect, &destRect,
PyMac_GetRect, &viewRect))
int text__in_len__;
Rect box;
short just;
+#ifndef TETextBox
+ PyMac_PRECHECK(TETextBox);
+#endif
if (!PyArg_ParseTuple(_args, "s#O&h",
&text__in__, &text__in_len__,
PyMac_GetRect, &box,
TEHandle _rv;
Rect destRect;
Rect viewRect;
+#ifndef TEStyleNew
+ PyMac_PRECHECK(TEStyleNew);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
PyMac_GetRect, &destRect,
PyMac_GetRect, &viewRect))
{
PyObject *_res = NULL;
long length;
+#ifndef TESetScrapLength
+ PyMac_PRECHECK(TESetScrapLength);
+#endif
if (!PyArg_ParseTuple(_args, "l",
&length))
return NULL;
{
PyObject *_res = NULL;
OSErr _err;
+#ifndef TEFromScrap
+ PyMac_PRECHECK(TEFromScrap);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_err = TEFromScrap();
{
PyObject *_res = NULL;
OSErr _err;
+#ifndef TEToScrap
+ PyMac_PRECHECK(TEToScrap);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_err = TEToScrap();
{
PyObject *_res = NULL;
Handle _rv;
+#ifndef TEGetScrapHandle
+ PyMac_PRECHECK(TEGetScrapHandle);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = TEGetScrapHandle();
{
PyObject *_res = NULL;
Handle value;
+#ifndef TESetScrapHandle
+ PyMac_PRECHECK(TESetScrapHandle);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &value))
return NULL;
{
PyObject *_res = NULL;
UInt8 _rv;
+#ifndef LMGetWordRedraw
+ PyMac_PRECHECK(LMGetWordRedraw);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = LMGetWordRedraw();
{
PyObject *_res = NULL;
UInt8 value;
+#ifndef LMSetWordRedraw
+ PyMac_PRECHECK(LMSetWordRedraw);
+#endif
if (!PyArg_ParseTuple(_args, "b",
&value))
return NULL;
PyObject *_res = NULL;
TEHandle _rv;
Handle h;
+#ifndef as_TE
+ PyMac_PRECHECK(as_TE);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &h))
return NULL;