1 /***************************************************************************
3 BetterString.mcc - A better String gadget MUI Custom Class
4 Copyright (C) 1997-2000 Allan Odgaard
5 Copyright (C) 2005 by BetterString.mcc Open Source Team
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or (at your option) any later version.
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
17 BetterString class Support Site: http://www.sf.net/projects/bstring-mcc/
21 ***************************************************************************/
23 #include <libraries/mui.h>
24 #include <proto/muimaster.h>
25 #include <proto/exec.h>
27 /******************************************************************************/
29 /* MCC/MCP name and version */
31 /* ATTENTION: The FIRST LETTER of NAME MUST be UPPERCASE */
33 /******************************************************************************/
38 #define VERSION LIB_VERSION
39 #define REVISION LIB_REVISION
41 #define CLASS MUIC_BetterString_mcp
42 #define SUPERCLASSP MUIC_Mccprefs
44 #define INSTDATAP InstData_MCP
46 #define UserLibID "$VER: BetterString.mcp " LIB_REV_STRING CPU " (" LIB_DATE ") " LIB_COPYRIGHT
47 #define MASTERVERSION 19
54 #if defined(__amigaos4__) || defined(__MORPHOS__)
55 struct Library
*LocaleBase
= NULL
;
57 struct LocaleBase
*LocaleBase
= NULL
;
60 #if defined(__amigaos4__)
61 struct LocaleIFace
*ILocale
= NULL
;
64 BOOL
ClassInitFunc(UNUSED
struct Library
*base
)
66 if((LocaleBase
= (APTR
)OpenLibrary("locale.library", 38)) &&
67 GETINTERFACE(ILocale
, LocaleBase
))
69 // open the TextEditor.mcp catalog
79 VOID
ClassExitFunc(UNUSED
struct Library
*base
)
85 DROPINTERFACE(ILocale
);
86 CloseLibrary((APTR
)LocaleBase
);
92 /******************************************************************************/
94 /* include the lib startup code for the mcc/mcp (and muimaster inlines) */
96 /******************************************************************************/
100 #include "mccheader.c"