home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / xwplascr.zip / XWPL0208.ZIP / idl / xfdataf.idl < prev    next >
Text File  |  2002-08-09  |  4KB  |  183 lines

  1.  
  2. /*
  3.  * xfdataf.idl:
  4.  *      SOM interface description file for the following
  5.  *      XWorkplace classes (in this order):
  6.  *          XFldDataFile
  7.  *      and the respective metaclasses.
  8.  *
  9.  *      See src\classes\xfdataf.c for details.
  10.  *
  11.  *      Copyright (C) 1997-2002 Ulrich Möller.
  12.  *      This file is part of the XWorkplace source package.
  13.  *      XWorkplace is free software; you can redistribute it and/or modify
  14.  *      it under the terms of the GNU General Public License as published
  15.  *      by the Free Software Foundation, in version 2 as it comes in the
  16.  *      "COPYING" file of the XWorkplace main distribution.
  17.  *      This program is distributed in the hope that it will be useful,
  18.  *      but WITHOUT ANY WARRANTY; without even the implied warranty of
  19.  *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  20.  *      GNU General Public License for more details.
  21.  */
  22.  
  23. #include <wpdataf.idl>          // this is SOM for WPDataFile
  24.  
  25. /*
  26.    CLASS: XFldDataFile
  27.  
  28.    CLASS HIERARCHY:
  29.  
  30.        SOMObject
  31.          └── WPObject = XFldObject
  32.                └── WPFileSystem
  33.                      └── WPDataFile
  34.                            └──  XFldDataFile
  35. */
  36.  
  37. interface M_XFldDataFile;            // forward reference to metaclass
  38.  
  39. interface XFldDataFile : WPDataFile
  40. {
  41.  
  42.     /*
  43.      * New instance methods for XFldDataFile:
  44.      *
  45.      */
  46.  
  47. #ifdef __SOMIDL__
  48.   implementation {
  49.  
  50.     /*
  51.      * Class Modifiers:
  52.      *
  53.      */
  54.  
  55.     externalprefix = xdf_;
  56.     externalstem = xdf;
  57.     majorversion = 1;
  58.     minorversion = 1;
  59.     filestem = xfdataf;           //# specifies the filestem for sc-generated files
  60.     metaclass = M_XFldDataFile;
  61.     dllname = "xfldr.dll";
  62.     callstyle = oidl;           //# forget CORBA stuff (*ev and such)
  63.  
  64.     /*
  65.      * Internal instance variables for XFldDataFile:
  66.      *
  67.      */
  68.  
  69.     BOOL        fHasIconEA;             // set to TRUE in wpRestoreState if so
  70.  
  71.     BOOL        fIsIconOrPointer;       // set in wpInitData if WPIcon or WPPointer
  72.                                         // V0.9.19 (2002-06-15) [umoeller]
  73.  
  74.     /*
  75.      * The following is forced into the .H file:
  76.      *
  77.      */
  78.  
  79.     /*
  80.      * WPDataFile methods overridden by XFldDataFile:
  81.      *
  82.      */
  83.  
  84.     //# 1)  init/uninit methods
  85.  
  86.     wpInitData: override;
  87.     wpUnInitData: override;
  88.  
  89.     wpDestroyObject: override;
  90.  
  91.     wpRestoreState: override;
  92.  
  93.     //# 2)  WPObject query/set methods
  94.  
  95.     //# 3)  icon methods
  96.  
  97.     wpQueryIcon: override;
  98.     wpQueryIconData: override;
  99.     wpSetIconData: override;
  100.  
  101.     //# 4)  class-specific query/set methods
  102.  
  103.     wpQueryAssociatedProgram: override;
  104.     wpQueryAssociatedFileIcon: override;
  105.     wpSetAssociatedFileIcon: override;
  106.  
  107.     //# 5)  menu methods
  108.  
  109.     wpDisplayMenu: override;
  110.     wpFilterPopupMenu: override;
  111.     wpModifyPopupMenu: override;
  112.  
  113.     wpMenuItemHelpSelected: override;
  114.  
  115.     //# 6)  open view methods
  116.  
  117.     wpOpen: override;
  118.  
  119.     wpAddFile1Page: override;
  120.     wpAddFile2Page: override;
  121.     wpAddFile3Page: override;
  122.  
  123.     wpAddFileTypePage: override;
  124.  
  125.     //# 7)  file operation methods
  126.  
  127.     wpSetRealName: override;
  128.  
  129.     wpCreateFromTemplate: override;
  130.  
  131.   }; // implementation
  132. #endif /* __SOMIDL__ */
  133. };
  134.  
  135. //#
  136. //#
  137. //# Now define Metaclass.
  138. //# ---------------------
  139. //#
  140.  
  141. interface M_XFldDataFile : M_WPDataFile
  142. {
  143.  
  144. #ifdef __SOMIDL__
  145.   implementation {
  146.  
  147.     /*
  148.      * Class Modifiers:
  149.      *
  150.      */
  151.  
  152.     externalprefix = xdfM_;
  153.     externalstem = xdfM;
  154.     functionprefix = xdfM_;
  155.     majorversion = 1;
  156.     minorversion = 1;
  157.     filestem = xfdataf;           //# specifies the filestem for sc-generated files
  158.     dllname = "xfldr.dll";
  159.     callstyle = oidl;
  160.  
  161.     /*
  162.      * Internal class variables for M_XFldDataFile:
  163.      *
  164.      */
  165.  
  166.     /*
  167.      * M_WPDataFile methods overridden by M_XFldDataFile:
  168.      *
  169.      */
  170.  
  171.     wpclsInitData: override;
  172.     wpclsCreateDefaultTemplates: override;
  173.  
  174.     wpclsQueryTitle: override;
  175.     wpclsQueryDefaultHelp: override;
  176.     wpclsQueryIconData: override;
  177.  
  178.   };
  179. #endif /* __SOMIDL__ */
  180. };
  181.  
  182.  
  183.