smldoc.h
上传用户:zhongxx05
上传日期:2007-06-06
资源大小:33641k
文件大小:47k
源码类别:

Symbian

开发平台:

C/C++

  1. /* ***** BEGIN LICENSE BLOCK ***** 
  2.  * Version: RCSL 1.0/RPSL 1.0 
  3.  *  
  4.  * Portions Copyright (c) 1995-2002 RealNetworks, Inc. All Rights Reserved. 
  5.  *      
  6.  * The contents of this file, and the files included with this file, are 
  7.  * subject to the current version of the RealNetworks Public Source License 
  8.  * Version 1.0 (the "RPSL") available at 
  9.  * http://www.helixcommunity.org/content/rpsl unless you have licensed 
  10.  * the file under the RealNetworks Community Source License Version 1.0 
  11.  * (the "RCSL") available at http://www.helixcommunity.org/content/rcsl, 
  12.  * in which case the RCSL will apply. You may also obtain the license terms 
  13.  * directly from RealNetworks.  You may not use this file except in 
  14.  * compliance with the RPSL or, if you have a valid RCSL with RealNetworks 
  15.  * applicable to this file, the RCSL.  Please see the applicable RPSL or 
  16.  * RCSL for the rights, obligations and limitations governing use of the 
  17.  * contents of the file.  
  18.  *  
  19.  * This file is part of the Helix DNA Technology. RealNetworks is the 
  20.  * developer of the Original Code and owns the copyrights in the portions 
  21.  * it created. 
  22.  *  
  23.  * This file, and the files included with this file, is distributed and made 
  24.  * available on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 
  25.  * EXPRESS OR IMPLIED, AND REALNETWORKS HEREBY DISCLAIMS ALL SUCH WARRANTIES, 
  26.  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS 
  27.  * FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 
  28.  * 
  29.  * Technology Compatibility Kit Test Suite(s) Location: 
  30.  *    http://www.helixcommunity.org/content/tck 
  31.  * 
  32.  * Contributor(s): 
  33.  *  
  34.  * ***** END LICENSE BLOCK ***** */ 
  35. #ifndef SMLDOC_H
  36. #define SMLDOC_H
  37. // Forward declarations
  38. typedef _INTERFACE IHXSite               IHXSite;
  39. typedef _INTERFACE IHXValues             IHXValues;
  40. typedef _INTERFACE IHXRenderer           IHXRenderer;
  41. typedef _INTERFACE IHXGroup              IHXGroup;
  42. typedef _INTERFACE IHXBuffer             IHXBuffer;
  43. typedef _INTERFACE IHXScheduler          IHXScheduler;
  44. typedef _INTERFACE IHXSiteManager        IHXSiteManager;
  45. typedef _INTERFACE IHXStatusMessage      IHXStatusMessage;
  46. typedef _INTERFACE IHXViewPortManager    IHXViewPortManager;
  47. typedef _INTERFACE IHXErrorMessages      IHXErrorMessages;
  48. typedef _INTERFACE IHXErrorSink          IHXErrorSink;
  49. typedef _INTERFACE IHXHyperNavigate      IHXHyperNavigate;
  50. typedef _INTERFACE IHXMutex              IHXMutex;
  51. typedef _INTERFACE IHXSiteUser           IHXSiteUser;
  52. typedef _INTERFACE IHXPlayer             IHXPlayer;
  53. typedef _INTERFACE IHXPersistentRenderer IHXPersistentRenderer;
  54. typedef _INTERFACE IHXLayoutStream       IHXLayoutStream;
  55. typedef void*                             LISTPOSITION;
  56. typedef void*                             POSITION;
  57. class  CSmilRenderer;
  58. class  CSmilAddGroup;
  59. class  CSmilRegion;
  60. class  CSmilRegPoint;
  61. #if defined(HELIX_FEATURE_SMIL2_MULTIWINDOWLAYOUT)
  62. class  CSmilViewport;
  63. #endif /* #if defined(HELIX_FEATURE_SMIL2_MULTIWINDOWLAYOUT) */
  64. class  CSmilRootLayout;
  65. class  CSmilSource;
  66. class  CSmilMeta;
  67. class  CSmilMetadata;
  68. class  CSmilEndLayout;
  69. class  CSmilRendererPreFetch;
  70. class  CSmilSourceUpdate;
  71. class  CSmilTransition;
  72. class  SMILNode;
  73. class  CSmilAnimateElement;
  74. class  CSmilElement;
  75. class  CSmilSiteUser;
  76. class  CSmilBasicRegion;
  77. #if defined(HELIX_FEATURE_SMIL2_MULTIWINDOWLAYOUT)
  78. class  CSmilBasicViewport;
  79. #endif /* #if defined(HELIX_FEATURE_SMIL2_MULTIWINDOWLAYOUT) */
  80. #if defined(HELIX_FEATURE_SMIL2_TRANSITIONS)
  81. class  CSmilTransitionInfo;
  82. #endif /* #if defined(HELIX_FEATURE_SMIL2_TRANSITIONS) */
  83. class  CAnimationSandwichLayer;
  84. class  CSmilBasicBox;
  85. class  CSmilAnimateInfo;
  86. class  CAttr;
  87. class  CSmilSiteWatcher;
  88. class  CSmilLayoutEvent;
  89. class  CHXSimpleList;
  90. class  CSmilAAnchorElement;
  91. class  CSmilParser;
  92. class  CHXMapStringToOb;
  93. class  CSmilBasicRootLayout;
  94. class  CHXMapPtrToPtr;
  95. class  CHXMapLongToObj;
  96. class  CSmilTransition;
  97. class  CSmilShowSiteEvent;
  98. class  CSmilAnimateEvent;
  99. class  CHyperlinkCallback;
  100. class  HandlePendingSchedulingCallback;
  101. class  CHXString;
  102. class  CHXStack;
  103. class  CExternalMediaMarkerInfo;
  104. #if defined(_MACINTOSH) || defined(_MAC_UNIX)
  105. class CResourceLoader;
  106. #elif defined(_UNIX) && (!(defined(_BEOS))) && (!(defined(_MAC_UNIX)))
  107. class XData;
  108. #endif
  109. struct SMILSiteInfo;
  110. struct SMILPlayToAssoc;
  111. struct SMILGroupInfo;
  112. struct SMILSourceInfo;
  113. #if defined(_UNIX) && (!(defined(_BEOS))) && (!(defined(_MAC_UNIX)))
  114. //We need to include the X headers...
  115. // XXXMEH - try to get rid of these - not
  116. // usually a good idea to have includes
  117. // inside of a header file
  118. #include <X11/Xlib.h>
  119. #include <X11/Xutil.h>
  120. #include "hxmap.h"
  121. #include "hxvsurf.h"
  122. #endif
  123. #define DEFAULT_ROOT_LAYOUT_WIDTH  320
  124. #define DEFAULT_ROOT_LAYOUT_HEIGHT 240
  125. class CSmilDocumentRenderer:  public IHXRendererAdviseSink,
  126.                               public IHXClientAdviseSink,
  127.                               public IHXGroupSink,
  128.                               public IHXPrefetchSink,
  129.                               public IHXTrackSink,
  130. #if defined(HELIX_FEATURE_SMIL2_MULTIWINDOWLAYOUT)
  131.                               public IHXViewPortSink,
  132. #if defined(XXXMEH_DO_VIEWPORT_TLC)
  133.                               public IHXViewPortSupplier,
  134. #endif
  135. #endif /* #if defined(HELIX_FEATURE_SMIL2_MULTIWINDOWLAYOUT) */
  136. #if defined(BE_SITE_SUPPLIER_20010205)
  137.                               public IHXSiteSupplier,
  138. #endif
  139.                               public IHXMediaMarkerSink,
  140.                               public IHXEventSink,
  141.                               public IHXErrorSink,
  142.                               public CSmilElementHandler,
  143.                               public CSmilEventHookResponse,
  144.                               public CSmilSiteUserResponse,
  145.                               public CSmilPassiveSiteWatcherResponse
  146. {
  147. public:
  148.     CSmilDocumentRenderer(CSmilRenderer* pParent, IUnknown* pContext);
  149.     virtual ~CSmilDocumentRenderer();
  150.     // IUnknown methods
  151.     STDMETHOD(QueryInterface)    (THIS_ REFIID riid, void** ppvObj);
  152.     STDMETHOD_(ULONG32, AddRef)  (THIS);
  153.     STDMETHOD_(ULONG32, Release) (THIS);
  154.     // IHXRendererAdviseSink methods
  155.     STDMETHOD(TrackDurationSet)         (THIS_ UINT32 ulGroupIndex, UINT32 ulTrackIndex,
  156.                                                UINT32 ulDuration,   UINT32 ulDelay,
  157.                                                BOOL   bIsLive);
  158.     STDMETHOD(RepeatedTrackDurationSet) (THIS_ const char* pID, UINT32 ulDuration,
  159.                                                BOOL bIsLive);
  160.     STDMETHOD(TrackUpdated)             (THIS_ UINT32 ulGroupIndex, UINT32 ulTrackIndex,
  161.                                                IHXValues* pValues);
  162.     STDMETHOD(RendererInitialized)      (THIS_ IHXRenderer* pRend, IUnknown* pStream,
  163.                                                IHXValues* pInfo);
  164.     STDMETHOD(RendererClosed)           (THIS_ IHXRenderer* pRend, IHXValues* pInfo);
  165.    // IHXClientAdviseSink methods               ref:  hxclsnk.h
  166.     STDMETHOD (OnPosLength)  (THIS_ UINT32 ulPosition, UINT32 ulLength);
  167.     STDMETHOD (OnPresentationOpened) (THIS);
  168.     STDMETHOD (OnPresentationClosed) (THIS);
  169.     STDMETHOD (OnStatisticsChanged)  (THIS);
  170.     STDMETHOD (OnPreSeek)    (THIS_ UINT32 ulOldTime, UINT32 ulNewTime);
  171.     STDMETHOD (OnPostSeek)   (THIS_ UINT32 ulOldTime, UINT32 ulNewTime);
  172.     STDMETHOD (OnStop)       (THIS);
  173.     STDMETHOD (OnPause)      (THIS_ UINT32 ulTime);
  174.     STDMETHOD (OnBegin)      (THIS_ UINT32 ulTime);
  175.     STDMETHOD (OnBuffering)  (THIS_ UINT32 ulFlags, UINT16 unPercentComplete);
  176.     STDMETHOD (OnContacting) (THIS_ const char* pHostName);
  177.     // IHXGroupSink methods
  178.     STDMETHOD(GroupAdded)       (THIS_ UINT16 uGroupIndex, IHXGroup* pGroup);
  179.     STDMETHOD(GroupRemoved)     (THIS_ UINT16 uGroupIndex, IHXGroup* pGroup);
  180.     STDMETHOD(AllGroupsRemoved) (THIS);
  181.     STDMETHOD(TrackAdded)       (THIS_ UINT16 uGroupIndex, UINT16 uTrackIndex, IHXValues* pTrack);
  182.     STDMETHOD(TrackRemoved)     (THIS_ UINT16 uGroupIndex, UINT16 uTrackIndex, IHXValues* pTrack);
  183.     STDMETHOD(TrackStarted)     (THIS_ UINT16 uGroupIndex, UINT16 uTrackIndex, IHXValues* pTrack);
  184.     STDMETHOD(TrackStopped)     (THIS_ UINT16 uGroupIndex, UINT16 uTrackIndex, IHXValues* pTrack);
  185.     STDMETHOD(CurrentGroupSet)  (THIS_ UINT16 uGroupIndex, IHXGroup* pGroup);
  186.     // IHXPrefetchSink methods
  187.     STDMETHOD(PrefetchTrackAdded)   (THIS_ UINT16 uGroupIndex, UINT16 uPrefetchTrackId,
  188.                                            IHXValues* pTrack);
  189.     STDMETHOD(PrefetchTrackRemoved) (THIS_ UINT16 uGroupIndex, UINT16 uPrefetchTrackId,
  190.                                            IHXValues* pTrack);
  191.     STDMETHOD(PrefetchTrackDone)    (THIS_ UINT16 uGroupIndex, UINT16 uPrefetchTrackId,
  192.                                            HX_RESULT   status);
  193.     // IHXTrackSink methods
  194.     STDMETHOD(BeginDone)             (THIS_ UINT16 uGroupIndex, UINT16 uTrackIndex);
  195.     STDMETHOD(SeekDone)              (THIS_ UINT16 uGroupIndex, UINT16 uTrackIndex,
  196.                                             UINT32 ulSeekTime);
  197.     STDMETHOD(PauseDone)             (THIS_ UINT16 uGroupIndex, UINT16 uTrackIndex);
  198.     STDMETHOD(StopDone)              (THIS_ UINT16 uGroupIndex, UINT16 uTrackIndex);
  199.     STDMETHOD(OnSoundLevelAnimation) (THIS_ UINT16 uGroupIndex, UINT16 uTrackIndex,
  200.                                             UINT32 ulSoundLevelAnimationTime);
  201. #if defined(HELIX_FEATURE_SMIL2_MULTIWINDOWLAYOUT)
  202.     // IHXViewPortSink methods
  203.     STDMETHOD(ViewPortOpened)    (THIS_ const char* pszViewPort);
  204.     STDMETHOD(ViewPortClosed)    (THIS_ const char* pszViewPort);
  205.     STDMETHOD(ViewPortShown)     (THIS_ const char* pszViewPort);
  206.     STDMETHOD(ViewPortHidden)    (THIS_ const char* pszViewPort);
  207.     STDMETHOD(ViewPortFocusSet)  (THIS_ const char* pszViewPort);
  208.     STDMETHOD(ViewPortZOrderSet) (THIS_ const char* pszViewPort, UINT32 ulZOrder);
  209. #ifdef XXXMEH_DO_VIEWPORT_TLC
  210.     // IHXViewPortSupplier methods
  211.     STDMETHOD(OnViewPortOpen)   (THIS_ IHXValues* pValues, IHXSiteUser* pSiteUser);
  212.     STDMETHOD(OnViewPortClose)  (THIS_ const char* pszViewPort);
  213.     STDMETHOD(OnViewPortShow)   (THIS_ const char* pszViewPort);
  214.     STDMETHOD(OnViewPortHide)   (THIS_ const char* pszViewPort);
  215.     STDMETHOD(OnViewPortFocus)  (THIS_ const char* pszViewPort);
  216.     STDMETHOD(OnViewPortZOrder) (THIS_ const char* pszViewPort, UINT32 ulZOrder);
  217. #endif
  218. #endif /* #if defined(HELIX_FEATURE_SMIL2_MULTIWINDOWLAYOUT) */
  219. #if defined(BE_SITE_SUPPLIER_20010205)
  220.     // IHXSiteSupplier methods
  221.     STDMETHOD(SitesNeeded)       (THIS_ UINT32 uRequestID, IHXValues* pSiteProps);
  222.     STDMETHOD(SitesNotNeeded)    (THIS_ UINT32 uRequestID);
  223.     STDMETHOD(BeginChangeLayout) (THIS);
  224.     STDMETHOD(DoneChangeLayout)  (THIS);
  225. #endif
  226.     // IHXMediaMarkerSink methods
  227.     STDMETHOD(MarkerResolved) (THIS_ IHXBuffer* pURLStr,
  228.                                      IHXBuffer* pMarkerNameStr,
  229.                                      UINT32      ulTime,
  230.                                      IHXValues* pOtherMarkerParams);
  231.     // IHXEventSink methods
  232.     STDMETHOD(EventFired) (THIS_ IHXBuffer* pURLStr,
  233.                                  IHXBuffer* pFragmentStr,
  234.                                  IHXBuffer* pEventNameStr,
  235.                                  IHXValues* pOtherValues);
  236.     // IHXErrorSink methods
  237.     STDMETHOD(ErrorOccurred) (THIS_ const UINT8   unSeverity,
  238.                                     const ULONG32 ulHXCode,
  239.                                     const ULONG32 ulUserCode,
  240.                                     const char*   pUserString,
  241.                                     const char*   pMoreInfoURL);
  242.     // CSmilElementHandler methods - these are
  243.     // the methods that the CSmilParser and CSmilElements
  244.     // will call us back on
  245.     HX_RESULT handleAddGroup(CSmilAddGroup* pAddGroup);
  246.     HX_RESULT handleRegion(CSmilRegion* pRegion);
  247.     HX_RESULT handleRegPoint(CSmilRegPoint* pRegPt);
  248. #if defined(HELIX_FEATURE_SMIL2_MULTIWINDOWLAYOUT)
  249.     HX_RESULT handleViewport(CSmilViewport* pView);
  250. #endif /* #if defined(HELIX_FEATURE_SMIL2_MULTIWINDOWLAYOUT) */
  251.     HX_RESULT handleRootLayout(CSmilRootLayout* pRootLayout);
  252.     HX_RESULT handleSource(CSmilSource* pSource);
  253.     HX_RESULT handleMeta(CSmilMeta* pMeta);
  254.     HX_RESULT handleMetadata(CSmilMetadata* pMetadata);
  255.     HX_RESULT handleEndLayout(CSmilEndLayout* pSource);
  256.     HX_RESULT handleRendererPreFetch(CSmilRendererPreFetch* pRend);
  257.     HX_RESULT handleSourceUpdate(CSmilSourceUpdate* pUpdate);
  258. #if defined(HELIX_FEATURE_SMIL2_TRANSITIONS)
  259.     HX_RESULT handleTransition(CSmilTransition* pTrans);
  260. #endif /* #if defined(HELIX_FEATURE_SMIL2_TRANSITIONS) */
  261.     HX_RESULT handleTrackRemoval(const char* pID, INT32 nGroupNum);
  262.     HX_RESULT handleTrackPausing(SMILNode*                     pNode,
  263.                                  LONG32                        lTimeOfPause,
  264.                                  SMILPriorityClassPauseDisplay pauseDisplay,
  265.                                  const char*                   pIdOfPauser);
  266.     HX_RESULT handleTrackResuming(const char* pID, INT32 nGroupNum);
  267. #if defined(HELIX_FEATURE_SMIL2_ANIMATION)
  268.     HX_RESULT handleAnimate(CSmilAnimateElement* pAnimate);
  269. #endif /* #if defined(HELIX_FEATURE_SMIL2_ANIMATION) */
  270.     HX_RESULT handleRemoveTimeUpdate(CSmilElement* pElement, UINT32 ulRemoveTime);
  271.     HX_RESULT handleExternalMediaMarkerFile(CSmilElement* pElement,
  272.                                             const char*   pszID,
  273.                                             const char*   pszExternalFileName,
  274.                                             const char*   pszRelativeSource);
  275.     HX_RESULT resolveGroupDurToOuterTimeContainerDur(UINT32 ulGroupIndex,
  276.                                                      UINT32 ulGroupTimeContainerDuration);
  277.     HX_RESULT GetCurGroupDuration(REF(UINT32) ulCurGrpDur);
  278.     // CSmilEventHookResponse methods
  279.     STDMETHOD(HandleMouseMove)        (THIS_ void*       pWindow,
  280.                                              const char* pRegionID,
  281.                                              const char* pMediaID,
  282.                                              UINT16      uXPos,
  283.                                              UINT16      uYPos,
  284.                                              UINT32      kRMAEvent,
  285.                                              REF(BOOL)   bHandleSetCursor);
  286.     STDMETHOD(HandleLButtonUp)        (THIS_ const char* pRegionID,
  287.                                              const char* pMediaID,
  288.                                              UINT16      uXPos,
  289.                                              UINT16      uYPos,
  290.                                              REF(BOOL)   rbHandled);
  291.     STDMETHOD(HandleGotFocus)         (THIS_ const char* pRegionID,
  292.                                              const char* pMediaID);
  293.     STDMETHOD(HandleLostFocus)        (THIS_ const char* pRegionID,
  294.                                              const char* pMediaID);
  295.     STDMETHOD(HandleCharEvent)        (THIS_ UINT16 uChar);
  296.     STDMETHOD_(BOOL, HandleSetCursor) (THIS);
  297.     STDMETHOD(AddShowEvents)          (THIS_ const char* pRegionName, IHXSite* pSite);
  298.     // CSmilSiteUserResponse methods
  299.     STDMETHOD(SiteUserAttachSite)  (THIS_ CSmilSiteUser* pUser, IHXSite* pSite);
  300.     STDMETHOD(SiteUserDetachSite)  (THIS_ CSmilSiteUser* pUser);
  301.     STDMETHOD(SiteUserHandleEvent) (THIS_ CSmilSiteUser* pUser, HXxEvent* pEvent);
  302.     // CSmilPassiveSiteWatcherResponse methods
  303.     STDMETHOD(SitePositionChanged) (THIS_ IHXSite* pSite, HXxPoint* pPoint);
  304.     STDMETHOD(SiteSizeChanged)     (THIS_ IHXSite* pSite, HXxSize*  pSize);
  305.     // CSmilDocumentRenderer public methods
  306.     HX_RESULT            close(CSmilRenderer* pParent);
  307.     HX_RESULT            setDocument(const char* pFragment);
  308.     HX_RESULT            setupDummySource();
  309.     HX_RESULT            onPacket(IHXBuffer* pBuffer, BOOL bIsFinal);
  310.     HX_RESULT            handleNamedEvent(const char* pRegionID,
  311.                                           const char* pMediaID,
  312.                                           const char* pEventName);
  313.     HX_RESULT            detachSite(IHXSite* pSite);
  314.     double               getResizeXScale() { return m_dResizeXScale; }
  315.     double               getResizeYScale() { return m_dResizeYScale; }
  316.     HX_RESULT            onHeader(IHXValues* pHeader);
  317.     HX_RESULT            onTimeSync(UINT32 ulTimeValue);
  318.     HX_RESULT            onPreSeek(UINT32 ulOldTime, UINT32 ulNewTime);
  319.     HX_RESULT            endStream();
  320.     CSmilBasicRegion*    setupDefaultLayout();
  321.     CSmilBasicRegion*    getRegionByID(const char* pID);
  322.     UINT32               getNumRegionsByName(const char* pszName);
  323.     CSmilBasicRegion*    getFirstRegionByName(const char* pszName);
  324.     CSmilBasicRegion*    getNextRegionByName(const char* pszName);
  325.     BOOL                 isAncestorRegion(CSmilBasicRegion* pPossibleParent,
  326.                                           CSmilBasicRegion* pPossibleChild);
  327.     HX_RESULT            getCommonAncestorRegion(CSmilBasicRegion*      pRegA,
  328.                                                  CSmilBasicRegion*      pRegB,
  329.                                                  REF(CSmilBasicRegion*) rpCommon);
  330.     CSmilRegPoint*       getRegPoint(const char* pszID);
  331.     CSmilSource*         getSource(const char* pszID);
  332.     HX_RESULT            handleHyperlinkTraversal(CSmilAAnchorElement* pAnc,
  333.                                                   BOOL bCalledFromCallback = FALSE);
  334. #if defined(HELIX_FEATURE_SMIL2_MULTIWINDOWLAYOUT)
  335.     CSmilBasicViewport*  getViewport(const char* pszID);
  336.     CSmilBasicViewport*  getViewportBySiteUser(CSmilSiteUser* pSiteUser);
  337.     CSmilBasicViewport*  getViewportBySite(IHXSite* pSite);
  338.     CSmilBasicViewport*  getViewportByDescendant(CSmilBasicRegion* pRegion);
  339. #endif /* #if defined(HELIX_FEATURE_SMIL2_MULTIWINDOWLAYOUT) */
  340.     CSmilBasicBox*       getTopLevelBox(CSmilBasicRegion* pRegion);
  341.     void                 resizeRegion(const char* pRegionName, HXxSize* pNewSize);
  342.     void                 repositionRegion(const char* pRegionName, HXxPoint* pNewPosition);
  343.     void                 setTopLevelSiteSize();
  344.     HX_RESULT            getErrorInfo(REF(UINT32) ulErrorLine,
  345.                                       REF(UINT32) ulErrorColumn,
  346.                                       REF(IHXBuffer*) pErrorText);
  347.     HX_RESULT            getErrorInterface(REF(IHXErrorMessages*) rpErrMsgs);
  348. #if defined(HELIX_FEATURE_SMIL2_TRANSITIONS)
  349.     CSmilTransitionInfo* getTransition(const char* pID);
  350.     HX_RESULT            makeTransitionValues(CSmilTransitionInfo* pInfo,
  351.                                               BOOL                 bTransIn,
  352.                                               REF(IHXValues*)     rpValues);
  353.     HX_RESULT            startTransition(UINT32               ulStartTime,
  354.                                          CSmilTransitionInfo* pTransInfo,
  355.                                          SMILSiteInfo*        pInfo,
  356.                                          SMILPlayToAssoc*     pAssoc,
  357.                                          IHXSite*            pSite,
  358.                                          UINT32               ulActualTime,
  359.                                          BOOL                 bBeginTransition);
  360. #endif /* #if defined(HELIX_FEATURE_SMIL2_TRANSITIONS) */
  361. #if defined(HELIX_FEATURE_SMIL2_ANIMATION)
  362.     HX_RESULT            addAnimation(CAnimationSandwichLayer* pLayer);
  363.     HX_RESULT            removeAnimation(CSmilAnimateElement* pAnimate);
  364.     void                 removeAnimation(CSmilAnimateInfo* pInfo);
  365. #endif /* #if defined(HELIX_FEATURE_SMIL2_ANIMATION) */
  366.     const char*          getDefaultNamespace();
  367.     void                 setMediaNativeSize(const char* pszID, HXxSize cSize);
  368.     HX_RESULT            processMediaRegionOverrides(const char* pszRegionID,
  369.                                                      const char* pszMediaID,
  370.                                                      BOOL        bMediaStart,
  371.                                                      UINT32      ulTime);
  372.     BOOL                 isTransparent(UINT32 ulColor) const;
  373.     void                 resolveZOrder(CSmilBasicBox* pBox, UINT32 ulTime);
  374.     HX_RESULT            getMostRecentInfo(IHXSite* pSite, UINT32 ulTime,
  375.                                            REF(UINT32) rulStartTime,
  376.                                            REF(UINT32) rulLexicalOrder);
  377.     BOOL                 hasParamChildren(CSmilElement* pElement,
  378.                                           BOOL          bServerOnly);
  379.     void                 addParamProperties(CSmilElement* pElement,
  380.                                             IHXValues*   pValues,
  381.                                             IUnknown*     pContext,
  382.                                             BOOL          bServerOnly);
  383.     void                 checkAnimChildren(CSmilElement* pElement, UINT32 ulTrackEnd);
  384.     void                 showAllSites(CSmilBasicBox* pBox, BOOL bShow);
  385.     HX_RESULT            GetElementProperties(UINT16            uGroupID, 
  386.                                               UINT16            uTrackID, 
  387.                                               REF(IHXValues*)  pProperties);
  388.     HX_RESULT            GetElementStatus(UINT16            uGroupID,
  389.                                           UINT16            uTrackID,
  390.                                           UINT32            ulCurrentTime,
  391.                                           REF(IHXValues*)  pStatus);
  392.     HX_RESULT  AttachElementLayout(UINT16     uGroupID,
  393.      UINT16     uTrackID,
  394.      IHXRenderer*  pRenderer,
  395.      IHXStream*    pStream,
  396.      IHXValues*    pProps);
  397.     HX_RESULT  DetachElementLayout(IUnknown*     pLSG);
  398.     BOOL                 isRegionActive(const char* pszRegID, UINT16 usGroup, UINT32 ulTime);
  399.     void                 handlePendingScheduling(void);
  400.     HX_RESULT            AdjustSoundLevelsOfAllCurrentTracks(UINT16 uCurGroupIndex,
  401.                                         UINT32 ulSoundLevelAdjustment_pct,
  402.                                         CSmilSource* pSmilSourceDontAdjustMe);
  403.     // CSmilDocumentRenderer static public methods
  404.     static void          computeRegPoint(HXxRect       cRegionRect,
  405.                                          RegPoint      cRegPointInfo,
  406.                                          REF(HXxPoint) rcRegPoint);
  407.     static HX_RESULT     computeMediaLayout(HXxRect      cRegionRect,
  408.                                             Fit          eFit,
  409.                                             HXxPoint     cRegPoint,
  410.                                             RegAlign     eRegAlign,
  411.                                             HXxSize      cMediaSize,
  412.                                             REF(HXxRect) rcMediaRect,
  413.                                             BOOL         bMediaIsBrush);
  414.     static void          computeHalfBounds(INT32 lMid, INT32 lSpan,
  415.                                            REF(INT32) rlMin, REF(INT32) rlMax);
  416.     static void          computeFillHiddenScaling(Fit eFit, INT32 lRegPt, INT32 lMediaDim,
  417.                                                   INT32 lRegionLo, INT32 lRegionHi,
  418.                                                   REF(INT32) rlMediaLo,
  419.                                                   REF(INT32) rlMediaHi);
  420.     static void          computeMeetSliceScaling(BOOL   bIsMeet, UINT32 ulNumDim,
  421.                                                  INT32 lA1, INT32 lA2, INT32 lA3,
  422.                                                  INT32 lB1, INT32 lB2, INT32 lB3,
  423.                                                  INT32 lC1, INT32 lC2, INT32 lC3,
  424.                                                  INT32 lD1, INT32 lD2, INT32 lD3,
  425.                                                  REF(INT32) rlA, REF(INT32) rlB,
  426.                                                  REF(INT32) rlC, REF(INT32) rlD);
  427.     static void          showSite(IHXSite* pSite, BOOL bShow);
  428.     static BOOL          isSiteVisible(IHXSite* pSite);
  429.     static void          setSiteZIndex(IHXSite* pSite, INT32 lZIndex);
  430.     static INT32         getSiteZIndex(IHXSite* pSite);
  431.     static UINT32        getNumberOfChildSites(IHXSite* pSite);
  432.     static void          addStringProperty(IHXValues* pValues,
  433.                                            IUnknown*   pContext,
  434.                                            const char* pszName,
  435.                                            const char* pszValue);
  436.     // CSmilDocumentRenderer public members
  437.     CHXString        m_metadata;
  438.     CHXStack*        m_pPlayerResumeStack;
  439. #if defined(BE_SITE_SUPPLIER_20010205)
  440.     CHXString        m_XXXEH_HACK_regionId;
  441.     IHXPlayer*      m_pIndependentPlayer;
  442.     CHXMapLongToObj* m_pChildSiteInfoMap;
  443. #endif
  444.     friend class CSmilRenderer;
  445. private:
  446.     // CSmilDocumentRenderer private methods
  447.     HX_RESULT            addSiteForRenderer(SMILPlayToAssoc* pPlayToAssoc,
  448.                                             SMILSourceInfo*  pSMILSourceInfo,
  449.                                             IHXRenderer*    pRenderer,
  450.                                             BOOL             bNoRegion);
  451.     HX_RESULT            addSiteForRendererByRegion(SMILPlayToAssoc*  pPlayToAssoc,
  452.                                                     SMILSourceInfo*   pSMILSourceInfo,
  453.                                                     IHXRenderer*     pRenderer,
  454.                                                     BOOL              bNoRegion,
  455.                                                     CSmilBasicRegion* pRegion);
  456.     HX_RESULT            setSiteProperty(IHXSite*   pSite,
  457.                                          const char* pszKey,
  458.                                          const char* pszValue);
  459.     HX_RESULT            setSitePropertyULONG32(IHXSite*   pSite,
  460.                                                 const char* pszKey,
  461.                                                 UINT32      ulValue);
  462.     HX_RESULT            getSiteProperty(IHXSite*        pSite,
  463.                                          const char*      pszKey,
  464.                                          REF(IHXBuffer*) rpValueStr);
  465.     void                 setPlayToAssoc(UINT16      uGroupIndex, 
  466.                                         UINT16      uTrackIndex, 
  467.                                         const char* pID,
  468.                                         const char* pRepeatID,
  469.                                         const char* pPlayTo,
  470.                                         const char* pRegionName,
  471.                                         const char* pBeginTransition,
  472.                                         const char* pEndTransition,
  473.                                         UINT32      regionZOrder,
  474.                                         BOOL        bXMMSource = FALSE);
  475.     HX_RESULT            doTransition(LISTPOSITION pos, UINT32 ulTime);
  476.     HX_RESULT            moveHideEventForSiteBack(SMILSiteInfo* pInfo,
  477.                                                   UINT32        ulEndTime,
  478.                                                   UINT32        len, 
  479.                                                   BOOL          bJustRenderer);
  480. #if defined(HELIX_FEATURE_SMIL2_TRANSITIONS)
  481.     HX_RESULT            checkSitesHideTime(SMILSiteInfo*        pOtherSiteInfo,
  482.                                             SMILSiteInfo*        pSiteInfo,
  483.                                             CSmilTransitionInfo* pTransInfo,
  484.                                             REF(IHXSite*)       pSiteToTransition,
  485.                                             BOOL                 bBeginTransition);
  486. #endif /* #if defined(HELIX_FEATURE_SMIL2_TRANSITIONS) */
  487.     HX_RESULT            ignoreLastHideEvent(UINT32 ulGroupIndex, SMILGroupInfo* pGroupInfo);
  488.     BOOL                 SitesOverlap(IHXSite* pCanidate, IHXSite* pSite);
  489.     SMILPlayToAssoc*     getPlayToAssoc(UINT16 uGroupIndex, UINT16 uTrackIndex);
  490.     SMILPlayToAssoc*     getPlayToAssoc(const char* pName);
  491.     SMILPlayToAssoc*     getPlayToAssocByMedia(const char* pszMediaID);
  492.     void                 removeAllPlayToAssoc();
  493.     void                 removeGroupsPlayToAssoc(UINT16 uGroupIndex);
  494.     void                 removeTracksPlayToAssoc(UINT16 uGroupIndex, UINT16 uTrackIndex);
  495.     void                 removeActiveTransitions();
  496.     void                 removeViewports();
  497.     void                 resetRendererSites(CSmilBasicRegion* pRegion);
  498.     CSmilSiteWatcher*    getRendererSiteWatcher(const char* pszMediaID);
  499.     void                 addRendererSiteWatcherToMap(const char* pszMediaID,
  500.                                                      CSmilSiteWatcher* pWatch);
  501.     void                 removeRendererSiteWatcherFromMap(const char* pszMediaID);
  502.     void                 clearRendererSiteWatcherMap();
  503.     HX_RESULT            getRendererSite(const char* pszMediaID, REF(IHXSite*) rpSite);
  504.     void                 addRendererSiteToMap(const char* pszMediaID, IHXSite* pSite);
  505.     void                 removeRendererSiteFromMap(const char* pszMediaID);
  506.     void                 clearRendererSiteMap();
  507.     HX_RESULT            getRenderer(const char* pszMediaID, REF(IHXRenderer*) rpRenderer);
  508.     void                 addRendererToMap(const char* pszMediaID, IHXRenderer* pRenderer);
  509.     void                 removeRendererFromMap(const char* pszMediaID);
  510.     void                 clearRendererMap();
  511.     HX_RESULT            actualRendererClosed(IHXRenderer* pRenderer,
  512.                                               IHXValues*   pInfo);
  513.     HX_RESULT            closeOldRenderers(BOOL bAll);
  514.     HX_RESULT            addOldRendererHideEvents(UINT16 uGroupIndex);
  515.     void                 removeSourcemap(SMILPlayToAssoc* pPlayToAssoc);
  516.     HX_RESULT            insertEvent(CSmilLayoutEvent* pEvent);
  517.     CSmilShowSiteEvent*  getShowHideEvent(const char* pszMediaID,
  518.                                           const char* pszRegionID,
  519.                                           BOOL        bShowEvent);
  520. #if defined(HELIX_FEATURE_SMIL2_ANIMATION)
  521.     void                 doAnimation(CSmilAnimateInfo* pInfo, UINT32 ulTime);
  522.     HX_RESULT            getUnderlyingValue(CSmilAnimateInfo* pInfo, REF(CAttr*) rpValue);
  523.     HX_RESULT            getDependentValue(CSmilAnimateInfo* pInfo, REF(CAttr*) rpDepend);
  524.     HX_RESULT            setValue(CSmilAnimateInfo* pInfo, CAttr* pValue,
  525.                                   CAttr* pDepend, BOOL bUnderlyingValue = FALSE);
  526.     void                 removeActiveAnimations();
  527.     CSmilAnimateEvent*   getAnimateEvent(CSmilAnimateElement* pAnim);
  528. #endif /* #if defined(HELIX_FEATURE_SMIL2_ANIMATION) */
  529.     void                 removeEvent(CSmilLayoutEvent* pEvent);
  530.     HX_RESULT            insertSiteInfo(void* pInfo);
  531.     void                 removeSiteInfo(SMILSiteInfo* pSiteInfo);
  532.     void                 removeGroupEvents(UINT16 uGroupIndex);
  533.     BOOL                 draw(HXxEvent* pEvent, IHXSite* pSite, UINT32 ulBgColor);
  534.     HX_RESULT            insertIntoZOrderList(CHXSimpleList* pList,
  535.                                               SMILSiteInfo*  pSiteInfo);
  536.     HX_RESULT            setRendererZOrder(SMILSiteInfo* pSiteInfo);
  537.     HX_RESULT            handleElements();
  538.     HX_RESULT            postParseSetup();
  539.     void                 setProperty(IHXValues* pValues, 
  540.                                      const char* pName, 
  541.                                      const char* pValue);
  542.     HX_RESULT            parseDimension(const char* pDimensionString,
  543.                                         REF(UINT32) ulValue,
  544.                                         REF(BOOL)   bIsPercent);
  545.     HX_RESULT            computeBoxDimension(CSmilBasicBox* pBox, BoxDimension eDim);
  546.     void                 clearResolvedFlags(CSmilBasicBox* pBox);
  547.     void                 resetSites(CSmilBasicBox* pBox, BOOL bOptimizeRedraws);
  548.     void                 resizeTopLevelBox(CSmilBasicBox* pBox, HXxSize cOrigSize, HXxSize cSize);
  549.     void                 zoomRect(CSmilBasicBox* pBox, double dScaleX, double dScaleY);
  550.     void                 recomputeBoxLayout(CSmilBasicBox* pBox, BOOL bOptimizeRedraws);
  551.     BOOL                 isMediaPausedAndDisabled(const char* pID);
  552.     BOOL                 reenablePausedAndDisabledMedia(const char* pID,
  553.                                 UINT16 iGroupIndex);
  554.     CSmilAAnchorElement* findHyperlinkElement(const char* pRegionID,
  555.                                               const char* pMediaID,
  556.                                               UINT16      uXPos,
  557.                                               UINT16      uYPos,
  558.                                               BOOL        bResolveTargetBeginIfFragment = FALSE);
  559.     CSmilElement*        findIfCurElementHasAltOrLongdesc(const char* pID,
  560.                                             UINT16 ulXPos, UINT16 ulYPos);
  561.     HX_RESULT            convertURL(const char* pszBaseRoot, const char* pszBasePrefix,
  562.                                     const char* pURL, CHXString& newURL);
  563.     HX_RESULT            doSourceUpdate(SMILPlayToAssoc*   pPlayToAssoc,
  564.                                         CSmilSourceUpdate* pUpdateElement);
  565.     HX_RESULT            updateStreamTiming(const char* pElementID,
  566.                                             UINT32      ulDuration);
  567.     HX_RESULT            updateStreamDelay(UINT16 uGroupIndex, UINT32 ulDelay);
  568.     HX_RESULT            updateSiteEvents(UINT16 uGroupIndex);
  569.     HX_RESULT            seekTo(const char* pElementID);
  570.     HX_RESULT            setRegionParentChild(CSmilBasicRegion* pRegion);
  571.     HX_RESULT            createRegionSites(CHXSimpleList* pChildList);
  572.     HX_RESULT            createRegionSite(CSmilBasicRegion* pRegion);
  573.     void                 destroyRegionSites(CHXSimpleList* pChildList);
  574.     CSmilBasicRegion*    getRegionByName(const char* pszName);
  575.     void                 RemoveEvents(UINT32 ulGroupIndex, IHXSite* pSite);
  576.     HX_RESULT            flushAllEvents(UINT32 ulFlushToTime, BOOL bBreak = FALSE);
  577.     HX_RESULT            flushAllEvents () { return flushAllEvents(m_ulCurrentTime); }
  578.     BOOL                 IsFullScreen();
  579.     BOOL                 isAttributeAnimated(const char* pszElementID, UINT32 ulAttrName);
  580.     BOOL                 isRegionBackgroundColorOverridden(CSmilBasicRegion* pRegion);
  581. #if defined(HELIX_FEATURE_SMIL2_ANIMATION)
  582.     void                 startSoundLevelAnimation(CSmilAnimateInfo* pInfo);
  583.     void                 finishSoundLevelAnimation(CSmilAnimateInfo* pInfo,
  584.                                                    BOOL bUseCurrentLevel = FALSE);
  585.     CSmilAnimateElement* getFirstAnimationElement(const char* pszElementID, UINT32 ulAttrName);
  586.     CSmilAnimateElement* getNextAnimationElement(const char* pszElementID, UINT32 ulAttrName);
  587. #endif /* #if defined(HELIX_FEATURE_SMIL2_ANIMATION) */
  588.     BOOL                 getGroupDuration(UINT16 usGroupIndex, REF(UINT32) rulDuration);
  589.     HX_RESULT            getTrack(UINT16 uGroupIndex, UINT16 uTrackIndex, REF(IHXTrack*) rpTrack);
  590.     void                 forceFullRedraw(IHXSite* pSite);
  591.     void                 forceFullRecursiveRedraw(CSmilBasicBox* pBox);
  592.     void                 destroyRendererSites(CSmilBasicBox* pBox);
  593.     HX_RESULT            setupRootLayout(BOOL bAssignDefaults);
  594. #if defined(HELIX_FEATURE_SMIL2_MULTIWINDOWLAYOUT)
  595.     HX_RESULT            setupViewports();
  596.     HX_RESULT            finishOneViewportSetup(CSmilBasicViewport* pPort);
  597.     HX_RESULT            setupViewportsDone(HX_RESULT status);
  598.     void                 closeViewports();
  599.     void                 showHideViewport(const char* pszID, BOOL bShow);
  600.     void                 showHideViewport(CSmilBasicViewport* pPort, BOOL bShow);
  601. #ifdef XXXMEH_DO_VIEWPORT_TLC
  602.     void                 clearViewportMap();
  603. #endif
  604. #endif /* #if defined(HELIX_FEATURE_SMIL2_MULTIWINDOWLAYOUT) */
  605.     void                 destroyRegions(CHXSimpleList* pChildList);
  606.     void                 destroyAllRegions();
  607.     void                 setElementRemoveTime(const char* pszID, UINT32 ulRemoveTime);
  608. #if defined(_UNIX) && (!(defined(_BEOS))) && (!(defined(_MAC_UNIX)))
  609.     XData*               InitXVisualSupport(IHXSite* pSite, HXxWindow* pWnd);
  610. #endif
  611. #if defined(_DEBUG)
  612.     void                 DumpEventQueue();
  613.     void                 DumpZOrder(CSmilBasicBox* pBox, UINT32 ulIndentLevel);
  614.     void                 DumpAllGroupInfo(UINT32 ulTime);
  615.     void                 DumpAllProperties(IHXValues* pValues, UINT32 ulNumTabIndent);
  616.     void                 DumpAllSiteInfo(const char* pszFileName, UINT32 ulTime);
  617.     void                 DumpBoxSiteInfo(CSmilBasicBox* pBox, FILE* fp, UINT32 ulIndentLevel);
  618. #endif
  619.     HX_RESULT            getMediaIDFromSite(IHXSite* pSite, REF(CHXString) rcStr);
  620.     CExternalMediaMarkerInfo* getExternalMediaMarkerInfo(const char* pszURL);
  621.     BOOL                      isIDMappedToExternalMediaMarkerFile(CExternalMediaMarkerInfo* pInfo,
  622.                                                                   const char*               pszID);
  623.     void                      deleteExternalMediaMarkerList();
  624.     void                      queueSiteForAnimationRedraw(IHXSite* pSite);
  625.     void                      queueRegionForRecompute(CSmilBasicRegion* pRegion);
  626.     void                      removePendingAnimationRedraw(IHXSite* pSite);
  627.     void                      turnSiteCompositionModeON();
  628.     void                      turnSiteCompositionModeOFF();
  629.     void                      lockSiteComposition();
  630.     void                      unlockSiteComposition();
  631.     void                      bltSiteComposition();
  632.     BOOL                      isSiteCompositionLocked();
  633.     BOOL                      isSiteCompositionModeON();
  634.     void                      GoToURLWithParamCheck(const char*        pszURL,
  635.                                                     const char*        pszTarget,
  636.                                                     const char*        pszSendTo,
  637.                                                     IHXHyperNavigate* pHyper,
  638.                                                     CSmilElement*      pElement,
  639.                                                     IUnknown*          pContext,
  640.                                                     BOOL               bUserInvoked,
  641.                                                     BOOL               bHint = FALSE);
  642.     UINT16                    getCurrentGroup();
  643.     HX_RESULT                 InitPersistent(UINT32                   ulPersistentComponentID,
  644.                                              UINT16                   uPersistentGroupID,
  645.                                              UINT16                   uPersistentTrackID,
  646.                                              IHXPersistentRenderer*  pPersistentParent);
  647.     BOOL                      IsNestedMetaSupported(void);
  648.     void                      PersistentDurationSet(UINT32 ulDuration, UINT32 ulDelay, BOOL bIsLive);
  649.     FillType                  getMediaFillBehavior(const char* pszID);
  650.     BOOL                      atLeastOneActiveAnimation(UINT32 ulTime);
  651.     void                      clearAllEventHandledFlags();
  652.     HX_RESULT                 setRendererULONG32Property(const char* pszMediaID,
  653.                                                          const char* pszName,
  654.                                                          UINT32      ulValue,
  655.                                                          REF(BOOL)   rbSetNewValue);
  656.     HX_RESULT                 setRendererCStringProperty(const char* pszMediaID,
  657.                                                          const char* pszName,
  658.                                                          const char* pszValue,
  659.                                                          REF(BOOL)   rbSetNewValue);
  660.     void                      addRemoveMediaMarkerSink(BOOL bAdd);
  661.     void                      addRemoveEventSink(BOOL bAdd);
  662.     void                      addRemoveErrorSink(BOOL bAdd);
  663.     void                      addEventSinkFilterRule(const char*    pszURL,
  664.                                                      const char*    pszFragment,
  665.                                                      const char*    pszEventName,
  666.                                                      IHXEventSink* pSink = NULL);
  667.     HX_RESULT                 getEventSink(const char*         pszID,
  668.                                            REF(IHXEventSink*) rpEventSink);
  669.     HX_RESULT                 addRemoveEventSink(const char* pszID, BOOL bAdd);
  670.     void                      removeAllEventSinks();
  671.     HX_RESULT                 setupEventPipe(const char* pszSrcID,
  672.                                              const char* pszDstID,
  673.                                              const char* pszEventName);
  674.     void                      SendHyperlinkHints();
  675.     void                      HintHyperlinkNodeRecurse(SMILNode* pNode);
  676.     void                      HintHyperlinkNode(CSmilAAnchorElement* pAnchor);
  677.     // CSmilDocumentRenderer private members
  678.     CSmilRenderer*          m_pParent;
  679.     CSmilParser*            m_pSmilParser;
  680.     HX_RESULT               m_ulParseResult;
  681.     IHXScheduler*          m_pScheduler;
  682.     char*                   m_pFragment;
  683.     CHXMapStringToOb*       m_pRegionMap;
  684.     CSmilBasicRootLayout*   m_pRootLayout;
  685.     CHXSimpleList*          m_pViewportList;
  686.     CHXMapStringToOb*       m_pRegPointMap;
  687. #if defined(HELIX_FEATURE_SMIL2_TRANSITIONS)
  688.     CHXMapStringToOb*       m_pTransitionMap;
  689. #endif /* #if defined(HELIX_FEATURE_SMIL2_TRANSITIONS) */
  690.     CHXMapPtrToPtr*         m_pSiteInfoByRendererMap;
  691.     CHXMapPtrToPtr*         m_pSiteWatcherMap;
  692.     CHXMapLongToObj*        m_pGroupInfoMap;
  693.     CHXMapLongToObj*        m_pGroupMap;
  694.     CHXMapStringToOb*       m_pDeferredSourceMap;
  695.     CHXMapStringToOb*       m_pPausedAndDisabledIDMap;
  696.     CHXMapStringToOb*       m_pPausedAndDisabledBrightnessMap;
  697.     CHXMapLongToObj*        m_pPrefetchTrackElementMap;
  698.     CHXSimpleList*          m_pSiteInfoList;
  699.     CHXSimpleList*          m_pPlayToAssocList;
  700.     CHXSimpleList*          m_pEventList;
  701.     CHXSimpleList*          m_pZOrderList;
  702.     CHXSimpleList*          m_pDelayedRendererCloseList;
  703.     LISTPOSITION            m_ulEventListPosition;
  704.     INT16                   m_uCurrentGroupIndex;
  705.     INT16                   m_nFragmentTracks;
  706.     UINT32                  m_ulCurrentTime;
  707.     LONG32                  m_lRefCount;
  708.     IUnknown*               m_pContext;
  709.     IHXSiteManager*        m_pSiteMgr;
  710.     IHXStatusMessage*      m_pStatusMessage;
  711.     ULONG32                 m_ulFragmentTimeOffset;
  712.     double                  m_dResizeXScale;
  713.     double                  m_dResizeYScale;
  714.     CHXSimpleList*          m_pActiveTransitions;
  715.     CHXSimpleList*          m_pActiveAnimations;
  716.     POSITION                m_pRegionMapIterator;
  717.     CHXMapStringToOb*       m_pAnimationMap;
  718.     IHXLayoutStream*       m_pPersistentLayoutStream;
  719.     UINT32                  m_ulNoLayoutRendererCount;
  720.     IHXErrorMessages*      m_pErrorMessages;
  721.     UINT32                  m_ulGroupIndex;
  722.     UINT32                  m_ulTrackIndex;
  723.     UINT16                  m_uGroupIndexWithin;
  724.     IHXBuffer*             m_pSMILDefaultNamespaceStr;
  725.     IHXViewPortManager*    m_pViewPortManager;
  726.     HandlePendingSchedulingCallback* m_pHandlePendingSchedulingCallback;
  727.     CHyperlinkCallback*     m_pHyperlinkCallback;
  728.     HXxSize                 m_topSiteSize;
  729.     HXxSize                 m_topSiteOriginalSize;
  730. #ifdef XXXMEH_DO_VIEWPORT_TLC
  731.     CHXMapStringToOb*       m_pViewPortSiteMap;
  732. #endif
  733. #if defined(_WINDOWS)
  734.     HCURSOR                 m_hHyperlinkCursor;
  735.     HCURSOR                 m_hPreHyperlinkCursor;
  736. #elif defined(_MACINTOSH) || defined(_MAC_UNIX)
  737.     CursHandle              m_hHyperlinkCursor;
  738.     CResourceLoader*        m_pResourceLoader;
  739. #elif defined(_UNIX) && (!(defined(_BEOS))) && (!(defined(_MAC_UNIX)))
  740.     XVisualInfo*            m_pVisualInfo;
  741.     Cursor                  m_hHyperlinkCursor;
  742.     Cursor                  m_hCurrentCursor;
  743.     Display*                m_pDisplay;          
  744.     Window                  m_Window;
  745.     Display*                m_pPixmapDisplay;
  746.     CHXMapPtrToPtr          m_siteToXDataMap;
  747. #endif
  748.     UINT32                  m_ulPersistentComponentID;
  749.     UINT16                  m_uPersistentGroupID;
  750.     UINT16                  m_uPersistentTrackID;
  751.     IHXValues*             m_pPersistentProperties;
  752.     IHXPersistentRenderer* m_pPersistentParentRenderer;
  753.     CHXSimpleList*          m_pExternalMediaMarkerList;
  754.     POSITION                m_AnimationIterator;
  755.     CHXMapPtrToPtr*         m_pAnimSiteRedrawMap;
  756.     CHXMapPtrToPtr*         m_pAnimRegionRecomputeMap;
  757.     CHXMapPtrToPtr*         m_pAnimTopLayoutMap;
  758.     UINT16                  m_usAnimBaseGroupIndex;
  759.     UINT32                  m_ulAnimDuration;
  760.     UINT32                  m_ulCurGroupDuration;
  761.     IHXMutex*              m_pSoundLevelMutex;
  762.     CHXMapStringToOb*       m_pMediaID2RendererMap;
  763.     CHXMapStringToOb*       m_pMediaID2RendererSiteMap;
  764.     CHXMapStringToOb*       m_pMediaID2RendererSiteWatcherMap;
  765.     CHXMapStringToOb*       m_pDeferrededRemoveTrackMap;
  766.     CHXSimpleList*          m_pEventSinkList;
  767.     UINT32                  m_ulPktnum;
  768.     UINT16                  m_usOldXPos;
  769.     UINT16                  m_usOldYPos;
  770.     // ONLY HX_BITFIELD MEMBERS SHOULD GO BELOW THIS LINE!
  771.     // ALL OTHER MEMBER TYPES SHOULD GO ABOVE THIS LINE!
  772.     HX_BITFIELD             m_bFirstTimeSync : 1;
  773.     HX_BITFIELD             m_bSettingFragment : 1;
  774.     HX_BITFIELD             m_bFragFoundAndResolved : 1;
  775.     HX_BITFIELD             m_bInHyperlink : 1;
  776.     HX_BITFIELD             m_bSiteLayoutComplete : 1;
  777.     HX_BITFIELD             m_bStatusMessageSet : 1;
  778.     HX_BITFIELD             m_bMetadataPassedOffAlready : 1;
  779.     HX_BITFIELD             m_bIsRootLayoutSetup : 1;
  780.     HX_BITFIELD             m_bSMILPresentationHasEnded : 1;
  781.     HX_BITFIELD             m_bSitesDetached : 1;
  782.     HX_BITFIELD             m_bLayoutElementPresent : 1;
  783.     HX_BITFIELD             m_bEmptyLayout : 1;
  784.     HX_BITFIELD             m_bDoNotZoom : 1;
  785.     HX_BITFIELD             m_bAnimateRootLayout : 1;
  786.     HX_BITFIELD             m_bCloseCalled : 1;
  787.     HX_BITFIELD             m_bRootLayoutSiteDetached : 1;
  788.     HX_BITFIELD             m_bInTrackDurationSetCall : 1;
  789.     HX_BITFIELD             m_bEventSinkWasSetup : 1;
  790.     HX_BITFIELD             m_bDestPlaystateIsPause : 1;
  791. #ifdef XXXMEH_DO_VIEWPORT_TLC
  792.     HX_BITFIELD             m_bSMILViewportClose : 1;
  793. #endif
  794. #if defined(_WINDOWS)
  795.     HX_BITFIELD             m_bNeedToSetHyperlinkCursor : 1;
  796. #elif defined(_MACINTOSH) || defined(_MAC_UNIX)
  797.     HX_BITFIELD             m_bResetCursor : 1;
  798. #endif
  799. };
  800. inline BOOL CSmilDocumentRenderer::isTransparent(UINT32 ulColor) const
  801. {
  802.     BOOL bRet = FALSE;
  803.     if ((ulColor & 0xFF000000) == 0xFF000000)
  804.     {
  805.         bRet = TRUE;
  806.     }
  807.     return bRet;
  808. }
  809. #endif