#ifndef SPEAKSTRINGS_H
#define SPEAKSTRINGS_H


/****************************************************************************/


/* This file was created automatically by CatComp.
 * Do NOT edit by hand!
 */


#ifndef EXEC_TYPES_H
#include <exec/types.h>
#endif

#ifdef CATCOMP_ARRAY
#undef CATCOMP_NUMBERS
#undef CATCOMP_STRINGS
#define CATCOMP_NUMBERS
#define CATCOMP_STRINGS
#endif

#ifdef CATCOMP_BLOCK
#undef CATCOMP_STRINGS
#define CATCOMP_STRINGS
#endif


/****************************************************************************/


#ifdef CATCOMP_NUMBERS

#define MSG_AppDescription 0
#define MSG_WIN_MAIN 1
#define MSG_GR_grp_0 2
#define MSG_TX_label_0 3
#define MSG_CY_SEX0 4
#define MSG_CY_SEX1 5
#define MSG_TX_label_1 6
#define MSG_CY_KIND0 7
#define MSG_CY_KIND1 8
#define MSG_CY_KIND2 9
#define MSG_TX_label_2 10
#define MSG_TX_label_3 11
#define MSG_TX_label_4 12
#define MSG_GR_grp_3 13
#define MSG_TX_label_5 14
#define MSG_TX_label_6 15
#define MSG_STR_TEXT 16
#define MSG_STR_PHONEME 17
#define MSG_BT_SPEAK 18

#endif /* CATCOMP_NUMBERS */


/****************************************************************************/


#ifdef CATCOMP_STRINGS

#define MSG_AppDescription_STR "Another Speechtoy Clone"
#define MSG_WIN_MAIN_STR "MUI Speechtoy  Written in 1994 by Andreas Jung"
#define MSG_GR_grp_0_STR "Allgemein"
#define MSG_TX_label_0_STR "Geschlecht: "
#define MSG_CY_SEX0_STR "Männlich"
#define MSG_CY_SEX1_STR "Weiblich"
#define MSG_TX_label_1_STR "Art:"
#define MSG_CY_KIND0_STR "Normal"
#define MSG_CY_KIND1_STR "Roboterhaft"
#define MSG_CY_KIND2_STR "Manuell"
#define MSG_TX_label_2_STR "Stimmhöhe:"
#define MSG_TX_label_3_STR "Geschwindigkeit:"
#define MSG_TX_label_4_STR "Lautstärke:"
#define MSG_GR_grp_3_STR "Detailiert"
#define MSG_TX_label_5_STR "Enthusiasmus:"
#define MSG_TX_label_6_STR "Perturbation:"
#define MSG_STR_TEXT_STR "Texteingabe"
#define MSG_STR_PHONEME_STR "Phoneme    "
#define MSG_BT_SPEAK_STR "_s Sprechen"

#endif /* CATCOMP_STRINGS */


/****************************************************************************/


#ifdef CATCOMP_ARRAY

struct CatCompArrayType
{
    LONG   cca_ID;
    STRPTR cca_Str;
};

static const struct CatCompArrayType CatCompArray[] =
{
    {MSG_AppDescription,(STRPTR)MSG_AppDescription_STR},
    {MSG_WIN_MAIN,(STRPTR)MSG_WIN_MAIN_STR},
    {MSG_GR_grp_0,(STRPTR)MSG_GR_grp_0_STR},
    {MSG_TX_label_0,(STRPTR)MSG_TX_label_0_STR},
    {MSG_CY_SEX0,(STRPTR)MSG_CY_SEX0_STR},
    {MSG_CY_SEX1,(STRPTR)MSG_CY_SEX1_STR},
    {MSG_TX_label_1,(STRPTR)MSG_TX_label_1_STR},
    {MSG_CY_KIND0,(STRPTR)MSG_CY_KIND0_STR},
    {MSG_CY_KIND1,(STRPTR)MSG_CY_KIND1_STR},
    {MSG_CY_KIND2,(STRPTR)MSG_CY_KIND2_STR},
    {MSG_TX_label_2,(STRPTR)MSG_TX_label_2_STR},
    {MSG_TX_label_3,(STRPTR)MSG_TX_label_3_STR},
    {MSG_TX_label_4,(STRPTR)MSG_TX_label_4_STR},
    {MSG_GR_grp_3,(STRPTR)MSG_GR_grp_3_STR},
    {MSG_TX_label_5,(STRPTR)MSG_TX_label_5_STR},
    {MSG_TX_label_6,(STRPTR)MSG_TX_label_6_STR},
    {MSG_STR_TEXT,(STRPTR)MSG_STR_TEXT_STR},
    {MSG_STR_PHONEME,(STRPTR)MSG_STR_PHONEME_STR},
    {MSG_BT_SPEAK,(STRPTR)MSG_BT_SPEAK_STR},
};

