home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / odtlktv4.zip / ODTLKT / TOOLKIT / BETA / SAMPLES / OPENDOC / PARTS / CNTNRPRT / XFRMITER.CPP < prev    next >
C/C++ Source or Header  |  1995-09-27  |  3KB  |  72 lines

  1. /*
  2.  *  This file was generated by the SOM Compiler and Emitter Framework.
  3.  *  Generated using: 
  4.  *      SOM Emitter emitxtm: 2.38
  5.  */
  6.  
  7. #ifndef SOM_Module_xfrmiter_Source
  8. #define SOM_Module_xfrmiter_Source
  9. #endif
  10. #define XEmbeddedFramesIterator_Class_Source
  11. #define VARIABLE_MACROS
  12.  
  13. #include "XFrmIter.xih"
  14.  
  15. #include "ordcoll.h"
  16.  
  17. SOM_Scope void  SOMLINK XEmbeddedFramesIteratorInitXEmbeddedFramesIterator(XEmbeddedFramesIterator *somSelf, 
  18.                                                                             Environment *ev, 
  19.                                                                            ODxOrderedCollection* ocol)
  20. {
  21.     XEmbeddedFramesIteratorData *somThis = XEmbeddedFramesIteratorGetData(somSelf);
  22.     XEmbeddedFramesIteratorMethodDebug("XEmbeddedFramesIterator","XEmbeddedFramesIteratorInitXEmbeddedFramesIterator");
  23.  
  24.     _iter = ocol->CreateIterator();
  25. }
  26.  
  27. SOM_Scope ODFrame*  SOMLINK XEmbeddedFramesIteratorFirst(XEmbeddedFramesIterator *somSelf, 
  28.                                                           Environment *ev)
  29. {
  30.     XEmbeddedFramesIteratorData *somThis = XEmbeddedFramesIteratorGetData(somSelf);
  31.     XEmbeddedFramesIteratorMethodDebug("XEmbeddedFramesIterator","XEmbeddedFramesIteratorFirst");
  32.  
  33.     return (ODFrame*) _iter->First();
  34. }
  35.  
  36. SOM_Scope ODFrame*  SOMLINK XEmbeddedFramesIteratorNext(XEmbeddedFramesIterator *somSelf, 
  37.                                                          Environment *ev)
  38. {
  39.     XEmbeddedFramesIteratorData *somThis = XEmbeddedFramesIteratorGetData(somSelf);
  40.     XEmbeddedFramesIteratorMethodDebug("XEmbeddedFramesIterator","XEmbeddedFramesIteratorNext");
  41.  
  42.     return (ODFrame*) _iter->Next();
  43. }
  44.  
  45. SOM_Scope ODBoolean  SOMLINK XEmbeddedFramesIteratorIsNotComplete(XEmbeddedFramesIterator *somSelf, 
  46.                                                                    Environment *ev)
  47. {
  48.     XEmbeddedFramesIteratorData *somThis = XEmbeddedFramesIteratorGetData(somSelf);
  49.     XEmbeddedFramesIteratorMethodDebug("XEmbeddedFramesIterator","XEmbeddedFramesIteratorIsNotComplete");
  50.  
  51.     return _iter->IsNotComplete();
  52. }
  53.  
  54. SOM_Scope void  SOMLINK XEmbeddedFramesIteratorsomInit(XEmbeddedFramesIterator *somSelf)
  55. {
  56.     XEmbeddedFramesIteratorData *somThis = XEmbeddedFramesIteratorGetData(somSelf);
  57.     XEmbeddedFramesIteratorMethodDebug("XEmbeddedFramesIterator","XEmbeddedFramesIteratorsomInit");
  58.  
  59.     XEmbeddedFramesIterator_parent_ODEmbeddedFramesIterator_somInit(somSelf);
  60.     _iter = 0;
  61. }
  62.  
  63. SOM_Scope void  SOMLINK XEmbeddedFramesIteratorsomUninit(XEmbeddedFramesIterator *somSelf)
  64. {
  65.     XEmbeddedFramesIteratorData *somThis = XEmbeddedFramesIteratorGetData(somSelf);
  66.     XEmbeddedFramesIteratorMethodDebug("XEmbeddedFramesIterator","XEmbeddedFramesIteratorsomUninit");
  67.  
  68.     delete _iter;
  69.     XEmbeddedFramesIterator_parent_ODEmbeddedFramesIterator_somUninit(somSelf);
  70. }
  71.  
  72.