convert page type to int value.
int page_type_2_int( string strType )
If false, return 0; else return the page type's value, EXIST_WKS,EXIST_GRAPH, EXIST_MATRIX, EXIST_NOTES,EXIST_LAYOUT
EX1
void page_type_2_int_EX() { string strPage = "Graph"; if(EXIST_GRAPH == page_type_2_int(strPage)) out_str("Graph convert to EXIST_GRAPH"); }
origin.h