home *** CD-ROM | disk | FTP | other *** search
/ ActiveX Programming Unleashed CD / AXU.iso / source / chap18 / doserver / print.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-02  |  1.8 KB  |  69 lines

  1. // print.cpp : implementation of the IPrint interface
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1995 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. #include "stdafx.h"
  14. #include "binddoc.h"
  15.  
  16. #ifdef _DEBUG
  17. #undef THIS_FILE
  18. static char BASED_CODE THIS_FILE[] = __FILE__;
  19. #endif
  20.  
  21. STDMETHODIMP_(ULONG) CDocObjectServerDoc::XPrint::AddRef()
  22. {
  23.     METHOD_PROLOGUE_EX(CDocObjectServerDoc, Print)
  24.     return pThis->ExternalAddRef();
  25. }
  26.  
  27. STDMETHODIMP_(ULONG) CDocObjectServerDoc::XPrint::Release()
  28. {
  29.     METHOD_PROLOGUE_EX(CDocObjectServerDoc, Print)
  30.     return pThis->ExternalRelease();
  31. }
  32.  
  33. STDMETHODIMP CDocObjectServerDoc::XPrint::QueryInterface(
  34.     REFIID iid, LPVOID* ppvObj)
  35. {
  36.     METHOD_PROLOGUE_EX(CDocObjectServerDoc, Print)
  37.    return pThis->ExternalQueryInterface(&iid, ppvObj);
  38. }
  39.  
  40. STDMETHODIMP CDocObjectServerDoc::XPrint::SetInitialPageNum(
  41.    LONG nFirstPage)
  42. {
  43.    METHOD_PROLOGUE_EX(CDocObjectServerDoc, Print)
  44.    ASSERT_VALID(pThis);
  45.  
  46.    return E_NOTIMPL;
  47. }
  48.  
  49. STDMETHODIMP CDocObjectServerDoc::XPrint::GetPageInfo(
  50.    LPLONG pnFirstPage, LPLONG pcPages)
  51. {
  52.    METHOD_PROLOGUE_EX(CDocObjectServerDoc, Print)
  53.    ASSERT_VALID(pThis);
  54.  
  55.    return E_NOTIMPL;
  56. }
  57.  
  58. STDMETHODIMP CDocObjectServerDoc::XPrint::Print(
  59.    DWORD grfFlags, DVTARGETDEVICE** pptd,
  60.    PAGESET** pppageset, LPSTGMEDIUM pstgmOptions,
  61.    LPCONTINUECALLBACK pcallback, LONG nFirstPage,
  62.    LPLONG pcPagesPrinted, LPLONG pnLastPage)
  63. {
  64.    METHOD_PROLOGUE_EX(CDocObjectServerDoc, Print)
  65.    ASSERT_VALID(pThis);
  66.  
  67.    return E_NOTIMPL;
  68. }
  69.