Loading Makefile.in +0 −1 Original line number Diff line number Diff line Loading @@ -69,7 +69,6 @@ DIRS += \ view \ widget \ layout \ editor \ webshell ifdef MOZ_EDITOR Loading configure.in +12 −4 Original line number Diff line number Diff line Loading @@ -972,9 +972,6 @@ dom/src/events/Makefile dom/src/html/Makefile dom/src/jsurl/Makefile dom/tools/Makefile editor/Makefile editor/core/Makefile editor/public/Makefile gfx/Makefile gfx/public/Makefile gfx/src/Makefile Loading Loading @@ -1140,6 +1137,17 @@ xpfe/xpviewer/Makefile xpfe/xpviewer/src/Makefile xpfe/xpviewer/public/Makefile" AC_OUTPUT($NG_MAKEFILES) EDITOR_MAKEFILES=" editor/Makefile editor/core/Makefile editor/public/Makefile" MAKEFILES="$NG_MAKEFILES" if test -n "$MOZ_EDITOR"; then MAKEFILES="$MAKEFILES $EDITOR_MAKEFILES" fi AC_OUTPUT($MAKEFILES) webshell/tests/viewer/nsSetupRegistry.cpp +6 −1 Original line number Diff line number Diff line Loading @@ -40,8 +40,9 @@ #include "nsLayoutCID.h" #include "nsINetService.h" #ifdef NGEDITOR #include "nsIEditor.h" #endif #ifdef XP_PC #define WIDGET_DLL "raptorwidget.dll" Loading Loading @@ -120,7 +121,9 @@ static NS_DEFINE_IID(kCXMLDocument, NS_XMLDOCUMENT_CID); static NS_DEFINE_IID(kCImageDocument, NS_IMAGEDOCUMENT_CID); static NS_DEFINE_IID(kCHTMLImageElementFactory, NS_HTMLIMAGEELEMENTFACTORY_CID); static NS_DEFINE_IID(kNetServiceCID, NS_NETSERVICE_CID); #ifdef NGEDITOR static NS_DEFINE_IID(kIEditFactoryIID, NS_IEDITORFACTORY_IID); #endif extern "C" void NS_SetupRegistry() Loading Loading @@ -167,6 +170,8 @@ NS_SetupRegistry() nsRepository::RegisterFactory(kCHTMLImageElementFactory, LAYOUT_DLL, PR_FALSE, PR_FALSE); nsRepository::RegisterFactory(kNetServiceCID, NETLIB_DLL, PR_FALSE, PR_FALSE); #ifndef XP_MAC // temporary #ifdef NGEDITOR nsRepository::RegisterFactory(kIEditFactoryIID, EDITOR_DLL, PR_FALSE, PR_FALSE); #endif #endif //XP_MAC } xpfe/xpviewer/src/nsBrowserWindow.cpp +12 −3 Original line number Diff line number Diff line Loading @@ -96,8 +96,9 @@ #include <windows.h> #endif #ifdef NGEDITOR #include "nsIEditor.h" #endif // XXX For font setting below #include "nsFont.h" Loading Loading @@ -178,9 +179,10 @@ static NS_DEFINE_IID(kIPopUpMenuIID, NS_IPOPUPMENU_IID); static NS_DEFINE_IID(kIMenuButtonIID, NS_IMENUBUTTON_IID); static NS_DEFINE_IID(kIXPBaseWindowIID, NS_IXPBASE_WINDOW_IID); static NS_DEFINE_IID(kINetSupportIID, NS_INETSUPPORT_IID); #ifdef NGEDITOR static NS_DEFINE_IID(kIEditFactoryIID, NS_IEDITORFACTORY_IID); static NS_DEFINE_IID(kIEditorIID, NS_IEDITOR_IID); #endif static const char* gsAOLFormat = "AOLMAIL"; static const char* gsHTMLFormat = "text/html"; Loading Loading @@ -768,9 +770,11 @@ nsBrowserWindow::DispatchMenuItem(PRInt32 aID) DoJSConsole(); break; #ifdef NGEDITOR case EDITOR_MODE: DoEditorMode(mWebShell); break; #endif } //switch return nsEventStatus_eIgnore; Loading Loading @@ -2825,6 +2829,7 @@ nsBrowserWindow::DoJSConsole() mApp->CreateJSConsole(this); } #ifdef NGEDITOR //---------------------------------------- void nsBrowserWindow::DoEditorMode(nsIWebShell *aWebShell) Loading Loading @@ -2879,7 +2884,7 @@ nsBrowserWindow::AddEditor(nsIEditor *aEditor) if (!mEditor)//THIS FUNCTION REALLY NEEDS HELP mEditor = aEditor; } #endif #ifdef NS_DEBUG Loading Loading @@ -3384,7 +3389,9 @@ void CreateBrowserMenus(nsIMenuBar * aMenuBar) {"Debug Robot", "R", VIEWER_DEBUGROBOT}, {"-", NULL, 0}, {"Show Content Quality", ".", VIEWER_SHOW_CONTENT_QUALITY}, #ifdef NGEDITOR {"Editor", "E", EDITOR_MODE}, #endif {NULL, NULL, 0} }; Loading Loading @@ -3415,12 +3422,14 @@ void CreateBrowserMenus(nsIMenuBar * aMenuBar) CreateMenuItem(fileMenu, "-", 0); CreateMenuItem(fileMenu, "Exit", VIEWER_EXIT); #ifdef NGEDITOR nsIMenu * editMenu = CreateMenu(aMenuBar, "Edit", 'E'); i = 0; while (editMenus[i].title != nsnull) { CreateMenuItem(editMenu, editMenus[i].title, editMenus[i].command); i++; } #endif #ifdef NOT_YET nsIMenu * viewMenu = CreateMenu(aMenuBar, "View", 'V'); Loading xpfe/xpviewer/src/nsBrowserWindow.h +6 −0 Original line number Diff line number Diff line Loading @@ -32,7 +32,9 @@ #include "nsIToolbarManagerListener.h" #include "nsIImageButtonListener.h" #ifdef NGEDITOR #include "nsIEditor.h" #endif class nsILabel; class nsICheckButton; Loading Loading @@ -148,7 +150,9 @@ public: void DoViewSource(); void DoCopy(); void DoJSConsole(); #ifdef NGEDITOR void DoEditorMode(nsIWebShell* aWebShell); #endif nsIPresShell* GetPresShell(); void DoFind(); Loading Loading @@ -295,8 +299,10 @@ protected: void UpdateToolbarBtns(); #ifdef NGEDITOR void AddEditor(nsIEditor *); //this function is temporary and WILL be depricated nsIEditor * mEditor; //this will hold the editor for future commands. we must think about this mjudge #endif }; // nsViewSourceWindow Loading Loading
Makefile.in +0 −1 Original line number Diff line number Diff line Loading @@ -69,7 +69,6 @@ DIRS += \ view \ widget \ layout \ editor \ webshell ifdef MOZ_EDITOR Loading
configure.in +12 −4 Original line number Diff line number Diff line Loading @@ -972,9 +972,6 @@ dom/src/events/Makefile dom/src/html/Makefile dom/src/jsurl/Makefile dom/tools/Makefile editor/Makefile editor/core/Makefile editor/public/Makefile gfx/Makefile gfx/public/Makefile gfx/src/Makefile Loading Loading @@ -1140,6 +1137,17 @@ xpfe/xpviewer/Makefile xpfe/xpviewer/src/Makefile xpfe/xpviewer/public/Makefile" AC_OUTPUT($NG_MAKEFILES) EDITOR_MAKEFILES=" editor/Makefile editor/core/Makefile editor/public/Makefile" MAKEFILES="$NG_MAKEFILES" if test -n "$MOZ_EDITOR"; then MAKEFILES="$MAKEFILES $EDITOR_MAKEFILES" fi AC_OUTPUT($MAKEFILES)
webshell/tests/viewer/nsSetupRegistry.cpp +6 −1 Original line number Diff line number Diff line Loading @@ -40,8 +40,9 @@ #include "nsLayoutCID.h" #include "nsINetService.h" #ifdef NGEDITOR #include "nsIEditor.h" #endif #ifdef XP_PC #define WIDGET_DLL "raptorwidget.dll" Loading Loading @@ -120,7 +121,9 @@ static NS_DEFINE_IID(kCXMLDocument, NS_XMLDOCUMENT_CID); static NS_DEFINE_IID(kCImageDocument, NS_IMAGEDOCUMENT_CID); static NS_DEFINE_IID(kCHTMLImageElementFactory, NS_HTMLIMAGEELEMENTFACTORY_CID); static NS_DEFINE_IID(kNetServiceCID, NS_NETSERVICE_CID); #ifdef NGEDITOR static NS_DEFINE_IID(kIEditFactoryIID, NS_IEDITORFACTORY_IID); #endif extern "C" void NS_SetupRegistry() Loading Loading @@ -167,6 +170,8 @@ NS_SetupRegistry() nsRepository::RegisterFactory(kCHTMLImageElementFactory, LAYOUT_DLL, PR_FALSE, PR_FALSE); nsRepository::RegisterFactory(kNetServiceCID, NETLIB_DLL, PR_FALSE, PR_FALSE); #ifndef XP_MAC // temporary #ifdef NGEDITOR nsRepository::RegisterFactory(kIEditFactoryIID, EDITOR_DLL, PR_FALSE, PR_FALSE); #endif #endif //XP_MAC }
xpfe/xpviewer/src/nsBrowserWindow.cpp +12 −3 Original line number Diff line number Diff line Loading @@ -96,8 +96,9 @@ #include <windows.h> #endif #ifdef NGEDITOR #include "nsIEditor.h" #endif // XXX For font setting below #include "nsFont.h" Loading Loading @@ -178,9 +179,10 @@ static NS_DEFINE_IID(kIPopUpMenuIID, NS_IPOPUPMENU_IID); static NS_DEFINE_IID(kIMenuButtonIID, NS_IMENUBUTTON_IID); static NS_DEFINE_IID(kIXPBaseWindowIID, NS_IXPBASE_WINDOW_IID); static NS_DEFINE_IID(kINetSupportIID, NS_INETSUPPORT_IID); #ifdef NGEDITOR static NS_DEFINE_IID(kIEditFactoryIID, NS_IEDITORFACTORY_IID); static NS_DEFINE_IID(kIEditorIID, NS_IEDITOR_IID); #endif static const char* gsAOLFormat = "AOLMAIL"; static const char* gsHTMLFormat = "text/html"; Loading Loading @@ -768,9 +770,11 @@ nsBrowserWindow::DispatchMenuItem(PRInt32 aID) DoJSConsole(); break; #ifdef NGEDITOR case EDITOR_MODE: DoEditorMode(mWebShell); break; #endif } //switch return nsEventStatus_eIgnore; Loading Loading @@ -2825,6 +2829,7 @@ nsBrowserWindow::DoJSConsole() mApp->CreateJSConsole(this); } #ifdef NGEDITOR //---------------------------------------- void nsBrowserWindow::DoEditorMode(nsIWebShell *aWebShell) Loading Loading @@ -2879,7 +2884,7 @@ nsBrowserWindow::AddEditor(nsIEditor *aEditor) if (!mEditor)//THIS FUNCTION REALLY NEEDS HELP mEditor = aEditor; } #endif #ifdef NS_DEBUG Loading Loading @@ -3384,7 +3389,9 @@ void CreateBrowserMenus(nsIMenuBar * aMenuBar) {"Debug Robot", "R", VIEWER_DEBUGROBOT}, {"-", NULL, 0}, {"Show Content Quality", ".", VIEWER_SHOW_CONTENT_QUALITY}, #ifdef NGEDITOR {"Editor", "E", EDITOR_MODE}, #endif {NULL, NULL, 0} }; Loading Loading @@ -3415,12 +3422,14 @@ void CreateBrowserMenus(nsIMenuBar * aMenuBar) CreateMenuItem(fileMenu, "-", 0); CreateMenuItem(fileMenu, "Exit", VIEWER_EXIT); #ifdef NGEDITOR nsIMenu * editMenu = CreateMenu(aMenuBar, "Edit", 'E'); i = 0; while (editMenus[i].title != nsnull) { CreateMenuItem(editMenu, editMenus[i].title, editMenus[i].command); i++; } #endif #ifdef NOT_YET nsIMenu * viewMenu = CreateMenu(aMenuBar, "View", 'V'); Loading
xpfe/xpviewer/src/nsBrowserWindow.h +6 −0 Original line number Diff line number Diff line Loading @@ -32,7 +32,9 @@ #include "nsIToolbarManagerListener.h" #include "nsIImageButtonListener.h" #ifdef NGEDITOR #include "nsIEditor.h" #endif class nsILabel; class nsICheckButton; Loading Loading @@ -148,7 +150,9 @@ public: void DoViewSource(); void DoCopy(); void DoJSConsole(); #ifdef NGEDITOR void DoEditorMode(nsIWebShell* aWebShell); #endif nsIPresShell* GetPresShell(); void DoFind(); Loading Loading @@ -295,8 +299,10 @@ protected: void UpdateToolbarBtns(); #ifdef NGEDITOR void AddEditor(nsIEditor *); //this function is temporary and WILL be depricated nsIEditor * mEditor; //this will hold the editor for future commands. we must think about this mjudge #endif }; // nsViewSourceWindow Loading