csxhelp/inc/CSXHHtmlTopicContainer.h
branchRCL_3
changeset 16 0d1adf67ec1b
parent 11 326673dff2bf
equal deleted inserted replaced
14:b69cc3efe785 16:0d1adf67ec1b
    42     MBrCtlSpecialLoadObserver* aBrCtlSpecialLoadObserver = NULL,
    42     MBrCtlSpecialLoadObserver* aBrCtlSpecialLoadObserver = NULL,
    43     MBrCtlLayoutObserver* aBrCtlLayoutObserver = NULL,
    43     MBrCtlLayoutObserver* aBrCtlLayoutObserver = NULL,
    44     MBrCtlDialogsProvider* aBrCtlDialogsProvider = NULL,
    44     MBrCtlDialogsProvider* aBrCtlDialogsProvider = NULL,
    45     MBrCtlWindowObserver* aBrCtlWindowObserver = NULL,
    45     MBrCtlWindowObserver* aBrCtlWindowObserver = NULL,
    46 	MBrCtlDownloadObserver* aBrCtlDownloadObserver = NULL );
    46 	MBrCtlDownloadObserver* aBrCtlDownloadObserver = NULL );
       
    47 
       
    48 // A container which draw white rectagle.
       
    49 NONSHARABLE_CLASS( CBlankContainer ): public CCoeControl
       
    50     {
       
    51 public:
       
    52     CBlankContainer();
       
    53     ~CBlankContainer();
       
    54     
       
    55     /** 
       
    56     *  From CoeControl class
       
    57     *  @function Draw
       
    58     *  Draw() for drawing the Background
       
    59     */
       
    60     void Draw( const TRect& aRect ) const;
       
    61     
       
    62     };
       
    63 
    47 /** 
    64 /** 
    48 * @class CCSXHHtmlTopicContainer
    65 * @class CCSXHHtmlTopicContainer
    49 * This class provides Browser functionality
    66 * This class provides Browser functionality
    50 */
    67 */
    51 
    68 
   410 *  @function ConstructL
   427 *  @function ConstructL
   411 *  @since S60 3.2
   428 *  @since S60 3.2
   412 *  @Perform the second phase construction of a HtmlTopicContainer object
   429 *  @Perform the second phase construction of a HtmlTopicContainer object
   413 *  @param aRect the rectangle this view will be drawn to
   430 *  @param aRect the rectangle this view will be drawn to
   414  */
   431  */
   415     void ConstructL(const TRect& aRect);
   432     void ConstructL( const TRect& aRect );
   416 
   433 
   417 /** 
   434 /** 
   418 *  @function LoadHtmlL
   435 *  @function LoadHtmlL
   419 *  loads HTML page in the Browser
   436 *  loads HTML page in the Browser
   420 *  @since S60 3.2
   437 *  @since S60 3.2
   438 /**
   455 /**
   439 * @function NeedRefresh
   456 * @function NeedRefresh
   440 * Judge whether we need to refresh the browser control
   457 * Judge whether we need to refresh the browser control
   441 */
   458 */
   442     TBool NeedRefresh( const TContentLoadState aNewLoadState ) const;
   459     TBool NeedRefresh( const TContentLoadState aNewLoadState ) const;
   443 	
   460     
       
   461 /**
       
   462  * @function HideBrowser
       
   463  */    
       
   464     void HideBrowser();
       
   465     
       
   466 /**
       
   467  * * @function ShowBrowser
       
   468  */
       
   469     void ShowBrowser();
       
   470     
       
   471 /*
       
   472  *  @function SetTopAndBottomContainer
       
   473  *  To set top and Bottom container of browser and blank container
       
   474  */
       
   475     void SetTopAndBottomContainer( CCoeControl* aTopControl, 
       
   476             CCoeControl* aBottomControl );
       
   477 
   444 private:
   478 private:
   445 	CBrCtlInterface* iBrCtrl;    
   479 	CBrCtlInterface* iBrCtrl;    
   446 	CCSXHHtmlTOC2* iTopic;
   480 	CCSXHHtmlTOC2* iTopic;
   447 	CCSXHDocument& iDocument;
   481 	CCSXHDocument& iDocument;
   448     CCSXHHelpContentBase *iNewTopic;
   482     CCSXHHelpContentBase *iNewTopic;
   457     TBool iLoadHtml;    
   491     TBool iLoadHtml;    
   458     TInt32 iPrevPageCount;
   492     TInt32 iPrevPageCount;
   459     TBool iBack;
   493     TBool iBack;
   460     
   494     
   461     TContentLoadState iContentLoading;
   495     TContentLoadState iContentLoading;
       
   496     
       
   497     // used to hide browser control if needed.
       
   498     CCoeControl*    iBlankContainer;
       
   499     
       
   500     // Used to determine whether hide browser control or not.
       
   501     CCoeControl*    iTopControl;
       
   502     CCoeControl*    iBottomControl;
       
   503     
   462 	};
   504 	};
   463 
   505 
   464 
   506 
   465 #endif 
   507 #endif