From dd37349cd2c26ce2523a29ef89c1a5b791756c4f Mon Sep 17 00:00:00 2001 From: "locka%iol.ie" Date: Wed, 25 Nov 1998 18:54:07 +0000 Subject: [PATCH] Added IOleCommandTarget --- webshell/embed/ActiveX/MozillaBrowser.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/webshell/embed/ActiveX/MozillaBrowser.cpp b/webshell/embed/ActiveX/MozillaBrowser.cpp index efa9073b9e04..a1d2be18c76e 100644 --- a/webshell/embed/ActiveX/MozillaBrowser.cpp +++ b/webshell/embed/ActiveX/MozillaBrowser.cpp @@ -1276,6 +1276,8 @@ HRESULT STDMETHODCALLTYPE CMozillaBrowser::QueryStatusWB(OLECMDID cmdID, OLECMDF return E_UNEXPECTED; } + // TODO acknowledge the fact that we support OLECMDID_PRINT + return E_NOTIMPL; } @@ -1290,6 +1292,12 @@ HRESULT STDMETHODCALLTYPE CMozillaBrowser::ExecWB(OLECMDID cmdID, OLECMDEXECOPT return E_UNEXPECTED; } + // Test which commands are handled + if (cmdID == OLECMDID_PRINT) + { + // TODO print when the client says print! + } + return E_NOTIMPL; } @@ -1517,4 +1525,18 @@ HRESULT STDMETHODCALLTYPE CMozillaBrowser::put_Resizable(VARIANT_BOOL Value) return E_NOTIMPL; } +/////////////////////////////////////////////////////////////////////////////// +// IOleCommandTarget + + +HRESULT STDMETHODCALLTYPE CMozillaBrowser::QueryStatus(const GUID __RPC_FAR *pguidCmdGroup, ULONG cCmds, OLECMD __RPC_FAR prgCmds[], OLECMDTEXT __RPC_FAR *pCmdText) +{ + return E_NOTIMPL; +} + + +HRESULT STDMETHODCALLTYPE CMozillaBrowser::Exec(const GUID __RPC_FAR *pguidCmdGroup, DWORD nCmdID, DWORD nCmdexecopt, VARIANT __RPC_FAR *pvaIn, VARIANT __RPC_FAR *pvaOut) +{ + return E_NOTIMPL; +}