cid#1636693 COPY_INSTEAD_OF_MOVE
[LibreOffice.git] / include / sfx2 / frmhtmlw.hxx
blobe838787bc870d463093c5e339072295847c9715a
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef INCLUDED_SFX2_FRMHTMLW_HXX
20 #define INCLUDED_SFX2_FRMHTMLW_HXX
22 #include <sal/config.h>
23 #include <sfx2/dllapi.h>
24 #include <sal/types.h>
25 #include <rtl/ustring.hxx>
27 class SvStream;
29 namespace com::sun::star {
30 namespace document {
31 class XDocumentProperties;
35 namespace com::sun::star::beans { class XPropertySet; }
36 namespace com::sun::star::uno { template <class interface_type> class Reference; }
38 class SFX2_DLLPUBLIC SfxFrameHTMLWriter
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 );
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 );
55 static void Out_FrameDescriptor(
56 SvStream&, const OUString& rBaseURL, const css::uno::Reference < css::beans::XPropertySet >& xSet);
59 inline void SfxFrameHTMLWriter::OutMeta( SvStream& rStrm,
60 const char *pIndent, const char *pName,
61 std::u16string_view rContent, bool bHTTPEquiv,
62 OUString *pNonConvertableChars )
64 OUString sTmp = OUString::createFromAscii(pName);
65 OutMeta( rStrm, pIndent, sTmp, rContent, bHTTPEquiv, pNonConvertableChars );
68 #endif
70 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */