1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: fltini.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
33 #include <shellio.hxx>
34 #include <tools/color.hxx>
42 // die speziellen Reader
44 class HTMLReader
: public Reader
46 // wir wollen die Streams / Storages nicht geoeffnet haben
47 virtual int SetStrmStgPtr();
48 virtual ULONG
Read(SwDoc
&, const String
& rBaseURL
, SwPaM
&,const String
&);
49 virtual String
GetTemplateName() const;
54 class WW1Reader
: public Reader
56 virtual ULONG
Read(SwDoc
&, const String
& rBaseURL
, SwPaM
&,const String
&);
59 class XMLReader
: public Reader
61 virtual ULONG
Read(SwDoc
&, const String
& rBaseURL
, SwPaM
&,const String
&);
63 virtual int GetReaderType();
67 // read the sections of the document, which is equal to the medium.
68 // returns the count of it
69 virtual USHORT
GetSectionList( SfxMedium
& rMedium
,
70 SvStrings
& rStrings
) const;
73 // die speziellen Writer
75 void GetWW8Writer( const String
&, const String
&, WriterRef
& );
78 // JP 17.03.99 - 63049
79 // Umsetzen der LRSpaces im aktuell importierten Doc. Die Fremd-Filter
80 // liefern immer absolute Werte fuer die Ebenen einer NumRule. Wir
81 // verarbeiten jetzt aber relative Werte bezogen auf das LR-Space-Item.
82 // Das hat zur Folge, das bei allen Absaetzen die EInzuege der NumRule vom
83 // Absatz-Einzug abgezogen werden muss.
84 class SW_DLLPUBLIC SwRelNumRuleSpaces
86 SwNumRuleTbl
* pNumRuleTbl
; // Liste aller benannten NumRules
89 void SetNumLSpace( SwTxtNode
& rNd
, const SwNumRule
& rRule
);
92 SwRelNumRuleSpaces( SwDoc
& rDoc
, BOOL bNewDoc
);
93 ~SwRelNumRuleSpaces();
95 void SetNumRelSpaces( SwDoc
& rDoc
);
96 void SetOultineRelSpaces( const SwNodeIndex
& rStt
,
97 const SwNodeIndex
& rEnd
);
100 #define SW_SV_BRUSH_25 0
101 #define SW_SV_BRUSH_50 1
102 #define SW_SV_BRUSH_75 2
103 #define SW_SV_BRUSH_NULL 3
104 #define SW_SV_BRUSH_SOLID 4
105 #define SW_SV_BRUSH_INVALID 5
107 // Get size of fly (if 'automatic' in WW) and check if not too small
108 SW_DLLPUBLIC
void CalculateFlySize(SfxItemSet
& rFlySet
, const SwNodeIndex
& rAnchor
,