home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional Developers Kit 1992 November / Disc01 / Disc01.mdf / os2tk20 / sc / wpfolder.sc_ / WPFOLDER.SC
Encoding:
Text File  |  1992-10-05  |  8.5 KB  |  329 lines

  1.  
  2. # This file was generated by the SOM Compiler.
  3. # FileName: wpfolder.sc.
  4. # Generated using:
  5. #     SOM Precompiler spc: 1.22
  6. #     SOM Emitter emitcsc: 1.10
  7.  
  8. /*
  9.  *  Module Header
  10.  * 
  11.  *  Module Name: WPFOLDER
  12.  * 
  13.  *  OS/2 Presentation Manager Workplace class definitions
  14.  * 
  15.  *  Copyright (c) International Business Machines Corporation 1991, 1992
  16.  * 
  17.  */
  18.  
  19. #include "wpfsys.sc"
  20.  
  21. class: WPFolder, 
  22.     external stem = wpfdr, local, external prefix = fdr_, 
  23.     classprefix = fdrM_, major version = 1, minor version = 2, 
  24.     file stem = wpfolder;
  25.  
  26.  
  27. parent class: WPFileSystem;
  28.  
  29.  
  30. release order:
  31.     wpSetFldrFlags, wpQueryFldrFlags, wpSetFldrFont, 
  32.     wpQueryFldrFont, wpSetNextIconPos, wpQueryNextIconPos, 
  33.     wpPopulate, wpAddToContent, wpQueryContent, 
  34.     wpAddFolderView1Page, wpAddFolderView2Page, wpAddFolderView3Page, 
  35.     wpAddFolderIncludePage, wpAddFolderSortPage, wpAddFolderBackgroundPage, 
  36.     wpInitIconPosData, wpFreeIconPosData, wpQueryIconPosition, 
  37.     wpStoreIconPosData, wpDeleteFromContent, wpSetFldrAttr, 
  38.     wpQueryFldrAttr, wpSetFldrSort, wpQueryFldrSort, 
  39.     wpRestoreFldrRunObjs, wpStoreFldrRunObjs, withdrawn30, 
  40.     withdrawn31, wpDeleteContents, wpQueryOpenFolders, 
  41.     wpSetNextOpenFldr, wpSearchFolder, wpSetFldrDetailsClass, 
  42.     wpQueryFldrDetailsClass, wpRefresh, wpSetDetailsColumnVisibility, 
  43.     wpIsDetailsColumnVisible, wpQuerySortArray, wpSetSortArray, 
  44.     wpQuerySortInfo, wpSetSortInfo, wpSetFldrSortClass, 
  45.     wpQueryFldrSortClass, wpSetSortAttribAvailable, wpIsSortAttribAvailable, 
  46.     wpQueryFldrFilter, wpContainsFolders, wpQueryBkgnd, 
  47.     wpQueryIconViewPos, wpQueryDefaultView, wpAddFirstChild, 
  48.     FirstObj, wpHideFldrRunObjs, wpFSNotifyFolder, 
  49.     wpAddNotification, wpDeleteNotification, wpProcessNotification, 
  50.     wpclsGetNotifySem, wpclsReleaseNotifySem, wpModifySneakyCount, 
  51.     wpSneakySupported, wpAssertFolderMutexSem, wpReleaseFolderMutexSem, 
  52.     wpRequestFolderMutexSem, wpQueryPopThreadID, wpQueryNextOpenFldr, 
  53.     wpclsQueryOpenFolders, hmtxOneFindAtATime, wpRequestFindMutexSem, 
  54.     wpReleaseFindMutexSem;
  55.  
  56.  
  57. passthru: C.h, after;
  58.  
  59.       /* Folder flags */
  60.  
  61.       #define FOI_POPULATEDWITHALL      0x0001
  62.       #define FOI_POPULATEDWITHFOLDERS  0x0002
  63.       #define FOI_WORKAREA              0x0004
  64.       #define FOI_CHANGEFONT            0x0008        /* anti-recursion flag */
  65.       #define FOI_WAMINIMIZED           0x0020
  66.       #define FOI_WASTARTONRESTORE      0x0040
  67.       #define FOI_NOREFRESHVIEWS        0x0080
  68.       #define FOI_ASYNCREFRESHONOPEN    0x0100
  69.       #define FOI_TREEPOPULATED         0x0200
  70.       #define FOI_POPULATEINPROGRESS    0x0400                          /*DORM*/
  71.       #define FOI_REFRESHINPROGRESS     0x0800
  72.  
  73.       /* Open views for the wpOpen() method */
  74.  
  75.       #define OPEN_TREE          101
  76.       #define OPEN_DETAILS       102
  77.  
  78.       /* Folder save-restore keys */
  79.  
  80.       #define IDKEY_FDRCONTENTATTR     2900
  81.       #define IDKEY_FDRTREEATTR        2901
  82.       #define IDKEY_FDRCVLFONT         2902
  83.       #define IDKEY_FDRCVNFONT         2903
  84.       #define IDKEY_FDRCVIFONT         2904
  85.       #define IDKEY_FDRTVLFONT         2905
  86.       #define IDKEY_FDRTVNFONT         2906
  87.       #define IDKEY_FDRDETAILSATTR     2907
  88.       #define IDKEY_FDRDVFONT          2908
  89.       #define IDKEY_FDRDETAILSCLASS    2909
  90.       #define IDKEY_FDRICONPOS         2910
  91.       #define IDKEY_FDRINVISCOLUMNS    2914
  92.       #define IDKEY_FDRINCCLASS        2920
  93.       #define IDKEY_FDRINCNAME         2921
  94.       #define IDKEY_FDRFSYSSEARCHINFO  2922
  95.       #define IDKEY_FILTERCONTENT      2923
  96.       #define IDKEY_CNRBACKGROUND      2924
  97.       #define IDKEY_FDRINCCRITERIA     2925
  98.       #define IDKEY_FDRICONVIEWPOS     2926
  99.       #define IDKEY_FDRSORTCLASS       2927
  100.       #define IDKEY_FDRSORTATTRIBS     2928
  101.       #define IDKEY_FDRSORTINFO        2929
  102.       #define IDKEY_FDRSNEAKYCOUNT     2930                              /*SNK*/
  103.       #define IDKEY_FDRLONGARRAY       2931
  104.       #define IDKEY_FDRSTRARRAY        2932
  105.  
  106.       /* Miscellaneous */
  107.  
  108.       #define PPFONTSTRSIZE 20
  109.  
  110.       #define ICONPOSSIZE(pI) ( sizeof(ICONPOS) + strlen(pI->szIdentity) )
  111.       #define GETATTR(View) (View == OPEN_CONTENTS ? _ContentAttr : \
  112.                              (View == OPEN_TREE ? _TreeAttr : _DetailsAttr))
  113.       #define FOLDER_DEFATTRS (CV_ICON | CA_OWNERPAINTBACKGROUND     |  \
  114.                                CA_MIXEDTARGETEMPH | CA_OWNERDRAW)
  115.       #define FOLDER_DEFTREEATTRS (CV_ICON | CA_OWNERPAINTBACKGROUND |  \
  116.                                    CV_TREE | CA_TREELINE | CA_OWNERDRAW)
  117.       #define FOLDER_DEFDETAILS (CV_DETAIL | CA_OWNERPAINTBACKGROUND |  \
  118.                        CV_MINI | CA_DETAILSVIEWTITLES | CA_MIXEDTARGETEMPH)
  119.       #define FOLDER_DEFSORT NULL
  120.  
  121.       /* wpSearchFolder structures */
  122.        typedef struct _SEARCH_INFO {
  123.           M_WPObject *ClassToBeFound;
  124.           BOOL   fSkipExtendedSearchCriteria;
  125.           PVOID  pvoidExtendedCriteria;
  126.        } SEARCH_INFO;
  127.        typedef SEARCH_INFO *PSEARCH_INFO;
  128. endpassthru;
  129. methods:
  130.  
  131.  
  132.     BOOL    wpSetFldrFlags(ULONG ulFlags);
  133.  
  134.     ULONG    wpQueryFldrFlags();
  135.  
  136.     BOOL    wpSetFldrFont(PSZ pszFont,
  137.         ULONG ulView);
  138.  
  139.     PSZ    wpQueryFldrFont(ULONG ulView);
  140.  
  141.     BOOL    wpSetFldrAttr(ULONG Attr,
  142.         ULONG ulView);
  143.  
  144.     ULONG    wpQueryFldrAttr(ULONG ulView);
  145.  
  146.     BOOL    wpSetNextIconPos(PPOINTL pptl);
  147.  
  148.     PPOINTL    wpQueryNextIconPos();
  149.  
  150.     BOOL    wpPopulate(ULONG ulReserved,
  151.         PSZ pszPath,
  152.         BOOL fFoldersOnly);
  153.  
  154.     WPObject *   wpQueryContent(WPObject *Object,
  155.         ULONG ulOption);
  156.  
  157.     ULONG    wpAddFolderView1Page(HWND hwndNotebook);
  158.  
  159.     ULONG    wpAddFolderView2Page(HWND hwndNotebook);
  160.  
  161.     ULONG    wpAddFolderView3Page(HWND hwndNotebook);
  162.  
  163.     ULONG    wpAddFolderIncludePage(HWND hwndNotebook);
  164.  
  165.     ULONG    wpAddFolderSortPage(HWND hwndNotebook);
  166.  
  167.     ULONG    wpAddFolderBackgroundPage(HWND hwndNotebook);
  168.  
  169.     BOOL    wpInitIconPosData();
  170.  
  171.     void    wpFreeIconPosData();
  172.  
  173.     BOOL    wpStoreIconPosData(PICONPOS pIconPos,
  174.         ULONG cbSize);
  175.  
  176.     BOOL    wpQueryIconPosition(PSZ pszIdentity,
  177.         PPOINTL pptl,
  178.         PULONG pIndex);
  179.  
  180.     BOOL    wpSetFldrSort(PVOID pSortRecord,
  181.         ULONG ulView,
  182.         ULONG ulType);
  183.  
  184.     PVOID    wpQueryFldrSort(ULONG ulView,
  185.         ULONG ulType);
  186.  
  187.     BOOL    wpRestoreFldrRunObjs();
  188.  
  189.     BOOL    wpStoreFldrRunObjs(ULONG ulType);
  190.  
  191.     BOOL    wpHideFldrRunObjs(BOOL fHide);
  192.  
  193.     ULONG    wpDeleteContents(ULONG fConfirmations);
  194.  
  195.     BOOL    wpSetFldrDetailsClass(M_WPObject *Class);
  196.  
  197.     M_WPObject *   wpQueryFldrDetailsClass();
  198.  
  199.     BOOL    wpSearchFolder(PSZ pszName,
  200.         ULONG ulSearchType,
  201.         ULONG ulLen,
  202.         PSEARCH_INFO pInfo,
  203.         WPFolder *ResultFolder);
  204.  
  205.     BOOL    wpContainsFolders(BOOL *pfSubFolders);
  206.  
  207.     override wpInitData;
  208.  
  209.     -- From WPObject
  210.  
  211.     override wpUnInitData;
  212.  
  213.     -- From WPObject
  214.  
  215.     override wpFree;
  216.  
  217.     -- From WPObject
  218.  
  219.     override wpDelete;
  220.  
  221.     -- From WPObject
  222.  
  223.     override wpConfirmDelete;
  224.  
  225.     -- From WPObject
  226.  
  227.     override wpSaveState;
  228.  
  229.     -- From WPObject
  230.  
  231.     override wpRestoreState;
  232.  
  233.     -- From WPObject
  234.  
  235.     override wpMenuItemSelected;
  236.  
  237.     -- From WPObject
  238.  
  239.     override wpModifyPopupMenu;
  240.  
  241.     -- From WPObject
  242.  
  243.     override wpAddSettingsPages;
  244.  
  245.     -- From WPObject
  246.  
  247.     override wpOpen;
  248.  
  249.     -- From WPObject
  250.  
  251.     override wpSetup;
  252.  
  253.     -- From WPObject
  254.  
  255.     override wpMoveObject;
  256.  
  257.     -- From WPObject
  258.  
  259.     override wpDrop;
  260.  
  261.     -- From WPObject
  262.  
  263.     override wpDragOver;
  264.  
  265.     -- From WPObject
  266.  
  267.     override wpMenuItemHelpSelected;
  268.  
  269.     -- From WPObject
  270.  
  271.     override wpAddFile3Page;
  272.  
  273.     -- From WPFileSystem
  274.  
  275.     override wpAddFile2Page;
  276.  
  277.     -- From WPFileSystem
  278.  
  279.     override wpFormatDragItem;
  280.  
  281.     -- From WPObject
  282.  
  283.     override wpRender;
  284.  
  285.     -- From WPObject
  286.  
  287.     override wpRefresh;
  288.  
  289.     -- From WPFileSystem
  290.  
  291.     override wpQueryDefaultView;
  292.  
  293.     -- From WPObject
  294.  
  295.     WPFolder *   wpclsQueryOpenFolders(WPFolder *Folder,
  296.         ULONG ulOption,
  297.         BOOL fLock), class;
  298.  
  299.     override wpclsInitData, class;
  300.  
  301.     -- From WPObject
  302.  
  303.     WPObject *   wpQueryOpenFolders(ULONG ulOption);
  304.  
  305.     override wpQueryDefaultHelp;
  306.  
  307.     -- From WPObject
  308.  
  309.     override wpclsQueryDefaultView, class;
  310.  
  311.     -- From WPObject
  312.  
  313.     override wpclsQueryTitle, class;
  314.  
  315.     -- From WPObject
  316.  
  317.     override wpclsQueryIconData, class;
  318.  
  319.     -- From WPObject
  320.  
  321.     override wpclsQueryStyle, class;
  322.  
  323.     -- From WPObject
  324.  
  325.     override wpclsQueryDefaultHelp, class;
  326.  
  327.     -- From WPObject
  328.  
  329.