mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Composer Publishing improvements. Added error codes for EDT_CheckPublishURL and improved feedback strings
This commit is contained in:
parent
f0cd5c0610
commit
cbad2e1361
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user