webengine/wmlengine/src/lmgr/include/LMgrAnonBlock.h
changeset 74 91031d3aab7d
parent 68 92a765b5b3e7
child 85 e358f2276d3f
equal deleted inserted replaced
68:92a765b5b3e7 74:91031d3aab7d
     1 /*
       
     2 * Copyright (c) 2004 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:  The class represents the anonymous block box
       
    15 *                See CSS2 Spec from WWW.W3C.ORG (page 98)
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef _LMGRANONBLOCK_H
       
    20 #define _LMGRANONBLOCK_H
       
    21 
       
    22 #include "nw_lmgr_bidiflowbox.h"
       
    23 #include "BrsrStatusCodes.h"
       
    24 
       
    25 #ifdef __cplusplus
       
    26 extern "C" 
       
    27 {
       
    28 #endif /* __cplusplus */
       
    29 
       
    30 
       
    31 /* Bidi Flow boxes manage bidirectional flows */
       
    32 
       
    33 typedef struct LMgrAnonBlock_s LMgrAnonBlock_t;
       
    34 
       
    35 typedef struct LMgrAnonBlock_ClassPart_s {
       
    36   void** unused;			/* empty class part */
       
    37 } LMgrAnonBlock_ClassPart_t;
       
    38 
       
    39 /* ------------------------------------------------------------------------- */
       
    40 typedef struct LMgrAnonBlock_Class_s {
       
    41   NW_Object_Core_ClassPart_t NW_Object_Core;
       
    42   NW_Object_Base_ClassPart_t NW_Object_Base;
       
    43   NW_Object_Dynamic_ClassPart_t NW_Object_Dynamic;
       
    44   NW_LMgr_Box_ClassPart_t NW_LMgr_Box;
       
    45   NW_LMgr_ContainerBox_ClassPart_t NW_LMgr_ContainerBox;
       
    46   NW_LMgr_FormatBox_ClassPart_t NW_LMgr_FormatBox;
       
    47   NW_LMgr_FlowBox_ClassPart_t NW_LMgr_FlowBox;
       
    48   NW_LMgr_BidiFlowBox_ClassPart_t NW_LMgr_BidiFlowBox;
       
    49   LMgrAnonBlock_ClassPart_t LMgrAnonBlock;
       
    50 } LMgrAnonBlock_Class_t;
       
    51 
       
    52 /* ------------------------------------------------------------------------- */
       
    53 struct LMgrAnonBlock_s {
       
    54   NW_LMgr_BidiFlowBox_t super;
       
    55 };
       
    56 
       
    57 /* ------------------------------------------------------------------------- */
       
    58 
       
    59 #define LMgrAnonBlock_GetClassPart(_object) \
       
    60 (NW_Object_GetClassPart(_object, LMgrAnonBlock))
       
    61 
       
    62 
       
    63 #define LMgrAnonBlockOf(_object) \
       
    64 ((LMgrAnonBlock_t*) (_object))
       
    65 
       
    66 /* ------------------------------------------------------------------------- */
       
    67 NW_LMGR_EXPORT const LMgrAnonBlock_Class_t LMgrAnonBlock_Class;
       
    68 
       
    69 NW_LMGR_EXPORT
       
    70 TBrowserStatusCode
       
    71 LMgrAnonBlock_Collapse (LMgrAnonBlock_t* aAnonBlock);
       
    72 
       
    73 NW_LMGR_EXPORT
       
    74 LMgrAnonBlock_t*
       
    75 LMgrAnonBlock_New (NW_ADT_Vector_Metric_t numProperties);
       
    76 
       
    77 #ifdef __cplusplus
       
    78 } // extern "C" {
       
    79 #endif /* __cplusplus */
       
    80 
       
    81 #endif 
       
    82