00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00026
00027
00028
00029
00030 #ifndef __SELECTIONFILEHANDLER_H__
00031 #define __SELECTIONFILEHANDLER_H__
00032
00033 #ifdef SELECTION_ENABLED
00034
00035 #define MAX_FILE_NAME 256
00036 #define MAX_TAG_NAME 128
00037
00038 typedef struct _SelectionID {
00039 char parentNodeTagName[MAX_TAG_NAME];
00040 unsigned int parentNodeIndex;
00041 unsigned int nodeIndex;
00042 unsigned int selectionStart;
00043 unsigned int selectionLength;
00044 } SelectionID;
00045
00054 FILE* selection_file_init(GtkMozEmbed *b);
00055
00065 bool selection_file_destroy(GtkMozEmbed *b);
00066
00076 bool selection_file_store(FILE* selectionFile, SelectionID *theSelection);
00077
00086 bool selection_file_close(FILE* selectionFile);
00087
00096 bool selection_file_available(GtkMozEmbed *b);
00097
00108 GSList* selection_file_get_list(FILE* selectionFile);
00109
00110 #endif //SELECTION_ENABLED
00111
00112 #endif //__SELECTIONFILEHANDLER_H__
00113
00114
00115