epoc32/include/mw/brctllayoutobserver.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
     1 /*
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description:  Handle scrollbar and tab events
    15 *
    16 */
    17 
    18 
    19 #ifndef BRCTLLAYOUTOBSERVER_H
    20 #define BRCTLLAYOUTOBSERVER_H
    21 
    22 //  INCLUDES
    23 #include <e32std.h>
    24 #include <e32base.h>
    25 
    26 
    27 /**
    28 * Defines whether a page is to be read from left-to-right or from right-to-left.
    29 */
    30 enum TBrCtlLayout
    31   {
    32   EOriginTopLeft, ///< Page is to be read from left-to-right
    33   EOriginTopRight ///< Page is to be read from right-to-left
    34   };
    35 
    36 enum TBrCtlTabDirection
    37     {
    38     ETabLeft,
    39     ETabRight,
    40     ETabUp,
    41     ETabDown
    42     };
    43 
    44 /**
    45 * The MBrCtlLayoutObserver class receives 
    46 * scrolling events when the host application draws the scrollbar. 
    47 *
    48 * Usage:
    49 *
    50 * @code
    51 *  #include <brctllayoutobserver.h>
    52 *
    53 *  
    54 * @see S60 Platform: Browser Control API Developer's Guide Version 2.0
    55 * @lib BrowserEngine.lib
    56 * @file brctllayoutobserver.h
    57 * @endcode     *
    58 */
    59 class MBrCtlLayoutObserver
    60     {
    61     public: // New functions
    62         
    63         /**
    64         * Update the position of vertical scrollbar.
    65         * @since 2.8
    66         * @param aDocumentHeight The total height of the markup page
    67         * @param aDisplayHeight The height of the display
    68         * @param aDisplayPosY The current Y position
    69         * @return void
    70         */
    71         virtual void UpdateBrowserVScrollBarL(TInt aDocumentHeight, 
    72                                               TInt aDisplayHeight,
    73                                               TInt aDisplayPosY ) = 0;
    74 
    75         /**
    76         * Update the position of horizontal scrollbar.
    77         * @since 2.8
    78         * @param aDocumentWidth The total width of the markup page
    79         * @param aDisplayWidth The width of the display
    80         * @param aDisplayPosX The current X position
    81         * @return void
    82         */
    83         virtual void UpdateBrowserHScrollBarL(TInt aDocumentWidth, 
    84                                               TInt aDisplayWidth,
    85                                               TInt aDisplayPosX ) = 0;
    86 
    87         /**
    88         * Inform the layout of the page: right to left or left to right. 
    89         * Useful when the application draws the scrollbar itself.
    90         * @since 2.8
    91         * @param aNewLayout RTL (right to left) or LTR (left to right)
    92         * @return void
    93         * @attention This function is useful when the host application draws the scrollbar.
    94         * In RTL pages, the scroll bar should be on the left side. 
    95         */
    96         virtual void NotifyLayoutChange( TBrCtlLayout aNewLayout ) = 0;
    97         
    98         /**
    99         * Update the title of the page in history view
   100         * @since 3.0
   101         * @param aTitle Title of the page
   102         * @return void
   103         */
   104         virtual void UpdateTitleL( const TDesC& aTitle ) = 0;        
   105     };
   106 
   107 #endif      // BRCTLLAYOUTOBSERVER_H
   108             
   109 // End of File