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 .
22 #include <shellio.hxx>
30 // die speziellen Reader
32 class HTMLReader
: public Reader
34 // wir wollen die Streams / Storages nicht geoeffnet haben
35 virtual int SetStrmStgPtr();
36 virtual sal_uLong
Read(SwDoc
&, const String
& rBaseURL
, SwPaM
&,const String
&);
37 virtual String
GetTemplateName() const;
42 class WW1Reader
: public Reader
44 virtual sal_uLong
Read(SwDoc
&, const String
& rBaseURL
, SwPaM
&,const String
&);
47 class XMLReader
: public Reader
49 virtual sal_uLong
Read(SwDoc
&, const String
& rBaseURL
, SwPaM
&,const String
&);
51 virtual int GetReaderType();
55 // read the sections of the document, which is equal to the medium.
56 // returns the count of it
57 virtual size_t GetSectionList( SfxMedium
& rMedium
,
58 std::vector
<String
*>& rStrings
) const;
61 // die speziellen Writer
63 void GetWW8Writer( const String
&, const String
&, WriterRef
& );
66 // Umsetzen der LRSpaces im aktuell importierten Doc. Die Fremd-Filter
67 // liefern immer absolute Werte fuer die Ebenen einer NumRule. Wir
68 // verarbeiten jetzt aber relative Werte bezogen auf das LR-Space-Item.
69 // Das hat zur Folge, das bei allen Absaetzen die EInzuege der NumRule vom
70 // Absatz-Einzug abgezogen werden muss.
71 class SW_DLLPUBLIC SwRelNumRuleSpaces
73 SwNumRuleTbl
* pNumRuleTbl
; // Liste aller benannten NumRules
76 SwRelNumRuleSpaces( SwDoc
& rDoc
, sal_Bool bNewDoc
);
77 ~SwRelNumRuleSpaces();
80 #define SW_SV_BRUSH_25 0
81 #define SW_SV_BRUSH_50 1
82 #define SW_SV_BRUSH_75 2
83 #define SW_SV_BRUSH_NULL 3
84 #define SW_SV_BRUSH_SOLID 4
85 #define SW_SV_BRUSH_INVALID 5
87 // Get size of fly (if 'automatic' in WW) and check if not too small
88 SW_DLLPUBLIC
void CalculateFlySize(SfxItemSet
& rFlySet
, const SwNodeIndex
& rAnchor
,
93 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */