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:
parent
820d265112
commit
a484974367
@ -2657,8 +2657,6 @@ static PRBool GetSaveFileNameFromFileSelector(nsIWidget* aParentWindow,
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
void
|
||||
nsBrowserWindow::DoDebugSave()
|
||||
{
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user