home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ibmodf.zip / CNTNRPRT.ZIP / CNTNRPRT.HH < prev    next >
Text File  |  1995-04-13  |  17KB  |  377 lines

  1. #ifndef _DTS_HH_INCLUDED_CNTNRPRT
  2. #define _DTS_HH_INCLUDED_CNTNRPRT
  3. /* Start Interface ContainerPart */
  4.  
  5. // This file was generated by the IBM "DirectToSOM" emitter for C++ (V1.71)
  6. // Generated at 04/13/95 04:48:40 EDT
  7.  
  8. #include <som.hh>
  9.  
  10.      #pragma SOMAsDefault(on)
  11. class SOMClass;
  12.      #pragma SOMAsDefault(pop)
  13.      #pragma SOMAsDefault(on)
  14. class SOMObject;
  15.      #pragma SOMAsDefault(pop)
  16.      #pragma SOMAsDefault(on)
  17. class ODObject;
  18.      #pragma SOMAsDefault(pop)
  19.      #pragma SOMAsDefault(on)
  20. class ODExtension;
  21.      #pragma SOMAsDefault(pop)
  22.      #pragma SOMAsDefault(on)
  23. class ODRefCntObject;
  24.      #pragma SOMAsDefault(pop)
  25.      #pragma SOMAsDefault(on)
  26. class ODPersistentObject;
  27.      #pragma SOMAsDefault(pop)
  28.      #pragma SOMAsDefault(on)
  29. class ODStorageUnit;
  30.      #pragma SOMAsDefault(pop)
  31.      #pragma SOMAsDefault(on)
  32. class ODPart;
  33.      #pragma SOMAsDefault(pop)
  34.      #pragma SOMAsDefault(on)
  35. class ODCanvas;
  36.      #pragma SOMAsDefault(pop)
  37.      #pragma SOMAsDefault(on)
  38. class ODFacet;
  39.      #pragma SOMAsDefault(pop)
  40.      #pragma SOMAsDefault(on)
  41. class ODFrame;
  42.      #pragma SOMAsDefault(pop)
  43.      #pragma SOMAsDefault(on)
  44. class ODLink;
  45.      #pragma SOMAsDefault(pop)
  46.      #pragma SOMAsDefault(on)
  47. class ODLinkSource;
  48.      #pragma SOMAsDefault(pop)
  49.      #pragma SOMAsDefault(on)
  50. class ODMenuBar;
  51.      #pragma SOMAsDefault(pop)
  52.      #pragma SOMAsDefault(on)
  53. class ODShape;
  54.      #pragma SOMAsDefault(pop)
  55.      #pragma SOMAsDefault(on)
  56. class ODStorageUnitView;
  57.      #pragma SOMAsDefault(pop)
  58.      #pragma SOMAsDefault(on)
  59. class ODTransform;
  60.      #pragma SOMAsDefault(pop)
  61.      #pragma SOMAsDefault(on)
  62. class ODDragItemIterator;
  63.      #pragma SOMAsDefault(pop)
  64.      #pragma SOMAsDefault(on)
  65. class ODSession;
  66.      #pragma SOMAsDefault(pop)
  67.      #pragma SOMAsDefault(on)
  68. class ODTypeList;
  69.      #pragma SOMAsDefault(pop)
  70.      #pragma SOMAsDefault(on)
  71. class ODEmbeddedFramesIterator;
  72.      #pragma SOMAsDefault(pop)
  73.      #pragma SOMAsDefault(on)
  74. class ODWindow;
  75.      #pragma SOMAsDefault(pop)
  76.      #pragma SOMAsDefault(on)
  77. class ODFocusSet;
  78.      #pragma SOMAsDefault(pop)
  79.      #pragma SOMAsDefault(on)
  80. class ODSemanticInterface;
  81.      #pragma SOMAsDefault(pop)
  82.      #pragma SOMAsDefault(on)
  83. class ODSelectedContainerPartExtension;
  84.      #pragma SOMAsDefault(pop)
  85.      #pragma SOMAsDefault(on)
  86. class ODNotebook;
  87.      #pragma SOMAsDefault(pop)
  88.      #pragma SOMAsDefault(on)
  89. class ODxOrderedCollection;
  90.      #pragma SOMAsDefault(pop)
  91. #include <Part.hh>
  92. #include <somcls.hh>
  93. // mcs: one line
  94. //#include "Print.h"
  95. #pragma SOMNonDTS(on)
  96.  
  97. #pragma SOMAsDefault(on)
  98. class ContainerPart : public ODPart {
  99.  
  100.     #pragma SOMClassName(*, "ContainerPart")
  101.     #pragma SOMNoMangling(*)
  102.     #pragma SOMNoDataDirect(*)
  103.     #pragma SOMNonDTS(*)
  104.  
  105.      #pragma SOMClassVersion (ContainerPart, 1, 0)
  106.      #pragma SOMCallstyle (idl)
  107.      #pragma SOMAsDefault(off)
  108.      #pragma SOMAsDefault(pop)
  109.   public :
  110.      virtual ODSemanticInterface* GetSemanticInterface();
  111.      
  112.      // (CED - 110594)       void UpdateProxyRegion(in Proxy* proxy);
  113.      // (CED - 110594)       void CreateProxySelectionBorder(in Proxy* p);
  114.      virtual Proxy* ProxyForFrame(ODFrame* frame);
  115.      
  116.      // (CED - 110594)
  117.      virtual void CreateProxySelectionBorder(ODFacet* facet, 
  118.                                              Proxy* p);
  119.      virtual void InvalidateSelection(ODFrame* frame);
  120.      virtual void ClipEmbeddedFrames(ODFrame* frame);
  121.      
  122.      //@jlc whatisit? void InstallObjectAccessors();
  123.      virtual void CommonInitContainerPart();
  124.      virtual ODxOrderedCollection* GetEmbeddedFrames();
  125.      virtual Proxy* ProxyForFrameID(ODID frameID);
  126.      virtual void HighlightSelection(ODFacet* facet);
  127.      virtual void HighlightProxyBorder(Proxy* p, ODFacet* facet);
  128.      virtual void HighlightContentObject(Proxy* p, ODFacet* facet);
  129.      virtual void ClipEmbeddedFacets(ODFacet* facet);
  130.      virtual void FillSelectedMenu(ODFrame* frame, ODMenuBar* menubar);
  131.      virtual void AdjustPopupMenu(ODFrame* frame, ODMenuBar* menubar, 
  132.                                   ODMenuID menuID);
  133.      virtual void AdjustSPEMenu(ODFrame* frame, ODMenuBar* menubar, 
  134.                                 ODMenuID menuID);
  135.      virtual void EmptySelection();
  136.      virtual ODMenuBar* GetSPEMenuOfSelection();
  137.      virtual void RefreshRemappedSPEMenuOfSelection();
  138.      virtual ODBoolean HandleMouseDown(ODFacet* facet, ODPoint* where, 
  139.                                        ODEventData* event);
  140.      virtual void MoveResize(ODFacet* facet, Proxy* selection, 
  141.                              ODSLong fs);
  142.      virtual ODBoolean HandleMouseDownDrag(ODFacet* facet, Proxy* selection, 
  143.                                            ODEventData* event);
  144.      virtual ODBoolean HandleMouseDownEdgeResize(ODFacet* facet, 
  145.                                                  Proxy* selection, 
  146.                                                  POINTL* mouse);
  147.      virtual ODBoolean HandleMouseDownCornerResize(ODFacet* facet, 
  148.                                                    Proxy* selection, 
  149.                                                    POINTL* mouse);
  150.      virtual ODBoolean HandleMouseDownInEmbeddedFrame(ODFacet* container, 
  151.                                                       ODFacet* facet, 
  152.                                                       ODPoint* where, 
  153.                                                       ODEventData* event);
  154.      virtual ODBoolean HandleKeyDown(ODFrame* focusFrame, ODEventData* event);
  155.      virtual ODBoolean HandleMenuEvent(ODFrame* focusFrame, ODEventData* event);
  156.      virtual ODBoolean HandleMouseMove(ODFacet* facet, ODFrame* frame, 
  157.                                        ODPoint* where, ODEventData* event);
  158.      virtual ODBoolean HandleMouseUp(ODFacet* facet, ODFrame* frame, 
  159.                                      ODPoint* where, ODEventData* event);
  160.      virtual void UpdateTrackRect(POINTL* ptlMouse, ODPlatformWindow hwnd);
  161.      virtual void MouseFocusLost(ODFrame* ownerFrame);
  162.      virtual ODBoolean HandlePrinting(ODFrame* frame);
  163.      virtual ODFacet* BeginPrinting(ODFrame* rootFrame, PRNINFO* pPI);
  164.      virtual void PrintPage(ODFacet* prFacet, ODUShort pagenum, 
  165.                             PRNINFO* pPI);
  166.      virtual long PrintPages(ODFrame* frame, PRNINFO* pPI);
  167.      virtual void EndPrinting(ODFacet* prFacet);
  168.      virtual ODBoolean DoCut(ODFrame* frame);
  169.      virtual ODBoolean DoCopy(ODFrame* frame);
  170.      virtual ODBoolean DoPaste(ODFrame* frame);
  171.      virtual ODBoolean DoPasteLink(ODFrame* frame);
  172.      virtual ODBoolean DoClear(ODFrame* frame);
  173.      virtual ODBoolean DoSelectAll(ODFrame* frame);
  174.      virtual void ActivateFrame(ODFrame* frame);
  175.      virtual void DeActivateFrame(ODFrame* frame);
  176.      virtual void ActivatingWindow(ODFrame* frame);
  177.      virtual void DeActivatingWindow(ODFrame* frame);
  178.      virtual void InstallMenus(ODFrame* aFrame);
  179.      virtual void RemoveMenus(ODFrame* aFrame);
  180.      virtual void UserSetBGColor(ODFrame* frame, RGBColor whichColor);
  181.      virtual void SetBGColor1(ODFrame* aFrame, ODUShort whichColor);
  182.      virtual void SetBGColor2(ODFrame* aFrame, RGBColor whichColor);
  183.      virtual void Embed(short item, ODFrame* frame, ODPart** newPart);
  184.      virtual void SetGrafPortOrigin(ODFacet* facet);
  185.      
  186.      // (CED - 110594)
  187.      virtual void InvalEmbedFrameAfterResize(ODFacet* facet, 
  188.                                              Proxy* selection, 
  189.                                              ODShape* newShape, 
  190.                                              ODTransform* newTransform);
  191.      virtual RECTL* GetSelectionRectLocal(Proxy* selection);
  192.      virtual ODFrame* MakeEmbeddedFrame(ODFrame* containingFrame, 
  193.                                         ODShape* frameShape, 
  194.                                         ODTransform* externalTransform, 
  195.                                         ODPart* embedPart, ODBoolean isOverlaid);
  196.      virtual ODWindow* CreateWindow(ODFrame* sourceFrame);
  197.      virtual ODBoolean MoveToFront(ODFrame* frame);
  198.      virtual ODBoolean MoveToBack(ODFrame* frame);
  199.      virtual ODBoolean MoveForward(ODFrame* frame);
  200.      
  201.      // -utilities
  202.      virtual ODBoolean MoveBackward(ODFrame* frame);
  203.      virtual void ClearAccelTable(ODFrame* oldOwner);
  204.      
  205.      // -demo
  206.      virtual void SetAccelTable(ODFrame* newOwner);
  207.      virtual long GetDemoState();
  208.      ContainerPart();  
  209.      virtual ~ContainerPart();  
  210.      virtual void FulfillPromise(ODStorageUnitView* promiseSUView);
  211.      virtual void DropCompleted(ODPart* destPart, ODDropResult dropResult);
  212.      virtual MRESULT DragEnter(ODDragItemIterator* dragInfo, 
  213.                                ODFacet* facet, ODPoint* where);
  214.      virtual MRESULT DragWithin(ODDragItemIterator* dragInfo, 
  215.                                 ODFacet* facet, ODPoint* where);
  216.      virtual void DragLeave(ODFacet* facet, ODPoint* where);
  217.      virtual ODDropResult Drop(ODDragItemIterator* dropInfo, 
  218.                                ODFacet* facet, ODPoint* where);
  219.      virtual ODExtension* GetExtension(ODType extensionName);
  220.      virtual void ReleaseExtension(ODExtension* extension);
  221.      virtual boolean HasExtension(ODType extensionName);
  222.      virtual void ContainingPartPropertiesChanged(ODFrame* frame, 
  223.                                                   ODStorageUnit* propertyUnit);
  224.      virtual ODStorageUnit* GetContainingPartProperties(ODFrame* frame);
  225.      virtual ODMenuBar* CreateRootMenuBar(ODFrame* frame);
  226.      virtual void RevealFrame(ODFrame* embeddedFrame, ODShape* revealShape);
  227.      virtual void EmbeddedFrameSpec(ODFrame* embeddedFrame, ODObjectSpec spec);
  228.      virtual ODEmbeddedFramesIterator* CreateEmbeddedFramesIterator(ODFrame* frame);
  229.      virtual void AddDisplayFrame(ODFrame* frame);
  230.      virtual void AttachSourceFrame(ODFrame* frame, ODFrame* sourceFrame);
  231.      virtual void RemoveDisplayFrame(ODFrame* frame);
  232.      virtual void CloseDisplayFrame(ODFrame* frame);
  233.      virtual void FrameShapeChanged(ODFrame* frame);
  234.      virtual void ViewTypeChanged(ODFrame* frame);
  235.      virtual void PresentationChanged(ODFrame* frame);
  236.      virtual void SequenceChanged(ODFrame* frame);
  237.      virtual void WritePartInfo(ODPtr partInfo, ODStorageUnitView* storageUnitView);
  238.      virtual ODPtr ReadPartInfo(ODFrame* frame, ODStorageUnitView* storageUnitView);
  239.      virtual ODID Open(ODFrame* frame);
  240.      virtual ODFrame* RequestEmbeddedFrame(ODFrame* containingFrame, 
  241.                                            ODFrame* baseFrame, 
  242.                                            ODShape* frameShape, 
  243.                                            ODPart* embedPart, 
  244.                                            ODTypeToken viewType, 
  245.                                            ODTypeToken presentation, 
  246.                                            ODBoolean isOverlaid);
  247.      virtual void RemoveEmbeddedFrame(ODFrame* embeddedFrame);
  248.      virtual ODShape* RequestFrameShape(ODFrame* embeddedFrame, 
  249.                                         ODShape* frameShape);
  250.      virtual void UsedShapeChanged(ODFrame* embeddedFrame);
  251.      virtual ODShape* AdjustBorderShape(ODFrame* embeddedFrame, 
  252.                                         ODShape* shape);
  253.      virtual void FacetAdded(ODFacet* facet);
  254.      virtual void FacetRemoved(ODFacet* facet);
  255.      virtual void CanvasChanged(ODFacet* facet);
  256.      virtual void GeometryChanged(ODFacet* facet);
  257.      virtual void Draw(ODFacet* facet, ODShape* invalidShape);
  258.      virtual void CanvasUpdated(ODCanvas* canvas);
  259.      virtual void HighlightChanged(ODFacet* facet);
  260.      virtual ODULong GetPrintResolution(ODFrame* frame);
  261.      virtual ODLink* CreateLink(ODPtr data, ODULong size);
  262.      virtual void LinkUpdated(ODLink* updatedLink, ODChangeID id);
  263.      virtual void RevealLink(ODLinkSource* linkSource);
  264.      virtual void EmbeddedFrameChanged(ODFrame* frame, ODChangeID change);
  265.      virtual void LinkStatusChanged(ODFrame* frame);
  266.      virtual ODBoolean BeginRelinquishFocus(ODTypeToken focus, 
  267.                                             ODFrame* ownerFrame, 
  268.                                             ODFrame* proposedFrame);
  269.      virtual void CommitRelinquishFocus(ODTypeToken focus, ODFrame* ownerFrame, 
  270.                                         ODFrame* proposedFrame);
  271.      virtual void AbortRelinquishFocus(ODTypeToken focus, ODFrame* ownerFrame, 
  272.                                        ODFrame* proposedFrame);
  273.      virtual void FocusAcquired(ODTypeToken focus, ODFrame* ownerFrame);
  274.      virtual void FocusLost(ODTypeToken focus, ODFrame* ownerFrame);
  275.      virtual void CloneInto(ODDraftKey key, ODStorageUnit* storageUnit, 
  276.                             ODStorageUnit* initiatingFrame);
  277.      virtual void ExternalizeKinds(ODTypeList* kindset);
  278.      virtual void Externalize();
  279.      virtual void ChangeKind(ODType kind);
  280.      virtual ODBoolean HandleEvent(ODEventData* event, ODFrame* frame, 
  281.                                    ODFacet* facet);
  282.      virtual ODBoolean HandleEventInEmbedded(ODEventData* event, 
  283.                                              ODFrame* frame, 
  284.                                              ODFacet* facet, 
  285.                                              ODFrame* embeddedFrame, 
  286.                                              ODFacet* embeddedFacet);
  287.      virtual void MouseEnter(ODFacet* facet, ODPoint* where);
  288.      virtual void MouseWithin(ODFacet* facet, ODPoint* where);
  289.      virtual void MouseLeave(ODFacet* facet);
  290.      virtual void AdjustMenus(ODFrame* frame);
  291.      virtual void UndoAction(ODActionData actionState);
  292.      virtual void RedoAction(ODActionData actionState);
  293.      virtual void DisposeActionState(ODActionData actionState, 
  294.                                      ODDoneState doneState);
  295.      virtual void WriteActionState(ODPtr actionState, ODStorageUnitView* storageUnitView);
  296.      virtual ODPtr ReadActionState(ODStorageUnitView* storageUnitView);
  297.      virtual void InitPart(ODStorageUnit* storageUnit);
  298.      virtual void InitPartFromStorage(ODStorageUnit* storageUnit);
  299.      virtual void Release();
  300.      #pragma SOMReleaseOrder ( \
  301.                   "FillSelectedMenu", \
  302.                   "GetSemanticInterface", \
  303.                   *, \
  304.                   *, \
  305.                   "ProxyForFrame", \
  306.                   "CreateProxySelectionBorder", \
  307.                   "InvalidateSelection", \
  308.                   "ClipEmbeddedFrames", \
  309.                   "CommonInitContainerPart", \
  310.                   *, \
  311.                   "GetEmbeddedFrames", \
  312.                   "ProxyForFrameID", \
  313.                   "HighlightSelection", \
  314.                   "HighlightProxyBorder", \
  315.                   "HighlightContentObject", \
  316.                   "ClipEmbeddedFacets", \
  317.                   "EmptySelection", \
  318.                   "HandleMouseDown", \
  319.                   "MoveResize", \
  320.                   "HandleMouseDownDrag", \
  321.                   "HandleMouseDownEdgeResize", \
  322.                   "HandleMouseDownCornerResize", \
  323.                   "HandleMouseDownInEmbeddedFrame", \
  324.                   "HandleKeyDown", \
  325.                   "HandleMenuEvent", \
  326.                   *, \
  327.                   "HandlePrinting", \
  328.                   "HandleMouseMove", \
  329.                   "HandleMouseUp", \
  330.                   "UpdateTrackRect", \
  331.                   "MouseFocusLost", \
  332.                   "GetDemoState", \
  333.                   *, \
  334.                   "BeginPrinting", \
  335.                   "PrintPage", \
  336.                   "EndPrinting", \
  337.                   *, \
  338.                   "DoCut", \
  339.                   "DoCopy", \
  340.                   "DoPaste", \
  341.                   "DoPasteLink", \
  342.                   "DoClear", \
  343.                   "DoSelectAll", \
  344.                   "ActivateFrame", \
  345.                   "DeActivateFrame", \
  346.                   "ActivatingWindow", \
  347.                   "DeActivatingWindow", \
  348.                   "InstallMenus", \
  349.                   "RemoveMenus", \
  350.                   "SetBGColor1", \
  351.                   "UserSetBGColor", \
  352.                   "SetBGColor2", \
  353.                   "Embed", \
  354.                   "SetGrafPortOrigin", \
  355.                   "InvalEmbedFrameAfterResize", \
  356.                   "GetSelectionRectLocal", \
  357.                   *, \
  358.                   "MakeEmbeddedFrame", \
  359.                   "CreateWindow", \
  360.                   "MoveToFront", \
  361.                   "MoveToBack", \
  362.                   "MoveForward", \
  363.                   "MoveBackward", \
  364.                   "ClearAccelTable", \
  365.                   "SetAccelTable", \
  366.                   "AdjustPopupMenu", \
  367.                   "GetSPEMenuOfSelection", \
  368.                   "RefreshRemappedSPEMenuOfSelection", \
  369.                   "AdjustSPEMenu", \
  370.                   "PrintPages")
  371. };
  372. #pragma SOMAsDefault(pop)
  373.  
  374.      #pragma SOMNonDTS(pop)
  375. /* End ContainerPart */
  376. #endif /* _DTS_HH_INCLUDED_CNTNRPRT */
  377.