1 /************************************************************************/
2 /*  Editor, File actions.						*/
3 /************************************************************************/
4 
5 #   include	"appFrameConfig.h"
6 
7 #   include	<stddef.h>
8 #   include	<stdio.h>
9 #   include	<string.h>
10 
11 #   include	"appFrame.h"
12 
13 #   include	<appDebugon.h>
14 
appDocGetSelectionType(const EditApplication * ea,const char * selection)15 const AppSelectionType * appDocGetSelectionType(
16 				const EditApplication *		ea,
17 				const char *			selection )
18     {
19     int					i;
20     const AppSelectionType *		ast;
21 
22     ast= ea->eaDocSelectionTypes;
23     for ( i= 0; i < ea->eaDocSelectionTypeCount; ast++, i++ )
24 	{
25 	if  ( ! strcmp( ast->astSelectionString, selection ) )
26 	    { break;	}
27 	}
28 
29     if  ( i >= ea->eaDocSelectionTypeCount )
30 	{ return (const AppSelectionType *)0;	}
31 
32     return ast;
33     }
34 
35