Composer Publishing improvements. Added error codes for EDT_CheckPublishURL and improved feedback strings

This commit is contained in:
cmanske%netscape.com 1998-10-07 00:34:05 +00:00
parent f0cd5c0610
commit cbad2e1361
4 changed files with 14 additions and 3 deletions

View File

@ -6850,7 +6850,8 @@ Try to publish to this URL anyway?")
ResDef (XP_EDT_PUBLISH_BAD_URL, XP_MSG_BASE + 993,
"Publish destination is invalid.")
ResDef (XP_EDT_PUBLISH_BAD_CHAR, XP_MSG_BASE + 994,
"Publish destination contains at least one illegal character, such as a space.\n\n\
"Publish filename or location contains at least one\n\
of these illegal characters: % < > \\ or a space.\n\n\
Replace illegal characters with underscore ('_') ?")
ResDef (XP_EDT_PUBLISH_BAD_PROTOCOL, XP_MSG_BASE + 995,

View File

@ -6850,7 +6850,8 @@ Try to publish to this URL anyway?")
ResDef (XP_EDT_PUBLISH_BAD_URL, XP_MSG_BASE + 993,
"Publish destination is invalid.")
ResDef (XP_EDT_PUBLISH_BAD_CHAR, XP_MSG_BASE + 994,
"Publish destination contains at least one illegal character, such as a space.\n\n\
"Publish filename or location contains at least one\n\
of these illegal characters: % < > \\ or a space.\n\n\
Replace illegal characters with underscore ('_') ?")
ResDef (XP_EDT_PUBLISH_BAD_PROTOCOL, XP_MSG_BASE + 995,

View File

@ -188,10 +188,13 @@ ED_FileError EDT_PublishFile( MWContext * pContext,
* so the supplied string may have been changed.
* Caller should always update values in Publish dialog based
* on returned string after calling this
* New version returns EDT_PUBLISH_OK (0) if OK,
* ED_PUBLISH_ERROR_FILENAME (1) for error in filename, or
* ED_PUBLISH_ERROR_LOCATION (2) for error in location
*/
/* OTHER PLATFORMS NEED TO CHANGE THIS WHEN THEY CHANGE 2ND PARAM IN FE */
#ifdef XP_WIN
XP_Bool EDT_CheckPublishURL( MWContext *pContext, char **ppURL);
ED_PublishError EDT_CheckPublishURL( MWContext *pContext, char **ppURL);
#else
XP_Bool EDT_CheckPublishURL( MWContext * pContext, char * pURL);
#endif

View File

@ -546,6 +546,12 @@ typedef enum {
mail message. */
} ED_FileError;
typedef enum {
ED_PUBLISH_OK,
ED_PUBLISH_ERROR_FILENAME,
ED_PUBLISH_ERROR_LOCATION
} ED_PublishError;
typedef enum {
ED_TAG_OK,
ED_TAG_UNOPENED,