LCOV - code coverage report
Current view: top level - idl/inc - globals.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 80 80 100.0 %
Date: 2015-06-13 12:38:46 Functions: 80 80 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : #ifndef INCLUDED_IDL_INC_GLOBALS_HXX
      21             : #define INCLUDED_IDL_INC_GLOBALS_HXX
      22             : 
      23             : #include <hash.hxx>
      24             : 
      25             : 
      26             : class SvClassManager;
      27           8 : struct SvGlobalHashNames
      28             : {
      29             :     SvStringHashEntryRef MM_Name;
      30             :     SvStringHashEntryRef MM_module;
      31             :     SvStringHashEntryRef MM_interface;
      32             :     SvStringHashEntryRef MM_in;
      33             :     SvStringHashEntryRef MM_out;
      34             :     SvStringHashEntryRef MM_inout;
      35             :     SvStringHashEntryRef MM_String;
      36             :     SvStringHashEntryRef MM_UCHAR;
      37             :     SvStringHashEntryRef MM_USHORT;
      38             :     SvStringHashEntryRef MM_uuid;
      39             :     SvStringHashEntryRef MM_HelpContext;
      40             :     SvStringHashEntryRef MM_HelpText;
      41             :     SvStringHashEntryRef MM_void;
      42             :     SvStringHashEntryRef MM_shell;
      43             :     SvStringHashEntryRef MM_Get;
      44             :     SvStringHashEntryRef MM_Set;
      45             :     SvStringHashEntryRef MM_SlotId;
      46             :     SvStringHashEntryRef MM_HasCoreId;
      47             :     SvStringHashEntryRef MM_Cachable;
      48             :     SvStringHashEntryRef MM_Volatile;
      49             :     SvStringHashEntryRef MM_Toggle;
      50             :     SvStringHashEntryRef MM_AutoUpdate;
      51             :     SvStringHashEntryRef MM_Synchron;
      52             :     SvStringHashEntryRef MM_Asynchron;
      53             :     SvStringHashEntryRef MM_RecordPerSet;
      54             :     SvStringHashEntryRef MM_RecordPerItem;
      55             :     SvStringHashEntryRef MM_RecordManual;
      56             :     SvStringHashEntryRef MM_NoRecord;
      57             :     SvStringHashEntryRef MM_RecordAbsolute;
      58             :     SvStringHashEntryRef MM_enum;
      59             :     SvStringHashEntryRef MM_UINT16;
      60             :     SvStringHashEntryRef MM_INT16;
      61             :     SvStringHashEntryRef MM_UINT32;
      62             :     SvStringHashEntryRef MM_INT32;
      63             :     SvStringHashEntryRef MM_int;
      64             :     SvStringHashEntryRef MM_BOOL;
      65             :     SvStringHashEntryRef MM_char;
      66             :     SvStringHashEntryRef MM_BYTE;
      67             :     SvStringHashEntryRef MM_float;
      68             :     SvStringHashEntryRef MM_double;
      69             :     SvStringHashEntryRef MM_item;
      70             :     SvStringHashEntryRef MM_PseudoSlots;
      71             :     SvStringHashEntryRef MM_map;
      72             :     SvStringHashEntryRef MM_Default;
      73             :     SvStringHashEntryRef MM_HelpFile;
      74             :     SvStringHashEntryRef MM_Version;
      75             :     SvStringHashEntryRef MM_import;
      76             :     SvStringHashEntryRef MM_SlotIdFile;
      77             :     SvStringHashEntryRef MM_SvName;
      78             :     SvStringHashEntryRef MM_SbxName;
      79             :     SvStringHashEntryRef MM_ItemName;
      80             :     SvStringHashEntryRef MM_OdlName;
      81             :     SvStringHashEntryRef MM_include;
      82             :     SvStringHashEntryRef MM_ExecMethod;
      83             :     SvStringHashEntryRef MM_StateMethod;
      84             :     SvStringHashEntryRef MM_GroupId;
      85             :     SvStringHashEntryRef MM_HasDialog;
      86             :     SvStringHashEntryRef MM_TypeLibFile;
      87             :     SvStringHashEntryRef MM_Export;
      88             :     SvStringHashEntryRef MM_Automation;
      89             :     SvStringHashEntryRef MM_PseudoPrefix;
      90             :     SvStringHashEntryRef MM_define;
      91             :     SvStringHashEntryRef MM_MenuConfig;
      92             :     SvStringHashEntryRef MM_ToolBoxConfig;
      93             :     SvStringHashEntryRef MM_StatusBarConfig;
      94             :     SvStringHashEntryRef MM_AccelConfig;
      95             :     SvStringHashEntryRef MM_AllConfig;
      96             :     SvStringHashEntryRef MM_FastCall;
      97             :     SvStringHashEntryRef MM_SbxObject;
      98             :     SvStringHashEntryRef MM_Container;
      99             :     SvStringHashEntryRef MM_ImageRotation;
     100             :     SvStringHashEntryRef MM_ImageReflection;
     101             :     SvStringHashEntryRef MM_IsCollection;
     102             :     SvStringHashEntryRef MM_ReadOnlyDoc;
     103             :     SvStringHashEntryRef MM_ConfigName;
     104             :     SvStringHashEntryRef MM_union;
     105             :     SvStringHashEntryRef MM_struct;
     106             :     SvStringHashEntryRef MM_typedef;
     107             :     SvStringHashEntryRef MM_Readonly;
     108             :     SvStringHashEntryRef MM_SlotType;
     109             :     SvStringHashEntryRef MM_ModulePrefix;
     110             :     SvStringHashEntryRef MM_DisableFlags;
     111             :     SvStringHashEntryRef MM_Hidden;
     112             :     SvStringHashEntryRef MM_Description;
     113             :     SvStringHashEntryRef MM_UnoName;
     114             : 
     115             :     SvGlobalHashNames();
     116             : };
     117             : 
     118             : class IdlDll
     119             : {
     120             : public:
     121             :     SvStringHashTable * pHashTable;
     122             :     SvGlobalHashNames * pGlobalNames;
     123             : 
     124             :                 IdlDll();
     125             :                 ~IdlDll();
     126             : };
     127             : 
     128             : IdlDll * GetIdlApp();
     129             : #define IDLAPP GetIdlApp()
     130             : 
     131             : #define SV_GLOBAL_HASH_ACCESS( Name )                           \
     132             :     if( !IDLAPP->pGlobalNames )                                 \
     133             :         IDLAPP->pGlobalNames = new SvGlobalHashNames();         \
     134             :     return IDLAPP->pGlobalNames->MM_##Name;
     135             : 
     136             : #define HASH_INLINE( Name )                                             \
     137             : inline SvStringHashEntry * SvHash_##Name() { SV_GLOBAL_HASH_ACCESS( Name ) }
     138             : 
     139      163780 : HASH_INLINE(Name)
     140          16 : HASH_INLINE(module)
     141       12181 : HASH_INLINE(interface)
     142        1847 : HASH_INLINE(in)
     143        1847 : HASH_INLINE(out)
     144        1847 : HASH_INLINE(inout)
     145             : HASH_INLINE(String)
     146             : HASH_INLINE(UCHAR)
     147             : HASH_INLINE(USHORT)
     148         205 : HASH_INLINE(uuid)
     149      163780 : HASH_INLINE(HelpContext)
     150      163780 : HASH_INLINE(HelpText)
     151             : HASH_INLINE(void)
     152       12157 : HASH_INLINE(shell)
     153      163550 : HASH_INLINE(Get)
     154      163550 : HASH_INLINE(Set)
     155      163575 : HASH_INLINE(SlotId)
     156      163550 : HASH_INLINE(HasCoreId)
     157      169501 : HASH_INLINE(Cachable)
     158      163550 : HASH_INLINE(Volatile)
     159      163852 : HASH_INLINE(Toggle)
     160      165318 : HASH_INLINE(AutoUpdate)
     161      168509 : HASH_INLINE(Synchron)
     162      164542 : HASH_INLINE(Asynchron)
     163      163904 : HASH_INLINE(RecordPerItem)
     164      168992 : HASH_INLINE(RecordPerSet)
     165      163686 : HASH_INLINE(RecordManual)
     166      163569 : HASH_INLINE(NoRecord)
     167      163554 : HASH_INLINE(RecordAbsolute)
     168       11494 : HASH_INLINE(enum)
     169           8 : HASH_INLINE(UINT16)
     170           8 : HASH_INLINE(INT16)
     171           8 : HASH_INLINE(UINT32)
     172           8 : HASH_INLINE(INT32)
     173           8 : HASH_INLINE(int)
     174           8 : HASH_INLINE(BOOL)
     175           8 : HASH_INLINE(char)
     176           8 : HASH_INLINE(BYTE)
     177       12229 : HASH_INLINE(item)
     178      163550 : HASH_INLINE(PseudoSlots)
     179             : HASH_INLINE(map)
     180      163550 : HASH_INLINE(Default)
     181          21 : HASH_INLINE(HelpFile)
     182         205 : HASH_INLINE(Version)
     183        4422 : HASH_INLINE(import)
     184          21 : HASH_INLINE(SlotIdFile)
     185         184 : HASH_INLINE(SvName)
     186         184 : HASH_INLINE(SbxName)
     187             : HASH_INLINE(ItemName)
     188         184 : HASH_INLINE(OdlName)
     189        8918 : HASH_INLINE(include)
     190      163550 : HASH_INLINE(ExecMethod)
     191      163550 : HASH_INLINE(StateMethod)
     192      163550 : HASH_INLINE(GroupId)
     193           8 : HASH_INLINE(float)
     194           8 : HASH_INLINE(double)
     195      164480 : HASH_INLINE(HasDialog)
     196          21 : HASH_INLINE(TypeLibFile)
     197      163575 : HASH_INLINE(Export)
     198      163818 : HASH_INLINE(Automation)
     199      163550 : HASH_INLINE(PseudoPrefix)
     200       20758 : HASH_INLINE(define)
     201      167182 : HASH_INLINE(MenuConfig)
     202      167467 : HASH_INLINE(ToolBoxConfig)
     203      163646 : HASH_INLINE(StatusBarConfig)
     204      167278 : HASH_INLINE(AccelConfig)
     205      163550 : HASH_INLINE(AllConfig)
     206      164590 : HASH_INLINE(FastCall)
     207           8 : HASH_INLINE(SbxObject)
     208      163756 : HASH_INLINE(Container)
     209      163700 : HASH_INLINE(ImageRotation)
     210      163646 : HASH_INLINE(ImageReflection)
     211      163575 : HASH_INLINE(IsCollection)
     212      165535 : HASH_INLINE(ReadOnlyDoc)
     213      163780 : HASH_INLINE(ConfigName)
     214        1392 : HASH_INLINE(union)
     215       10409 : HASH_INLINE(struct)
     216        9576 : HASH_INLINE(typedef)
     217      163575 : HASH_INLINE(Readonly)
     218       24332 : HASH_INLINE(SlotType)
     219          21 : HASH_INLINE(ModulePrefix)
     220      163550 : HASH_INLINE(DisableFlags)
     221      163575 : HASH_INLINE(Hidden)
     222      163780 : HASH_INLINE(Description)
     223      163550 : HASH_INLINE(UnoName)
     224             : 
     225             : 
     226             : #endif // INCLUDED_IDL_INC_GLOBALS_HXX
     227             : 
     228             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11