webengine/wmlengine/src/lmgr/src/LMgrVerticalTableRowBox.cpp
changeset 74 91031d3aab7d
parent 68 92a765b5b3e7
child 85 e358f2276d3f
equal deleted inserted replaced
68:92a765b5b3e7 74:91031d3aab7d
     1 /*
       
     2 * Copyright (c) 2000 - 2001 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: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "nw_lmgr_verticaltablerowboxi.h"
       
    20 
       
    21 
       
    22 /* ----------------------------------------------------------------------------*
       
    23  * static data
       
    24  * ----------------------------------------------------------------------------*/
       
    25 
       
    26 const
       
    27 NW_LMgr_VerticalTableRowBox_Class_t  NW_LMgr_VerticalTableRowBox_Class = {
       
    28   { /* NW_Object_Core            */
       
    29     /* super                     */ &NW_LMgr_BidiFlowBox_Class,
       
    30     /* queryInterface            */ _NW_Object_Base_QueryInterface
       
    31   },
       
    32   { /* NW_Object_Base            */
       
    33     /* interfaceList             */ NULL
       
    34   },
       
    35   { /* NW_Object_Dynamic         */
       
    36     /* instanceSize              */ sizeof (NW_LMgr_VerticalTableRowBox_t),
       
    37     /* construct                 */ _NW_LMgr_ContainerBox_Construct,
       
    38     /* destruct                  */ NULL
       
    39   },
       
    40   { /* NW_LMgr_Box               */
       
    41     /* split                     */ _NW_LMgr_Box_Split,
       
    42     /* resize                    */ _NW_LMgr_FlowBox_Resize,
       
    43     /* postResize                */ _NW_LMgr_FlowBox_PostResize,
       
    44     /* getMinimumContentSize     */ _NW_LMgr_Box_GetMinimumContentSize,
       
    45     /* hasFixedContentSize       */ _NW_LMgr_Box_HasFixedContentSize,
       
    46     /* constrain                 */ _NW_LMgr_FormatBox_Constrain,
       
    47     /* draw                      */ _NW_LMgr_Box_Draw,
       
    48     /* render                    */ _NW_LMgr_ContainerBox_Render,
       
    49     /* getBaseline               */ _NW_LMgr_FlowBox_GetBaseline,
       
    50     /* shift                     */ _NW_LMgr_ContainerBox_Shift,
       
    51     /* clone                     */ _NW_LMgr_Box_Clone
       
    52   },
       
    53   { /* NW_LMgr_ContainerBox      */
       
    54     /* unused                    */ NW_Object_Unused
       
    55   },
       
    56   { /* NW_LMgr_FormatBox         */
       
    57     /* applyFormatProps          */ _NW_LMgr_FlowBox_ApplyFormatProps
       
    58   },
       
    59   { /* NW_LMgr_FlowBox           */
       
    60     /* unused                    */ NW_Object_Unused
       
    61   },
       
    62   { /* NW_LMgr_LRFlowBox         */
       
    63     /* unused                    */ NW_Object_Unused
       
    64   },
       
    65   { /* NW_LMgr_VerticalTableRowBox         */
       
    66     /* unused                    */ NW_Object_Unused
       
    67   }
       
    68 };
       
    69 
       
    70 
       
    71 
       
    72 /* ------------------------------------------------------------------------- *
       
    73    convenience functions
       
    74  * ------------------------------------------------------------------------- */
       
    75 
       
    76 /* ------------------------------------------------------------------------- */
       
    77 NW_LMgr_VerticalTableRowBox_t*
       
    78 NW_LMgr_VerticalTableRowBox_New (NW_ADT_Vector_Metric_t numProperties)
       
    79 {
       
    80   return (NW_LMgr_VerticalTableRowBox_t*)
       
    81     NW_Object_New (&NW_LMgr_VerticalTableRowBox_Class, numProperties);
       
    82 }