home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cset21v5.zip / TOOLKT21 / SC / WPOBJECT.SC < prev    next >
Text File  |  1993-05-03  |  12KB  |  435 lines

  1.  
  2. # This file was generated by the SOM Compiler.
  3. # FileName: wpobject.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: WPOBJECT
  12.  * 
  13.  *  OS/2 Presentation Manager Workplace class definitions
  14.  * 
  15.  *  Copyright (c) International Business Machines Corporation 1991, 1992
  16.  * 
  17.  */
  18.  
  19. #include <somobj.sc>
  20.  
  21. class: WPObject, 
  22.     external stem = wpobj, local, external prefix = obj_, 
  23.     classprefix = objM_, major version = 1, minor version = 2, 
  24.     file stem = wpobject;
  25.  
  26.  
  27. parent class: SOMObject;
  28.  
  29.  
  30. release order:
  31.     wpSetTitle, wpQueryTitle, wpSetStyle, 
  32.     wpQueryStyle, wpSetIcon, wpQueryIcon, 
  33.     wpSetContainer, wpQueryContainer, wpSetNextObj, 
  34.     wpQueryNextObj, wpSetDefaultView, wpQueryDefaultView, 
  35.     wpMakeDormant, wpSaveState, wpBeginSave, 
  36.     wpEndSave, wpSaveLong, wpSaveString, 
  37.     wpSaveData, wpAppendSaveData, wpRestoreState, 
  38.     wpBeginRestore, wpEndRestore, wpRestoreLong, 
  39.     wpRestoreString, wpRestoreData, wpExtractRestoreData, 
  40.     wpAllocMem, wpFreeMem, wpAddToObjUseList, 
  41.     wpDeleteFromObjUseList, wpFindUseItem, wpSwitchTo, 
  42.     withdrawn1, wpFilterPopupMenu, wpModifyPopupMenu, 
  43.     wpMenuItemSelected, wpFormatDragItem, wpDrop, 
  44.     wpDragOver, wpRender, wpEndConversation, 
  45.     withdrawn10, wpMakeObject, wpDestroyObject, 
  46.     wpFree, wpCopiedFromTemplate, wpAddSettingsPages, 
  47.     wpAddObjectGeneralPage, wpDisplayHelp, wpMenuItemHelpSelected, 
  48.     wpInsertSettingsPage, wpInsertPopupMenuItems, withdrawn5, 
  49.     withdrawn6, withdrawn4, withdrawn3, 
  50.     wpCnrInsertObject, wpCnrRemoveObject, wpInitData, 
  51.     wpUnInitData, wpSetup, wpScanSetupString, 
  52.     wpSaveImmediate, wpOpen, wpClose, 
  53.     wpHide, wpRestore, wpSetIconData, 
  54.     wpQueryIconData, wpQueryIconSaved, wpDelete, 
  55.     wpConfirmDelete, withdrawn2, withdrawn11, 
  56.     withdrawn7, wpRegisterView, wpIdentify, 
  57.     wpclsInitData, wpclsUnInitData, withdrawn8, 
  58.     wpclsMakeAwake, wpclsIncUsage, wpclsDecUsage, 
  59.     wpclsQueryTitle, wpclsQueryIcon, wpSetDefaultHelp, 
  60.     wpQueryDefaultHelp, wpclsQueryDefaultHelp, wpclsQueryStyle, 
  61.     wpclsQueryDetailsInfo, wpclsQueryDefaultView, wpclsQueryDetails, 
  62.     wpclsQuerySearchInfo, wpDoesObjectMatch, wpclsQueryExtendedCriteria, 
  63.     wpclsCreateDefaultTemplates, withdrawn9, wpCnrRefreshDetails, 
  64.     wpSetError, wpQueryError, wpDraggedOverObject, 
  65.     wpDroppedOnObject, wpclsFindObjectFirst, wpclsFindObjectNext, 
  66.     wpclsFindObjectEnd, wpclsFindObjects, wpclsSetError, 
  67.     wpclsQueryError, wpclsQuerySettingsPageSize, wpclsSetSettingsPageSize, 
  68.     wpclsQueryIconData, wpclsSetIcon, wpclsSetIconData, 
  69.     wpSetDefaultIconPos, wpQueryDefaultIconPos, wpSetState, 
  70.     wpQueryState, wpSetObjectID, wpQueryObjectID, 
  71.     wpIsDeleteable, wpQueryHandle, wpclsQueryObject, 
  72.     wpclsObjectFromHandle, wpSaveDeferred, wpclsSaveDirtyObjects, 
  73.     wpclsLockDirtyList, wpclsUnlockDirtyList, wpclsLockRestartList, 
  74.     wpclsUnlockRestartList, wpAddObjectWindowPage, wpQueryConcurrentView, 
  75.     wpSetConcurrentView, wpQueryMinWindow, wpSetMinWindow, 
  76.     wpViewObject, wpQueryButtonAppearance, wpSetButtonAppearance, 
  77.     wpQueryConfirmations, wpCnrSetEmphasis, wpQueryCoreRecord, 
  78.     wpclsQueryButtonAppearance, wpFindViewItem, wpCreateFromTemplate, 
  79.     wpQueryTrueStyle, wpAssertObjectMutexSem, wpReleaseObjectMutexSem, 
  80.     wpRequestObjectMutexSem, wpCreateAnother, wpCreateShadowObject, 
  81.     wpCopyObject, wpMoveObject, wpLockObject, 
  82.     wpUnlockObject, wpIsLocked, wpclsNew, 
  83.     wpclsQueryFolder, wpRenderComplete, wpQueryDetailsData, 
  84.     wpPrintObject, wpQueryTaskRec, wpSetTaskRec, 
  85.     wpSnoozeNotify, wpclsLockSleepyList, wpclsUnlockSleepyList, 
  86.     wpModifyStyle, wpclsRemoveObjects, wpSetInsertState, 
  87.     wpFindTaskRec, wpAppendObject, wpReplaceObject, 
  88.     wpQueryNameClashOptions, wpConfirmObjectTitle, pobjNext, 
  89.     wpQueryContainerFlagPtr, wpAddWindowPosKey, wpDeleteWindowPosKeys, 
  90.     wpclsInsertMultipleObjects, wpObjectInsertPreparation, wpCnrDeleteUseItem;
  91.  
  92. methods:
  93.  
  94.  
  95.     ULONG    wpAddObjectGeneralPage(HWND hwndNotebook);
  96.  
  97.     ULONG    wpAddObjectWindowPage(HWND hwndNotebook);
  98.  
  99.     BOOL    wpAddSettingsPages(HWND hwndNotebook);
  100.  
  101.     BOOL    wpAddToObjUseList(PUSEITEM pUseItem);
  102.  
  103.     PBYTE    wpAllocMem(ULONG cbBytes,
  104.         PULONG prc);
  105.  
  106.     BOOL32    wpAppendObject(WPObject *targetObject,
  107.         BOOL32 fMove);
  108.  
  109.     BOOL    wpAssertObjectMutexSem();
  110.  
  111.     BOOL    wpClose();
  112.  
  113.     PMINIRECORDCORE    wpCnrInsertObject(HWND hwndCnr,
  114.         PPOINTL pptlIcon,
  115.         PMINIRECORDCORE preccParent,
  116.         PRECORDINSERT pRecInsert);
  117.  
  118.     BOOL    wpCnrRemoveObject(HWND hwndCnr);
  119.  
  120.     BOOL    wpCnrSetEmphasis(ULONG ulEmphasisAttr,
  121.         BOOL fTurnOn);
  122.  
  123.     ULONG    wpConfirmDelete(ULONG fConfirmations);
  124.  
  125.     ULONG    wpConfirmObjectTitle(WPFolder *Folder,
  126.         WPObject **ppDuplicate,
  127.         PSZ pszTitle,
  128.         ULONG cbTitle,
  129.         ULONG menuID);
  130.  
  131.     void    wpCopiedFromTemplate();
  132.  
  133.     WPObject *   wpCopyObject(WPFolder *Folder,
  134.         BOOL fLock);
  135.  
  136.     WPObject *   wpCreateAnother(PSZ pszTitle,
  137.         PSZ pszSetupEnv,
  138.         WPFolder *Folder);
  139.  
  140.     WPObject *   wpCreateFromTemplate(WPFolder *folder,
  141.         BOOL fLock);
  142.  
  143.     WPObject *   wpCreateShadowObject(WPFolder *Folder,
  144.         BOOL fLock);
  145.  
  146.     ULONG    wpDelete(ULONG fConfirmations);
  147.  
  148.     BOOL    wpDeleteFromObjUseList(PUSEITEM pUseItem);
  149.  
  150.     BOOL    wpDisplayHelp(ULONG HelpPanelId,
  151.         PSZ HelpLibrary);
  152.  
  153.     BOOL    wpDoesObjectMatch(PVOID pvoidExtendedCriteria);
  154.  
  155.     MRESULT    wpDraggedOverObject(WPObject *DraggedOverObject);
  156.  
  157.     MRESULT    wpDragOver(HWND hwndCnr,
  158.         PDRAGINFO pdrgInfo);
  159.  
  160.     MRESULT    wpDrop(HWND hwndCnr,
  161.         PDRAGINFO pdrgInfo,
  162.         PDRAGITEM pdrgItem);
  163.  
  164.     BOOL    wpDroppedOnObject(WPObject *DroppedOnObject);
  165.  
  166.     MRESULT    wpEndConversation(ULONG ulItemID,
  167.         ULONG flResult);
  168.  
  169.     ULONG    wpFilterPopupMenu(ULONG ulFlags,
  170.         HWND hwndCnr,
  171.         BOOL fMultiSelect);
  172.  
  173.     PUSEITEM    wpFindUseItem(ULONG type,
  174.         PUSEITEM pCurrentItem);
  175.  
  176.     BOOL    wpFormatDragItem(PDRAGITEM pdrgItem);
  177.  
  178.     BOOL    wpFree();
  179.  
  180.     BOOL    wpFreeMem(PBYTE pByte);
  181.  
  182.     BOOL    wpHide();
  183.  
  184.     void    wpInitData();
  185.  
  186.     BOOL    wpInsertPopupMenuItems(HWND hwndMenu,
  187.         ULONG iPosition,
  188.         HMODULE hmod,
  189.         ULONG MenuID,
  190.         ULONG SubMenuID);
  191.  
  192.     ULONG    wpInsertSettingsPage(HWND hwndNotebook,
  193.         PPAGEINFO ppageinfo);
  194.  
  195.     BOOL    wpMenuItemHelpSelected(ULONG MenuId);
  196.  
  197.     BOOL    wpMenuItemSelected(HWND hwndFrame,
  198.         ULONG ulMenuId);
  199.  
  200.     BOOL    wpModifyPopupMenu(HWND hwndMenu,
  201.         HWND hwndCnr,
  202.         ULONG iPosition);
  203.  
  204.     BOOL    wpMoveObject(WPFolder *Folder);
  205.  
  206.     HWND    wpOpen(HWND hwndCnr,
  207.         ULONG ulView,
  208.         ULONG param);
  209.  
  210.     BOOL    wpPrintObject(PPRINTDEST pPrintDest,
  211.         ULONG ulReserved);
  212.  
  213.     ULONG    wpQueryConcurrentView();
  214.  
  215.     ULONG    wpQueryButtonAppearance();
  216.  
  217.     ULONG    wpQueryConfirmations();
  218.  
  219.     BOOL    wpQueryDefaultHelp(PULONG pHelpPanelId,
  220.         PSZ HelpLibrary);
  221.  
  222.     ULONG    wpQueryDefaultView();
  223.  
  224.     ULONG    wpQueryDetailsData(PVOID *ppDetailsData,
  225.         PULONG pcp);
  226.  
  227.     ULONG    wpQueryError();
  228.  
  229.     HPOINTER    wpQueryIcon();
  230.  
  231.     ULONG    wpQueryIconData(PICONINFO pIconInfo);
  232.  
  233.     ULONG    wpQueryMinWindow();
  234.  
  235.     ULONG    wpQueryNameClashOptions(ULONG menuID);
  236.  
  237.     ULONG    wpQueryStyle();
  238.  
  239.     BOOL32    wpSetTaskRec(PTASKREC pNew,
  240.         PTASKREC pOld);
  241.  
  242.     PTASKREC    wpFindTaskRec();
  243.  
  244.     PSZ    wpQueryTitle();
  245.  
  246.     BOOL    wpRegisterView(HWND hwndFrame,
  247.         PSZ pszViewTitle);
  248.  
  249.     ULONG    wpReleaseObjectMutexSem();
  250.  
  251.     MRESULT    wpRender(PDRAGTRANSFER pdxfer);
  252.  
  253.     MRESULT    wpRenderComplete(PDRAGTRANSFER pdxfer,
  254.         ULONG ulResult);
  255.  
  256.     BOOL32    wpReplaceObject(WPObject *targetObject,
  257.         BOOL32 fMove);
  258.  
  259.     ULONG    wpRequestObjectMutexSem(ULONG ulTimeout);
  260.  
  261.     BOOL    wpRestore();
  262.  
  263.     BOOL    wpRestoreData(PSZ pszClass,
  264.         ULONG ulKey,
  265.         PBYTE pValue,
  266.         PULONG pcbValue);
  267.  
  268.     BOOL    wpRestoreLong(PSZ pszClass,
  269.         ULONG ulKey,
  270.         PULONG pulValue);
  271.  
  272.     BOOL    wpRestoreState(ULONG ulReserved);
  273.  
  274.     BOOL    wpRestoreString(PSZ pszClass,
  275.         ULONG ulKey,
  276.         PSZ pszValue,
  277.         PULONG pcbValue);
  278.  
  279.     BOOL    wpSaveData(PSZ pszClass,
  280.         ULONG ulKey,
  281.         PBYTE pValue,
  282.         ULONG cbValue);
  283.  
  284.     BOOL    wpSaveImmediate();
  285.  
  286.     BOOL    wpSaveDeferred();
  287.  
  288.     BOOL    wpSaveLong(PSZ pszClass,
  289.         ULONG ulKey,
  290.         ULONG ulValue);
  291.  
  292.     BOOL    wpSaveState();
  293.  
  294.     BOOL    wpSaveString(PSZ pszClass,
  295.         ULONG ulKey,
  296.         PSZ pszValue);
  297.  
  298.     BOOL    wpScanSetupString(PSZ pszSetupString,
  299.         PSZ pszKey,
  300.         PSZ pszValue,
  301.         PULONG pcbValue);
  302.  
  303.     VOID    wpSetConcurrentView(ULONG ulCCView);
  304.  
  305.     VOID    wpSetButtonAppearance(ULONG ulButtonType);
  306.  
  307.     BOOL    wpSetDefaultHelp(ULONG HelpPanelId,
  308.         PSZ HelpLibrary);
  309.  
  310.     BOOL    wpSetDefaultView(ULONG ulView);
  311.  
  312.     BOOL    wpSetError(ULONG ulErrorId);
  313.  
  314.     BOOL    wpSetIcon(HPOINTER hptrNewIcon);
  315.  
  316.     BOOL    wpSetIconData(PICONINFO pIconInfo);
  317.  
  318.     VOID    wpSetMinWindow(ULONG ulMinWindow);
  319.  
  320.     BOOL    wpSetStyle(ULONG ulNewStyle);
  321.  
  322.     BOOL    wpModifyStyle(ULONG ulStyleFlags,
  323.         ULONG ulStyleMask);
  324.  
  325.     BOOL    wpSetTitle(PSZ pszNewTitle);
  326.  
  327.     BOOL    wpSetup(PSZ pszSetupString);
  328.  
  329.     BOOL    wpSwitchTo(ULONG View);
  330.  
  331.     void    wpUnInitData();
  332.  
  333.     HWND    wpViewObject(HWND hwndCnr,
  334.         ULONG ulView,
  335.         ULONG param);
  336.  
  337.     ULONG    wpQueryTrueStyle(), procedure;
  338.  
  339.     HOBJECT    wpQueryHandle();
  340.  
  341.     BOOL    wpUnlockObject();
  342.  
  343.     override somInit;
  344.  
  345.     -- From SOMObject
  346.  
  347.     BOOL    wpclsCreateDefaultTemplates(WPObject *Folder), class;
  348.  
  349.     void    wpclsInitData(), class;
  350.  
  351.     WPObject *   wpclsMakeAwake(PSZ pszTitle,
  352.         ULONG ulStyle,
  353.         HPOINTER hptrIcon,
  354.         POBJDATA pObjData,
  355.         WPFolder *Folder,
  356.         ULONG ulUser), class;
  357.  
  358.     WPObject *   wpclsNew(PSZ pszTitle,
  359.         PSZ pszSetupEnv,
  360.         WPFolder *Folder,
  361.         BOOL fLock), class;
  362.  
  363.     BOOL    wpclsQueryDefaultHelp(PULONG pHelpPanelId,
  364.         PSZ pszHelpLibrary), class;
  365.  
  366.     ULONG    wpclsQueryDefaultView(), class;
  367.  
  368.     PCLASSDETAILS    wpclsQueryDetails(), class;
  369.  
  370.     ULONG    wpclsQueryDetailsInfo(PCLASSFIELDINFO *ppClassFieldInfo,
  371.         PULONG pSize), class;
  372.  
  373.     BOOL    wpclsQueryExtendedCriteria(PSZ pszName,
  374.         ULONG ulSearchType,
  375.         PVOID pvoidExtendedCriteria), class;
  376.  
  377.     WPObject *   wpclsQueryFolder(PSZ pszLocation,
  378.         BOOL fLock), class;
  379.  
  380.     HPOINTER    wpclsQueryIcon(), class;
  381.  
  382.     VOID    wpclsQuerySearchInfo(M_WPObject **ClassExtended,
  383.         M_WPObject **ClassCreate,
  384.         PULONG pulClassCriteriaSize), class;
  385.  
  386.     ULONG    wpclsQueryStyle(), class;
  387.  
  388.     PSZ    wpclsQueryTitle(), class;
  389.  
  390.     void    wpclsUnInitData(), class;
  391.  
  392.     BOOL    wpclsFindObjectFirst(PCLASS pClassList,
  393.         PHFIND phFind,
  394.         PSZ pszTitle,
  395.         WPFolder *Folder,
  396.         BOOL fSubfolders,
  397.         PVOID pExtendedCriteria,
  398.         POBJECT pBuffer,
  399.         PULONG pCount), class;
  400.  
  401.     BOOL    wpclsFindObjectNext(HFIND hFind,
  402.         POBJECT pBuffer,
  403.         PULONG pCount), class;
  404.  
  405.     BOOL    wpclsFindObjectEnd(HFIND hFind), class;
  406.  
  407.     BOOL    wpclsSetError(ULONG ulErrorId), class;
  408.  
  409.     ULONG    wpclsQueryError(), class;
  410.  
  411.     BOOL    wpclsQuerySettingsPageSize(PSIZEL pSizl), class;
  412.  
  413.     ULONG    wpclsQueryIconData(PICONINFO pIconInfo), class;
  414.  
  415.     WPObject *   wpclsQueryObject(HOBJECT hObject), class;
  416.  
  417.     ULONG    wpclsQueryButtonAppearance(), class;
  418.  
  419.     override somUninit, class;
  420.  
  421.     -- From SOMObject
  422.  
  423.     override somInitClass, class;
  424.  
  425.     -- From SOMClass
  426.  
  427.     override somNew, class;
  428.  
  429.     -- From SOMClass
  430.  
  431.     override somRenew, class;
  432.  
  433.     -- From SOMClass
  434.  
  435.