LCOV - code coverage report
Current view: top level - xml2cmp/source/xcd - cr_html.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 2 0.0 %
Date: 2012-08-25 Functions: 0 1 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     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 X2C_CR_HTML_HXX
      21                 :            : #define X2C_CR_HTML_HXX
      22                 :            : 
      23                 :            : 
      24                 :            : #include <string.h>
      25                 :            : #include <fstream>
      26                 :            : #include "../support/sistr.hxx"
      27                 :            : #include "../support/syshelp.hxx"
      28                 :            : 
      29                 :            : 
      30                 :            : class XmlElement;
      31                 :            : class SglTextElement;
      32                 :            : class MultipleTextElement;
      33                 :            : 
      34                 :            : 
      35                 :            : class HtmlCreator
      36                 :            : {
      37                 :            :   public:
      38                 :            :                         HtmlCreator(
      39                 :            :                             const char *        i_pOutputFileName,
      40                 :            :                             const XmlElement &  i_rDocument,
      41                 :            :                             const Simstr &      i_sIDL_BaseDirectory );
      42                 :            :                         ~HtmlCreator();
      43                 :            : 
      44                 :            :     void                Run();
      45                 :            : 
      46                 :            :     void                StartTable();
      47                 :            :     void                FinishTable();
      48                 :            :     void                StartBigCell(
      49                 :            :                             const char *        i_sTitle );
      50                 :            :     void                FinishBigCell();
      51                 :            : 
      52                 :            :     void                Write_SglTextElement(
      53                 :            :                             const SglTextElement &
      54                 :            :                                                 i_rElement,
      55                 :            :                             bool                i_bStrong = false );
      56                 :            :     void                Write_MultiTextElement(
      57                 :            :                             const MultipleTextElement &
      58                 :            :                                                 i_rElement );
      59                 :            :     void                Write_SglText(
      60                 :            :                             const Simstr &      i_sName,
      61                 :            :                             const Simstr &      i_sValue );
      62                 :            :     void                Write_ReferenceDocu(
      63                 :            :                             const Simstr &      i_sName,
      64                 :            :                             const Simstr &      i_sRef,
      65                 :            :                             const Simstr &      i_sRole,
      66                 :            :                             const Simstr &      i_sTitle );
      67                 :            :   private:
      68                 :            :     void                StartRow();
      69                 :            :     void                FinishRow();
      70                 :            :     void                StartCell(
      71                 :            :                             const char *        i_pWidth );
      72                 :            :     void                FinishCell();
      73                 :            : 
      74                 :            :     void                WriteElementName(
      75                 :            :                             const Simstr &      i_sName,
      76                 :            :                             bool                i_bStrong );
      77                 :          0 :     void                WriteStr(
      78                 :            :                             const char *        i_sStr )
      79                 :          0 :                                                 { aFile.write( i_sStr, (int) strlen(i_sStr) ); }
      80                 :            :     // DATA
      81                 :            :     std::ofstream       aFile;
      82                 :            :     const XmlElement &  rDocument;
      83                 :            :     Simstr              sIdl_BaseDirectory;
      84                 :            : };
      85                 :            : 
      86                 :            : 
      87                 :            : 
      88                 :            : 
      89                 :            : #endif
      90                 :            : 
      91                 :            : 
      92                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10