From b957b9afe16e35104f30ae3c4a0c8dc1c9f83c16 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 11 Sep 2009 12:33:13 +0200 Subject: [PATCH] actxprxy: Add proxies for docobj.idl. --- .gitignore | 2 ++ dlls/actxprxy/Makefile.in | 1 + dlls/actxprxy/actxprxy_docobj.idl | 21 ++++++++++++ dlls/actxprxy/usrmarshal.c | 53 +++++++++++++++++++++++++++++++ 4 files changed, 77 insertions(+) create mode 100644 dlls/actxprxy/actxprxy_docobj.idl diff --git a/.gitignore b/.gitignore index 8234ac73c8b..b0018dada34 100644 --- a/.gitignore +++ b/.gitignore @@ -25,6 +25,8 @@ dlls/actxprxy/actxprxy_activscp.h dlls/actxprxy/actxprxy_activscp_p.c dlls/actxprxy/actxprxy_comcat.h dlls/actxprxy/actxprxy_comcat_p.c +dlls/actxprxy/actxprxy_docobj.h +dlls/actxprxy/actxprxy_docobj_p.c dlls/actxprxy/actxprxy_servprov.h dlls/actxprxy/actxprxy_servprov_p.c dlls/advapi32/svcctl.h diff --git a/dlls/actxprxy/Makefile.in b/dlls/actxprxy/Makefile.in index 4f2d7c351af..6aab94f0b60 100644 --- a/dlls/actxprxy/Makefile.in +++ b/dlls/actxprxy/Makefile.in @@ -14,6 +14,7 @@ C_SRCS = \ IDL_P_SRCS = \ actxprxy_activscp.idl \ actxprxy_comcat.idl \ + actxprxy_docobj.idl \ actxprxy_servprov.idl @MAKE_DLL_RULES@ diff --git a/dlls/actxprxy/actxprxy_docobj.idl b/dlls/actxprxy/actxprxy_docobj.idl new file mode 100644 index 00000000000..711c3851e3d --- /dev/null +++ b/dlls/actxprxy/actxprxy_docobj.idl @@ -0,0 +1,21 @@ +/* + * Copyright 2009 Alexandre Julliard + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* just a wrapper for docobj.idl */ + +#include "docobj.idl" diff --git a/dlls/actxprxy/usrmarshal.c b/dlls/actxprxy/usrmarshal.c index 4f888b75046..f2aacf85a30 100644 --- a/dlls/actxprxy/usrmarshal.c +++ b/dlls/actxprxy/usrmarshal.c @@ -33,6 +33,7 @@ #include "objbase.h" #include "servprov.h" #include "comcat.h" +#include "docobj.h" #include "wine/debug.h" @@ -115,3 +116,55 @@ HRESULT __RPC_STUB ICatInformation_IsClassOfCategories_Stub( return ICatInformation_IsClassOfCategories( This, rclsid, cImplemented, rgcatidImpl, cRequired, rgcatidReq ); } + +HRESULT CALLBACK IPrint_Print_Proxy( + IPrint *This, + DWORD grfFlags, + DVTARGETDEVICE **pptd, + PAGESET **ppPageSet, + STGMEDIUM *pstgmOptions, + IContinueCallback *pcallback, + LONG nFirstPage, + LONG *pcPagesPrinted, + LONG *pnLastPage ) +{ + TRACE("(%p)\n", This); + return IPrint_RemotePrint_Proxy( This, grfFlags, pptd, ppPageSet, (RemSTGMEDIUM *)pstgmOptions, + pcallback, nFirstPage, pcPagesPrinted, pnLastPage ); +} + +HRESULT __RPC_STUB IPrint_Print_Stub( + IPrint *This, + DWORD grfFlags, + DVTARGETDEVICE **pptd, + PAGESET **ppPageSet, + RemSTGMEDIUM *pstgmOptions, + IContinueCallback *pcallback, + LONG nFirstPage, + LONG *pcPagesPrinted, + LONG *pnLastPage ) +{ + TRACE("(%p)\n", This); + return IPrint_Print( This, grfFlags, pptd, ppPageSet, (STGMEDIUM *)pstgmOptions, + pcallback, nFirstPage, pcPagesPrinted, pnLastPage ); +} + +HRESULT CALLBACK IEnumOleDocumentViews_Next_Proxy( + IEnumOleDocumentViews *This, + ULONG cViews, + IOleDocumentView **rgpView, + ULONG *pcFetched ) +{ + TRACE("(%p)\n", This); + return IEnumOleDocumentViews_RemoteNext_Proxy( This, cViews, rgpView, pcFetched ); +} + +HRESULT __RPC_STUB IEnumOleDocumentViews_Next_Stub( + IEnumOleDocumentViews *This, + ULONG cViews, + IOleDocumentView **rgpView, + ULONG *pcFetched ) +{ + TRACE("(%p)\n", This); + return IEnumOleDocumentViews_Next( This, cViews, rgpView, pcFetched ); +}