Added Debug Output HTML and Debug Output Text

Note: these only work in editor mode.


git-svn-id: svn://10.0.0.236/trunk@22781 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kostello%netscape.com 1999-03-04 21:50:44 +00:00
parent 820d265112
commit a484974367
4 changed files with 12 additions and 3 deletions

View File

@ -2657,8 +2657,6 @@ static PRBool GetSaveFileNameFromFileSelector(nsIWidget* aParentWindow,
}
void
nsBrowserWindow::DoDebugSave()
{

View File

@ -146,7 +146,14 @@ nsresult NS_DoEditorTest(PRInt32 aCommandID)
case VIEWER_EDIT_JOIN_CELL_BELOW:
gEditor->JoinTableCells(PR_FALSE);
break;
default:
case VIEWER_DISPLAYTEXT:
gEditor->OutputText(nsnull);
break;
case VIEWER_DISPLAYHTML:
gEditor->OutputHTML(nsnull);
break;
default:
return NS_ERROR_NOT_IMPLEMENTED;
}
}

View File

@ -63,6 +63,8 @@
#define VIEWER_IMAGE_INSPECTOR 40045
#define VIEWER_NATIVE_WIDGET_MODE 40046
#define VIEWER_GFX_WIDGET_MODE 40047
#define VIEWER_DISPLAYTEXT 40048
#define VIEWER_DISPLAYHTML 40049
#define VIEWER_SELECT_STYLE_LIST 40500
#define VIEWER_SELECT_STYLE_DEFAULT 40501

View File

@ -86,6 +86,8 @@ VIEWER MENU DISCARDABLE
MENUITEM "Show Style Size", VIEWER_SHOW_STYLE_SIZE
MENUITEM SEPARATOR
MENUITEM "Debug Save", VIEWER_DEBUGSAVE
MENUITEM "Debug Display Text", VIEWER_DISPLAYTEXT
MENUITEM "Debug Display HTML", VIEWER_DISPLAYHTML
MENUITEM "Debug Toggle Selection", VIEWER_TOGGLE_SELECTION
MENUITEM SEPARATOR
MENUITEM "Debu&g Robot", VIEWER_DEBUGROBOT