#endif /* CATCOMP_ARRAY */


/****************************************************************************/


#ifdef CATCOMP_BLOCK

static const char CatCompBlock[] =
{
    "\x00\x00\x00\x00\x00\x18"
    MSG_AppDescription_STR "\x00"
    "\x00\x00\x00\x01\x00\x30"
    MSG_WIN_MAIN_STR "\x00\x00"
    "\x00\x00\x00\x02\x00\x0A"
    MSG_GR_grp_0_STR "\x00"
    "\x00\x00\x00\x03\x00\x0E"
    MSG_TX_label_0_STR "\x00\x00"
    "\x00\x00\x00\x04\x00\x0A"
    MSG_CY_SEX0_STR "\x00\x00"
    "\x00\x00\x00\x05\x00\x0A"
    MSG_CY_SEX1_STR "\x00\x00"
    "\x00\x00\x00\x06\x00\x06"
    MSG_TX_label_1_STR "\x00\x00"
    "\x00\x00\x00\x07\x00\x08"
    MSG_CY_KIND0_STR "\x00\x00"
    "\x00\x00\x00\x08\x00\x0C"
    MSG_CY_KIND1_STR "\x00"
    "\x00\x00\x00\x09\x00\x08"
    MSG_CY_KIND2_STR "\x00"
    "\x00\x00\x00\x0A\x00\x0C"
    MSG_TX_label_2_STR "\x00\x00"
    "\x00\x00\x00\x0B\x00\x12"
    MSG_TX_label_3_STR "\x00\x00"
    "\x00\x00\x00\x0C\x00\x0C"
    MSG_TX_label_4_STR "\x00"
    "\x00\x00\x00\x0D\x00\x0C"
    MSG_GR_grp_3_STR "\x00\x00"
    "\x00\x00\x00\x0E\x00\x0E"
    MSG_TX_label_5_STR "\x00"
    "\x00\x00\x00\x0F\x00\x0E"
    MSG_TX_label_6_STR "\x00"
    "\x00\x00\x00\x10\x00\x0C"
    MSG_STR_TEXT_STR "\x00"
    "\x00\x00\x00\x11\x00\x0C"
    MSG_STR_PHONEME_STR "\x00"
    "\x00\x00\x00\x12\x00\x0C"
    MSG_BT_SPEAK_STR "\x00"
};

#endif /* CATCOMP_BLOCK */


/****************************************************************************/


struct LocaleInfo
{
    APTR li_LocaleBase;
    APTR li_Catalog;
};


#ifdef CATCOMP_CODE

STRPTR GetString(struct LocaleInfo *li, LONG stringNum)
{
LONG   *l;
UWORD  *w;
STRPTR  builtIn;

    l = (LONG *)CatCompBlock;

    while (*l != stringNum)
    {
        w = (UWORD *)((ULONG)l + 4);
        l = (LONG *)((ULONG)l + (ULONG)*w + 6);
    }
    builtIn = (STRPTR)((ULONG)l + 6);

#define XLocaleBase LocaleBase
#define LocaleBase li->li_LocaleBase
    
    if (LocaleBase)
        return(GetCatalogStr(li->li_Catalog,stringNum,builtIn));
#define LocaleBase XLocaleBase
#undef XLocaleBase

    return(builtIn);
}


#endif /* CATCOMP_CODE */


/****************************************************************************/


#endif /* SPEAKSTRINGS_H */
