Fix for a crash which happened when a document couldn't be opened.
[AROS-Contrib.git] / bgui / spacingclass.c
blob7630b1d07fb5f37de74548fb23945263b88f6b06
1 /*
2 * @(#) $Header$
4 * BGUI library
5 * spacingclass.c
7 * (C) Copyright 1998 Manuel Lemos.
8 * (C) Copyright 1996-1997 Ian J. Einman.
9 * (C) Copyright 1993-1996 Jaba Development.
10 * (C) Copyright 1993-1996 Jan van den Baard.
11 * All Rights Reserved.
13 * $Log$
14 * Revision 42.2 2004/06/16 20:16:48 verhaegs
15 * Use METHODPROTO, METHOD_END and REGFUNCPROTOn where needed.
17 * Revision 42.1 2000/05/15 19:27:02 stegerg
18 * another hundreds of REG() macro replacements in func headers/protos.
20 * Revision 42.0 2000/05/09 22:10:15 mlemos
21 * Bumped to revision 42.0 before handing BGUI to AROS team
23 * Revision 41.11 2000/05/09 19:55:09 mlemos
24 * Merged with the branch Manuel_Lemos_fixes.
26 * Revision 41.10 1998/02/25 21:13:11 mlemos
27 * Bumping to 41.10
29 * Revision 1.1 1998/02/25 17:09:48 mlemos
30 * Ian sources
35 #include "include/classdefs.h"
38 * This object cannot be hit.
40 METHOD(SpacingClassHitTest, Msg, msg)
42 return 0;
44 METHOD_END
47 * This object cannot be helped.
49 METHOD(SpacingClassHelp, Msg, msg)
51 return BMHELP_NOT_ME;
53 METHOD_END
56 * Simple dimensions request.
58 METHOD(SpacingClassDimensions, struct grmDimensions *, dim)
60 *(dim->grmd_MinSize.Width) = 0;
61 *(dim->grmd_MinSize.Height) = 0;
62 return 1;
64 METHOD_END
67 * Left extention request.
69 METHOD(SpacingClassLeftExt, struct bmLeftExt *, le)
71 *(le->bmle_Extention) = 0;
72 return 1;
74 METHOD_END
77 * Class function table.
79 STATIC DPFUNC ClassFunc[] = {
80 { GM_HITTEST, SpacingClassHitTest },
81 { GRM_DIMENSIONS, SpacingClassDimensions },
82 { BASE_LEFTEXT, SpacingClassLeftExt },
83 { BASE_SHOWHELP, SpacingClassHelp },
84 { DF_END },
88 * Simple class initialization.
90 makeproto Class *InitSpacingClass(void)
92 return BGUI_MakeClass(CLASS_SuperClassID, GadgetClass,
93 CLASS_DFTable, ClassFunc,
94 TAG_DONE);