LCOV - code coverage report
Current view: top level - include/sfx2 - frmhtmlw.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 4 4 100.0 %
Date: 2015-06-13 12:38:46 Functions: 1 1 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             : #ifndef INCLUDED_SFX2_FRMHTMLW_HXX
      20             : #define INCLUDED_SFX2_FRMHTMLW_HXX
      21             : 
      22             : #include <sal/config.h>
      23             : #include <sfx2/dllapi.h>
      24             : #include <sal/types.h>
      25             : 
      26             : #include <sfx2/frmdescr.hxx>
      27             : #include <com/sun/star/uno/Reference.h>
      28             : #include <com/sun/star/beans/XPropertySet.hpp>
      29             : #include <tools/stream.hxx>
      30             : #include <svtools/parhtml.hxx>
      31             : #include <svtools/htmlout.hxx>
      32             : #include <svtools/htmlkywd.hxx>
      33             : 
      34             : class SfxFrame;
      35             : 
      36             : namespace com { namespace sun { namespace star {
      37             :     namespace document {
      38             :         class XDocumentProperties;
      39             :     }
      40             : } } }
      41             : 
      42             : class SFX2_DLLPUBLIC SfxFrameHTMLWriter
      43             : {
      44             :     SAL_DLLPRIVATE static void OutMeta( SvStream& rStrm,
      45             :                                 const sal_Char *pIndent, const OUString& rName,
      46             :                                 const OUString& rContent, bool bHTTPEquiv,
      47             :                                 rtl_TextEncoding eDestEnc,
      48             :                                 OUString *pNonConvertableChars = 0 );
      49             :     SAL_DLLPRIVATE inline static void OutMeta( SvStream& rStrm,
      50             :                                 const sal_Char *pIndent, const sal_Char *pName,
      51             :                                 const OUString& rContent, bool bHTTPEquiv,
      52             :                                 rtl_TextEncoding eDestEnc,
      53             :                                 OUString *pNonConvertableChars = 0 );
      54             : 
      55             : public:
      56             :     static void Out_DocInfo( SvStream& rStrm, const OUString& rBaseURL,
      57             :             const ::com::sun::star::uno::Reference<
      58             :                 ::com::sun::star::document::XDocumentProperties>&,
      59             :             const sal_Char *pIndent,
      60             :             rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252,
      61             :             OUString *pNonConvertableChars = 0 );
      62             : 
      63             :     static void Out_FrameDescriptor(
      64             :         SvStream&, const OUString& rBaseURL, const com::sun::star::uno::Reference < com::sun::star::beans::XPropertySet >& xSet,
      65             :         rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252,
      66             :         OUString *pNonConvertableChars = 0 );
      67             : };
      68             : 
      69          81 : inline void SfxFrameHTMLWriter::OutMeta( SvStream& rStrm,
      70             :                             const sal_Char *pIndent, const sal_Char *pName,
      71             :                             const OUString& rContent, bool bHTTPEquiv,
      72             :                             rtl_TextEncoding eDestEnc,
      73             :                             OUString *pNonConvertableChars )
      74             : {
      75          81 :     OUString sTmp = OUString::createFromAscii(pName);
      76          81 :     OutMeta( rStrm, pIndent, sTmp, rContent, bHTTPEquiv, eDestEnc, pNonConvertableChars );
      77          81 : }
      78             : 
      79             : #endif
      80             : 
      81             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11