Type and prototype for new FE encoding dialog

This commit is contained in:
akkana%netscape.com 1998-09-01 19:07:27 +00:00
Родитель 58803750b3
Коммит 9f63fce640
2 изменённых файлов: 16 добавлений и 0 удалений

Просмотреть файл

@ -670,4 +670,12 @@ typedef unsigned char EDT_ImageEncoderStatus;
typedef void (*EDT_ImageEncoderCallbackFn)(EDT_ImageEncoderStatus status, void* hook);
/* Outcomes which can be returned by FE_EncodingDialog(): */
typedef enum {
ED_ENCODE_CANCEL, /* User canceled - close the page */
ED_ENDCODE_CHANGE_CHARSET, /* Convert current document's charset */
ED_ENCODE_CHANGE_METATAG /* Just write charset to meta tag */
/* (doesn't change content) */
} ED_CharsetEncode;
#endif

Просмотреть файл

@ -23,6 +23,9 @@
#include "net.h"
#include "xp_obs.h"
#include "il_types.h"
#ifdef EDITOR
#include "edttypes.h"
#endif /* EDITOR */
#include "ctxtfunc.h"
#include "prio.h" /* for netlib function decls */
@ -994,6 +997,11 @@ void FE_SetNewDocumentProperties(MWContext * pMWContext);
*/
PUBLIC void FE_EditFormattingUpdate( MWContext *pContext );
/*
* Dialog to confirm change of document encoding.
*/
PUBLIC ED_CharsetEncode FE_EncodingDialog(MWContext* pContext);
/*
* Brings up a modal image load dialog and returns. Calls
* EDT_ImageLoadCancel() if the cancel button is pressed