Coverage Report

Created: 2026-11-06 11:29

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/include/sfx2/frmhtmlw.hxx
Line
Count
Source
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
#include <rtl/ustring.hxx>
26
27
class SvStream;
28
29
namespace com::sun::star {
30
    namespace document {
31
        class XDocumentProperties;
32
    }
33
}
34
35
namespace com::sun::star::beans { class XPropertySet; }
36
namespace com::sun::star::uno { template <class interface_type> class Reference; }
37
38
class SFX2_DLLPUBLIC SfxFrameHTMLWriter
39
{
40
    SAL_DLLPRIVATE static void OutMeta( SvStream& rStrm,
41
                                const char *pIndent, std::u16string_view rName,
42
                                std::u16string_view rContent, bool bHTTPEquiv,
43
                                OUString *pNonConvertableChars = nullptr );
44
    SAL_DLLPRIVATE inline static void OutMeta( SvStream& rStrm,
45
                                const char *pIndent, const char *pName,
46
                                std::u16string_view rContent, bool bHTTPEquiv,
47
                                OUString *pNonConvertableChars = nullptr );
48
49
public:
50
    static void Out_DocInfo( SvStream& rStrm, const OUString& rBaseURL,
51
            const css::uno::Reference< css::document::XDocumentProperties>&,
52
            const char *pIndent,
53
            OUString *pNonConvertableChars = nullptr );
54
55
    static void Out_FrameDescriptor(
56
        SvStream&, const OUString& rBaseURL, const css::uno::Reference < css::beans::XPropertySet >& xSet);
57
};
58
59
inline void SfxFrameHTMLWriter::OutMeta( SvStream& rStrm,
60
                            const char *pIndent, const char *pName,
61
                            std::u16string_view rContent, bool bHTTPEquiv,
62
                            OUString *pNonConvertableChars )
63
0
{
64
0
    OUString sTmp = OUString::createFromAscii(pName);
65
0
    OutMeta( rStrm, pIndent, sTmp, rContent, bHTTPEquiv, pNonConvertableChars );
66
0
}
67
68
#endif
69
70
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */