Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : : #ifndef _FLTINI_HXX
29 : : #define _FLTINI_HXX
30 : :
31 : : #include <shellio.hxx>
32 : :
33 : : class SwNumRuleTbl;
34 : : class SwDoc;
35 : : class SwTxtNode;
36 : : class SwNumRule;
37 : : class SwNodeIndex;
38 : :
39 : : // die speziellen Reader
40 : :
41 [ - + ]: 146 : class HTMLReader: public Reader
42 : : {
43 : : // wir wollen die Streams / Storages nicht geoeffnet haben
44 : : virtual int SetStrmStgPtr();
45 : : virtual sal_uLong Read(SwDoc &, const String& rBaseURL, SwPaM &,const String &);
46 : : virtual String GetTemplateName() const;
47 : : public:
48 : : HTMLReader();
49 : : };
50 : :
51 [ - + ]: 219 : class WW1Reader : public Reader
52 : : {
53 : : virtual sal_uLong Read(SwDoc &, const String& rBaseURL, SwPaM &,const String &);
54 : : };
55 : :
56 [ - + ]: 146 : class XMLReader : public Reader
57 : : {
58 : : virtual sal_uLong Read(SwDoc &, const String& rBaseURL, SwPaM &,const String &);
59 : : public:
60 : : virtual int GetReaderType();
61 : :
62 : : XMLReader();
63 : :
64 : : // read the sections of the document, which is equal to the medium.
65 : : // returns the count of it
66 : : virtual size_t GetSectionList( SfxMedium& rMedium,
67 : : std::vector<String*>& rStrings ) const;
68 : : };
69 : :
70 : : // die speziellen Writer
71 : :
72 : : void GetWW8Writer( const String&, const String&, WriterRef& );
73 : :
74 : :
75 : : // Umsetzen der LRSpaces im aktuell importierten Doc. Die Fremd-Filter
76 : : // liefern immer absolute Werte fuer die Ebenen einer NumRule. Wir
77 : : // verarbeiten jetzt aber relative Werte bezogen auf das LR-Space-Item.
78 : : // Das hat zur Folge, das bei allen Absaetzen die EInzuege der NumRule vom
79 : : // Absatz-Einzug abgezogen werden muss.
80 : : class SW_DLLPUBLIC SwRelNumRuleSpaces
81 : : {
82 : : SwNumRuleTbl* pNumRuleTbl; // Liste aller benannten NumRules
83 : : sal_Bool bNewDoc;
84 : :
85 : : void SetNumLSpace( SwTxtNode& rNd, const SwNumRule& rRule );
86 : :
87 : : public:
88 : : SwRelNumRuleSpaces( SwDoc& rDoc, sal_Bool bNewDoc );
89 : : ~SwRelNumRuleSpaces();
90 : :
91 : : void SetNumRelSpaces( SwDoc& rDoc );
92 : : void SetOultineRelSpaces( const SwNodeIndex& rStt,
93 : : const SwNodeIndex& rEnd );
94 : : };
95 : :
96 : : #define SW_SV_BRUSH_25 0
97 : : #define SW_SV_BRUSH_50 1
98 : : #define SW_SV_BRUSH_75 2
99 : : #define SW_SV_BRUSH_NULL 3
100 : : #define SW_SV_BRUSH_SOLID 4
101 : : #define SW_SV_BRUSH_INVALID 5
102 : :
103 : : // Get size of fly (if 'automatic' in WW) and check if not too small
104 : : SW_DLLPUBLIC void CalculateFlySize(SfxItemSet& rFlySet, const SwNodeIndex& rAnchor,
105 : : SwTwips nPageWidth);
106 : :
107 : : #endif
108 : :
109 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|