fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / include / sfx2 / frmhtmlw.hxx
blob3abdfbee3107b1f8b8c11caf5ec642a682e9b7d0
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 _FRMHTMLW_HXX
20 #define _FRMHTMLW_HXX
22 #include "sal/config.h"
23 #include "sfx2/dllapi.h"
24 #include "sal/types.h"
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>
34 class SfxFrame;
36 namespace com { namespace sun { namespace star {
37 namespace document {
38 class XDocumentProperties;
40 } } }
42 class SFX2_DLLPUBLIC SfxFrameHTMLWriter
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 );
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 );
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 );
70 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 )
76 String sTmp = OUString::createFromAscii(pName);
77 OutMeta( rStrm, pIndent, sTmp, rContent, bHTTPEquiv, eDestEnc, pNonConvertableChars );
80 #endif
82 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */