LibreOffice Module sw (master)
1
sw
source
filter
inc
fltini.hxx
Go to the documentation of this file.
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_SW_SOURCE_FILTER_INC_FLTINI_HXX
20
#define INCLUDED_SW_SOURCE_FILTER_INC_FLTINI_HXX
21
22
#include <
shellio.hxx
>
23
24
class
SwNumRuleTable
;
25
class
SwDoc
;
26
class
SwTextNode
;
27
class
SwNumRule
;
28
class
SwNodeIndex
;
29
30
// the special readers
31
32
class
HTMLReader
final :
public
Reader
33
{
34
// we don't want to have the streams/storages open
35
virtual
bool
SetStrmStgPtr
()
override
;
36
virtual
OUString
GetTemplateName
(
SwDoc
& rDoc)
const override
;
37
39
void
SetupFilterOptions
();
40
41
OUString
m_aNamespace
;
42
43
public
:
44
HTMLReader
();
45
virtual
ErrCode
Read
(
SwDoc
&,
const
OUString& rBaseURL,
SwPaM
&,
const
OUString&)
override
;
46
};
47
48
class
XMLReader
final :
public
Reader
49
{
50
virtual
ErrCode
Read
(
SwDoc
&,
const
OUString& rBaseURL,
SwPaM
&,
const
OUString&)
override
;
51
52
public
:
53
virtual
SwReaderType
GetReaderType
()
override
;
54
55
XMLReader
();
56
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
;
61
};
62
63
// the special writers
64
65
void
GetWW8Writer
(std::u16string_view,
const
OUString&,
WriterRef
&);
66
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);
69
70
#endif
71
72
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ErrCode
HTMLReader
Definition:
fltini.hxx:33
HTMLReader::Read
virtual ErrCode Read(SwDoc &, const OUString &rBaseURL, SwPaM &, const OUString &) override
Definition:
swhtml.cxx:206
HTMLReader::m_aNamespace
OUString m_aNamespace
Definition:
fltini.hxx:41
HTMLReader::HTMLReader
HTMLReader()
Definition:
swhtml.cxx:161
HTMLReader::SetStrmStgPtr
virtual bool SetStrmStgPtr() override
Definition:
swhtml.cxx:192
HTMLReader::SetupFilterOptions
void SetupFilterOptions()
Parse FilterOptions passed to the importer.
Definition:
swhtml.cxx:5591
HTMLReader::GetTemplateName
virtual OUString GetTemplateName(SwDoc &rDoc) const override
Definition:
swhtml.cxx:166
Reader
Definition:
shellio.hxx:202
SfxItemSet
SfxMedium
SwDoc
Definition:
doc.hxx:197
SwNodeIndex
Marks a node in the document model.
Definition:
ndindex.hxx:31
SwNode
Base class of the Writer document model elements.
Definition:
node.hxx:98
SwNumRuleTable
Definition:
docary.hxx:205
SwNumRule
Definition:
numrule.hxx:94
SwPaM
PaM is Point and Mark: a selection of the document model.
Definition:
pam.hxx:188
SwTextNode
SwTextNode is a paragraph in the document model.
Definition:
ndtxt.hxx:112
XMLReader
Definition:
fltini.hxx:49
XMLReader::GetReaderType
virtual SwReaderType GetReaderType() override
Definition:
swxml.cxx:124
XMLReader::Read
virtual ErrCode Read(SwDoc &, const OUString &rBaseURL, SwPaM &, const OUString &) override
Definition:
swxml.cxx:467
XMLReader::XMLReader
XMLReader()
Definition:
swxml.cxx:120
XMLReader::GetSectionList
virtual size_t GetSectionList(SfxMedium &rMedium, std::vector< OUString > &rStrings) const override
Definition:
swxml.cxx:971
tools::SvRef
CalculateFlySize
SW_DLLPUBLIC void CalculateFlySize(SfxItemSet &rFlySet, const SwNode &rAnchor, SwTwips nPageWidth)
Definition:
fltini.cxx:257
GetWW8Writer
void GetWW8Writer(std::u16string_view, const OUString &, WriterRef &)
Definition:
fltini.cxx:670
shellio.hxx
SwReaderType
SwReaderType
Definition:
shellio.hxx:186
SW_DLLPUBLIC
#define SW_DLLPUBLIC
Definition:
swdllapi.h:28
SwTwips
tools::Long SwTwips
Definition:
swtypes.hxx:51
Generated on Sun Jul 30 2023 04:29:17 for LibreOffice Module sw (master) by
1.9.3