1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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_SW_SOURCE_FILTER_INC_FLTINI_HXX
20 #define INCLUDED_SW_SOURCE_FILTER_INC_FLTINI_HXX
22 #include <shellio.hxx>
30 // the special readers
32 class HTMLReader final
: public Reader
34 // we don't want to have the streams/storages open
35 virtual bool SetStrmStgPtr() override
;
36 virtual OUString
GetTemplateName(SwDoc
& rDoc
) const override
;
38 /// Parse FilterOptions passed to the importer.
39 void SetupFilterOptions();
41 OUString m_aNamespace
;
45 virtual ErrCode
Read(SwDoc
&, const OUString
& rBaseURL
, SwPaM
&, const OUString
&) override
;
48 class XMLReader final
: public Reader
50 virtual ErrCode
Read(SwDoc
&, const OUString
& rBaseURL
, SwPaM
&, const OUString
&) override
;
53 virtual SwReaderType
GetReaderType() override
;
57 // read the sections of the document, which is equal to the medium.
58 // returns the count of it
59 virtual size_t GetSectionList(SfxMedium
& rMedium
,
60 std::vector
<OUString
>& rStrings
) const override
;
63 // the special writers
65 void GetWW8Writer(std::u16string_view
, const OUString
&, WriterRef
&);
67 // Get size of fly (if 'automatic' in WW) and check if not too small
68 SW_DLLPUBLIC
void CalculateFlySize(SfxItemSet
& rFlySet
, const SwNode
& rAnchor
, SwTwips nPageWidth
);
72 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */