You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.1 KiB
50 lines
1.1 KiB
//+--------------------------------------------------------------
|
|
//
|
|
// Microsoft Windows
|
|
// Copyright (C) Microsoft Corporation, 1991 - 1996.
|
|
//
|
|
// File: dfiter.cxx
|
|
//
|
|
// Contents: Implementations of CDocFile iterator methods
|
|
//
|
|
//---------------------------------------------------------------
|
|
|
|
#include "dfhead.cxx"
|
|
|
|
|
|
#include "h/msfiter.hxx"
|
|
#include "iter.hxx"
|
|
|
|
|
|
|
|
//+--------------------------------------------------------------
|
|
//
|
|
// Member: CDocFile::GetIterator, public
|
|
//
|
|
// Synopsis: Gets a new iterator
|
|
//
|
|
// Arguments: [ppdfi] - Iterator object return
|
|
//
|
|
// Returns: Appropriate status code
|
|
//
|
|
// Modifies: [ppdfi]
|
|
//
|
|
//---------------------------------------------------------------
|
|
|
|
SCODE CDocFile::GetIterator(PDocFileIterator **ppdfi)
|
|
{
|
|
CDocFileIterator *pdfi;
|
|
SCODE sc;
|
|
|
|
olDebugOut((DEB_ITRACE, "In CDocFile::GetIterator(%p)\n", ppdfi));
|
|
olMem(pdfi = new CDocFileIterator);
|
|
olChkTo(EH_pdfi, pdfi->Init(&_stgh));
|
|
*ppdfi = pdfi;
|
|
olDebugOut((DEB_ITRACE, "Out CDocFile::GetIterator => %p\n", *ppdfi));
|
|
return S_OK;
|
|
|
|
EH_pdfi:
|
|
delete pdfi;
|
|
EH_Err:
|
|
return sc;
|
|
}
|