LCOV - code coverage report
Current view: top level - libreoffice/sfx2/inc/sfx2 - frmhtmlw.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 4 0.0 %
Date: 2012-12-17 Functions: 0 1 0.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 _FRMHTMLW_HXX
      20             : #define _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 const sal_Char sNewLine[];
      45             :     SAL_DLLPRIVATE static void OutMeta( SvStream& rStrm,
      46             :                                 const sal_Char *pIndent, const String& rName,
      47             :                                 const String& rContent, sal_Bool bHTTPEquiv,
      48             :                                 rtl_TextEncoding eDestEnc,
      49             :                             String *pNonConvertableChars = 0 );
      50             :     SAL_DLLPRIVATE inline static void OutMeta( SvStream& rStrm,
      51             :                                 const sal_Char *pIndent, const sal_Char *pName,
      52             :                                 const String& rContent, sal_Bool bHTTPEquiv,
      53             :                                 rtl_TextEncoding eDestEnc,
      54             :                             String *pNonConvertableChars = 0 );
      55             : 
      56             : public:
      57             :     static void Out_DocInfo( SvStream& rStrm, const String& rBaseURL,
      58             :             const ::com::sun::star::uno::Reference<
      59             :                 ::com::sun::star::document::XDocumentProperties>&,
      60             :             const sal_Char *pIndent,
      61             :             rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252,
      62             :             String *pNonConvertableChars = 0 );
      63             : 
      64             :     static void Out_FrameDescriptor(
      65             :         SvStream&, const String& rBaseURL, const com::sun::star::uno::Reference < com::sun::star::beans::XPropertySet >& xSet,
      66             :         rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252,
      67             :         String *pNonConvertableChars = 0 );
      68             : };
      69             : 
      70           0 : inline void SfxFrameHTMLWriter::OutMeta( SvStream& rStrm,
      71             :                             const sal_Char *pIndent, const sal_Char *pName,
      72             :                             const String& rContent, sal_Bool bHTTPEquiv,
      73             :                             rtl_TextEncoding eDestEnc,
      74             :                             String *pNonConvertableChars )
      75             : {
      76           0 :     String sTmp = rtl::OUString::createFromAscii(pName);
      77           0 :     OutMeta( rStrm, pIndent, sTmp, rContent, bHTTPEquiv, eDestEnc, pNonConvertableChars );
      78           0 : }
      79             : 
      80             : #endif
      81             : 
      82             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10