LCOV - code coverage report
Current view: top level - workdir/unxlngi6.pro/CustomTarget/writerfilter/source - OOXMLFactory_shared-relationshipReference.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 19 61 31.1 %
Date: 2012-08-25 Functions: 8 13 61.5 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 15 127 11.8 %

           Branch data     Line data    Source code
       1                 :            : 
       2                 :            : #include "doctok/sprmids.hxx"
       3                 :            : #include "doctok/resourceids.hxx"
       4                 :            : #include "ooxml/resourceids.hxx"
       5                 :            : #include "OOXMLFactory_values.hxx"
       6                 :            : #include "OOXMLFactory_shared-relationshipReference.hxx"
       7                 :            : #include "ooxml/OOXMLFastHelper.hxx"
       8                 :            :     
       9                 :            : #ifdef _MSC_VER
      10                 :            : #pragma warning(disable:4065) // switch statement contains 'default' but no 'case' labels
      11                 :            : #endif
      12                 :            : 
      13                 :            : namespace writerfilter {
      14                 :            : namespace ooxml {
      15                 :            : 
      16                 :            : /// @cond GENERATED
      17                 :            :     
      18                 :            : typedef rtl::Static < osl::Mutex, OOXMLFactory_shared_relationshipReference > OOXMLFactory_shared_relationshipReference_Mutex;
      19                 :            : 
      20                 :          8 : OOXMLFactory_shared_relationshipReference::OOXMLFactory_shared_relationshipReference()
      21                 :            : {
      22                 :            :     // multi-thread-safe mutex for all platforms
      23                 :            :     
      24 [ +  - ][ +  - ]:          8 :     osl::MutexGuard aGuard(OOXMLFactory_shared_relationshipReference_Mutex::get());
                 [ +  - ]
      25                 :          8 : }
      26                 :            : 
      27                 :          8 : OOXMLFactory_shared_relationshipReference::~OOXMLFactory_shared_relationshipReference()
      28                 :            : {
      29         [ -  + ]:         16 : }
      30                 :            : 
      31                 :         20 : OOXMLFactory_ns::Pointer_t OOXMLFactory_shared_relationshipReference::m_pInstance;
      32                 :            :     
      33                 :        812 : OOXMLFactory_ns::Pointer_t OOXMLFactory_shared_relationshipReference::getInstance()
      34                 :            : {
      35         [ +  + ]:        812 :     if (m_pInstance.get() == NULL)
      36         [ +  - ]:          8 :         m_pInstance.reset(new OOXMLFactory_shared_relationshipReference());
      37                 :            :     
      38                 :        812 :     return m_pInstance;
      39                 :            : }
      40                 :            : 
      41                 :          0 : AttributeToResourceMapPointer OOXMLFactory_shared_relationshipReference::createAttributeToResourceMap(Id nId)
      42                 :            : {
      43 [ #  # ][ #  # ]:          0 :     AttributeToResourceMapPointer pMap(new AttributeToResourceMap());
                 [ #  # ]
      44                 :            :     
      45   [ #  #  #  #  :          0 :     switch (nId)
          #  #  #  #  #  
                   #  # ]
      46                 :            :     {
      47                 :            :     case NN_shared_relationshipReference|DEFINE_id:
      48                 :            :       // id
      49 [ #  # ][ #  # ]:          0 :         (*pMap)[OOXML_id] = AttributeInfo(RT_String, 0);
      50                 :          0 :         break;
      51                 :            :     case NN_shared_relationshipReference|DEFINE_embed:
      52                 :            :       // embed
      53 [ #  # ][ #  # ]:          0 :         (*pMap)[OOXML_embed] = AttributeInfo(RT_String, 0);
      54                 :          0 :         break;
      55                 :            :     case NN_shared_relationshipReference|DEFINE_link:
      56                 :            :       // link
      57                 :            :       // empty resource: OOXML_link
      58                 :          0 :         break;
      59                 :            :     case NN_shared_relationshipReference|DEFINE_dm:
      60                 :            :       // dm
      61                 :            :       // empty resource: OOXML_dm
      62                 :          0 :         break;
      63                 :            :     case NN_shared_relationshipReference|DEFINE_lo:
      64                 :            :       // lo
      65                 :            :       // empty resource: OOXML_lo
      66                 :          0 :         break;
      67                 :            :     case NN_shared_relationshipReference|DEFINE_qs:
      68                 :            :       // qs
      69                 :            :       // empty resource: OOXML_qs
      70                 :          0 :         break;
      71                 :            :     case NN_shared_relationshipReference|DEFINE_cs:
      72                 :            :       // cs
      73                 :            :       // empty resource: OOXML_cs
      74                 :          0 :         break;
      75                 :            :     case NN_shared_relationshipReference|DEFINE_blip:
      76                 :            :       // blip
      77                 :            :       // empty resource: OOXML_blip
      78                 :          0 :         break;
      79                 :            :     case NN_shared_relationshipReference|DEFINE_pict:
      80                 :            :       // pict
      81                 :            :       // empty resource: OOXML_pict
      82                 :          0 :         break;
      83                 :            :     case NN_shared_relationshipReference|DEFINE_href:
      84                 :            :       // href
      85 [ #  # ][ #  # ]:          0 :         (*pMap)[OOXML_href] = AttributeInfo(RT_String, 0);
      86                 :          0 :         break;
      87                 :            :     default:
      88                 :          0 :         break;
      89                 :            :     }
      90                 :            :     
      91                 :          0 :     return pMap;
      92                 :            : }
      93                 :            : 
      94                 :          0 : ListValueMapPointer OOXMLFactory_shared_relationshipReference::createListValueMap(Id nId)
      95                 :            : {
      96 [ #  # ][ #  # ]:          0 :     ListValueMapPointer pMap(new ListValueMap());
                 [ #  # ]
      97                 :            :     
      98                 :            :     switch (nId)
      99                 :            :     {
     100                 :            :     default:
     101                 :          0 :         break;
     102                 :            :     }
     103                 :            :     
     104                 :          0 :     return pMap;
     105                 :            : }
     106                 :          8 : CreateElementMapPointer OOXMLFactory_shared_relationshipReference::createCreateElementMap(Id nId)
     107                 :            : {
     108 [ +  - ][ +  - ]:          8 :     CreateElementMapPointer pMap(new CreateElementMap());
                 [ +  - ]
     109                 :            :     
     110                 :            :     switch (nId)
     111                 :            :     {
     112                 :            :     default:
     113                 :          8 :         break;
     114                 :            :     }
     115                 :            :     
     116                 :          8 :     return pMap;
     117                 :            : }
     118                 :            : 
     119                 :          0 : void OOXMLFactory_shared_relationshipReference::charactersAction(OOXMLFastContextHandler*, const OUString &)
     120                 :            : {
     121                 :          0 : }
     122                 :            : 
     123                 :          0 : string OOXMLFactory_shared_relationshipReference::getDefineName(Id nId) const
     124                 :            : {
     125 [ #  # ][ #  # ]:          0 :     static IdToStringMapPointer pMap;
         [ #  # ][ #  # ]
     126                 :            :     
     127         [ #  # ]:          0 :     if (pMap.get() == NULL)
     128                 :            :     {
     129 [ #  # ][ #  # ]:          0 :         pMap = IdToStringMapPointer(new IdToStringMap());
         [ #  # ][ #  # ]
                 [ #  # ]
     130                 :            :         
     131                 :            : 
     132 [ #  # ][ #  # ]:          0 :         (*pMap)[NN_shared_relationshipReference|DEFINE_ST_RelationshipId] = "ST_RelationshipId";
     133 [ #  # ][ #  # ]:          0 :         (*pMap)[NN_shared_relationshipReference|DEFINE_id] = "id";
     134 [ #  # ][ #  # ]:          0 :         (*pMap)[NN_shared_relationshipReference|DEFINE_embed] = "embed";
     135 [ #  # ][ #  # ]:          0 :         (*pMap)[NN_shared_relationshipReference|DEFINE_link] = "link";
     136 [ #  # ][ #  # ]:          0 :         (*pMap)[NN_shared_relationshipReference|DEFINE_dm] = "dm";
     137 [ #  # ][ #  # ]:          0 :         (*pMap)[NN_shared_relationshipReference|DEFINE_lo] = "lo";
     138 [ #  # ][ #  # ]:          0 :         (*pMap)[NN_shared_relationshipReference|DEFINE_qs] = "qs";
     139 [ #  # ][ #  # ]:          0 :         (*pMap)[NN_shared_relationshipReference|DEFINE_cs] = "cs";
     140 [ #  # ][ #  # ]:          0 :         (*pMap)[NN_shared_relationshipReference|DEFINE_blip] = "blip";
     141 [ #  # ][ #  # ]:          0 :         (*pMap)[NN_shared_relationshipReference|DEFINE_pict] = "pict";
     142 [ #  # ][ #  # ]:          0 :         (*pMap)[NN_shared_relationshipReference|DEFINE_href] = "href";
     143                 :            :     }
     144                 :            :     
     145                 :          0 :     return (*pMap)[nId];
     146                 :            : }
     147                 :            :     
     148                 :            : 
     149                 :          8 : TokenToIdMapPointer OOXMLFactory_shared_relationshipReference::createTokenToIdMap(Id nId)
     150                 :            : {
     151 [ +  - ][ +  - ]:          8 :     TokenToIdMapPointer pMap(new TokenToIdMap());
                 [ +  - ]
     152                 :            :     
     153                 :            :     switch (nId)
     154                 :            :     {
     155                 :            :     default:
     156                 :          8 :         break;
     157                 :            :     }
     158                 :            :     
     159                 :          8 :     return pMap;
     160                 :            : }
     161                 :            : 
     162                 :          0 : void OOXMLFactory_shared_relationshipReference::attributeAction(OOXMLFastContextHandler *, Token_t, OOXMLValue::Pointer_t)
     163                 :            : {
     164                 :          0 : }
     165                 :            : 
     166                 :            : #ifdef DEBUG_FACTORY
     167                 :            : string OOXMLFactory_shared_relationshipReference::getName() const
     168                 :            : {
     169                 :            :     return "shared-relationshipReference";
     170                 :            : }
     171                 :            : #endif
     172                 :            : 
     173                 :            : /// @endcond
     174 [ +  - ][ +  - ]:         60 : }}

Generated by: LCOV version 1.10