lok: calc - send other views our selection in their co-ordinates.
[LibreOffice.git] / include / sfx2 / frmhtmlw.hxx
blob4b827a7c97ad3ad21a184f0004088b4bfb1b8ae1
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 { namespace sun { namespace star {
30 namespace document {
31 class XDocumentProperties;
33 } } }
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 sal_Char *pIndent, const OUString& rName,
42 const OUString& rContent, bool bHTTPEquiv,
43 rtl_TextEncoding eDestEnc,
44 OUString *pNonConvertableChars = nullptr );
45 SAL_DLLPRIVATE inline static void OutMeta( SvStream& rStrm,
46 const sal_Char *pIndent, const sal_Char *pName,
47 const OUString& rContent, bool bHTTPEquiv,
48 rtl_TextEncoding eDestEnc,
49 OUString *pNonConvertableChars = nullptr );
51 public:
52 static void Out_DocInfo( SvStream& rStrm, const OUString& rBaseURL,
53 const css::uno::Reference< css::document::XDocumentProperties>&,
54 const sal_Char *pIndent,
55 rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252,
56 OUString *pNonConvertableChars = nullptr );
58 static void Out_FrameDescriptor(
59 SvStream&, const OUString& rBaseURL, const css::uno::Reference < css::beans::XPropertySet >& xSet,
60 rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252,
61 OUString *pNonConvertableChars = nullptr );
64 inline void SfxFrameHTMLWriter::OutMeta( SvStream& rStrm,
65 const sal_Char *pIndent, const sal_Char *pName,
66 const OUString& rContent, bool bHTTPEquiv,
67 rtl_TextEncoding eDestEnc,
68 OUString *pNonConvertableChars )
70 OUString sTmp = OUString::createFromAscii(pName);
71 OutMeta( rStrm, pIndent, sTmp, rContent, bHTTPEquiv, eDestEnc, pNonConvertableChars );
74 #endif
76 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */