Line data Source code
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 : // die speziellen Reader
31 :
32 118 : class HTMLReader: public Reader
33 : {
34 : // wir wollen die Streams / Storages nicht geoeffnet haben
35 : virtual bool SetStrmStgPtr() SAL_OVERRIDE;
36 : virtual sal_uLong Read(SwDoc &, const OUString& rBaseURL, SwPaM &, const OUString &) SAL_OVERRIDE;
37 : virtual OUString GetTemplateName() const SAL_OVERRIDE;
38 : public:
39 : HTMLReader();
40 : };
41 :
42 118 : class XMLReader : public Reader
43 : {
44 : virtual sal_uLong Read(SwDoc &, const OUString& rBaseURL, SwPaM &, const OUString &) SAL_OVERRIDE;
45 : public:
46 : virtual int GetReaderType() SAL_OVERRIDE;
47 :
48 : XMLReader();
49 :
50 : // read the sections of the document, which is equal to the medium.
51 : // returns the count of it
52 : virtual size_t GetSectionList( SfxMedium& rMedium,
53 : std::vector<OUString*>& rStrings ) const SAL_OVERRIDE;
54 : };
55 :
56 : // die speziellen Writer
57 :
58 : void GetWW8Writer( const OUString&, const OUString&, WriterRef& );
59 :
60 : // Umsetzen der LRSpaces im aktuell importierten Doc. Die Fremd-Filter
61 : // liefern immer absolute Werte fuer die Ebenen einer NumRule. Wir
62 : // verarbeiten jetzt aber relative Werte bezogen auf das LR-Space-Item.
63 : // Das hat zur Folge, das bei allen Absaetzen die EInzuege der NumRule vom
64 : // Absatz-Einzug abgezogen werden muss.
65 : class SW_DLLPUBLIC SwRelNumRuleSpaces
66 : {
67 : SwNumRuleTable* pNumRuleTable; // Liste aller benannten NumRules
68 :
69 : public:
70 : SwRelNumRuleSpaces( SwDoc& rDoc, bool bNewDoc );
71 : ~SwRelNumRuleSpaces();
72 : };
73 :
74 :
75 : // Get size of fly (if 'automatic' in WW) and check if not too small
76 : SW_DLLPUBLIC void CalculateFlySize(SfxItemSet& rFlySet, const SwNodeIndex& rAnchor,
77 : SwTwips nPageWidth);
78 :
79 : #endif
80 :
81 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|