1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 #ifndef _FLTINI_HXX 24 #define _FLTINI_HXX 25 26 #include <shellio.hxx> 27 #include <tools/color.hxx> 28 29 class SwNumRuleTbl; 30 class SwDoc; 31 class SwTxtNode; 32 class SwNumRule; 33 class SwNodeIndex; 34 35 // die speziellen Reader 36 37 class HTMLReader: public Reader 38 { 39 // wir wollen die Streams / Storages nicht geoeffnet haben 40 virtual int SetStrmStgPtr(); 41 virtual sal_uLong Read(SwDoc &, const String& rBaseURL, SwPaM &,const String &); 42 virtual String GetTemplateName() const; 43 public: 44 HTMLReader(); 45 }; 46 47 class WW1Reader : public Reader 48 { 49 virtual sal_uLong Read(SwDoc &, const String& rBaseURL, SwPaM &,const String &); 50 }; 51 52 class XMLReader : public Reader 53 { 54 virtual sal_uLong Read(SwDoc &, const String& rBaseURL, SwPaM &,const String &); 55 public: 56 virtual int GetReaderType(); 57 58 XMLReader(); 59 60 // read the sections of the document, which is equal to the medium. 61 // returns the count of it 62 virtual sal_uInt16 GetSectionList( SfxMedium& rMedium, 63 SvStrings& rStrings ) const; 64 }; 65 66 // die speziellen Writer 67 68 void GetWW8Writer( const String&, const String&, WriterRef& ); 69 70 71 // JP 17.03.99 - 63049 72 // Umsetzen der LRSpaces im aktuell importierten Doc. Die Fremd-Filter 73 // liefern immer absolute Werte fuer die Ebenen einer NumRule. Wir 74 // verarbeiten jetzt aber relative Werte bezogen auf das LR-Space-Item. 75 // Das hat zur Folge, das bei allen Absaetzen die EInzuege der NumRule vom 76 // Absatz-Einzug abgezogen werden muss. 77 class SW_DLLPUBLIC SwRelNumRuleSpaces 78 { 79 SwNumRuleTbl* pNumRuleTbl; // Liste aller benannten NumRules 80 sal_Bool bNewDoc; 81 82 void SetNumLSpace( SwTxtNode& rNd, const SwNumRule& rRule ); 83 84 public: 85 SwRelNumRuleSpaces( SwDoc& rDoc, sal_Bool bNewDoc ); 86 ~SwRelNumRuleSpaces(); 87 88 void SetNumRelSpaces( SwDoc& rDoc ); 89 void SetOultineRelSpaces( const SwNodeIndex& rStt, 90 const SwNodeIndex& rEnd ); 91 }; 92 93 #define SW_SV_BRUSH_25 0 94 #define SW_SV_BRUSH_50 1 95 #define SW_SV_BRUSH_75 2 96 #define SW_SV_BRUSH_NULL 3 97 #define SW_SV_BRUSH_SOLID 4 98 #define SW_SV_BRUSH_INVALID 5 99 100 // Get size of fly (if 'automatic' in WW) and check if not too small 101 SW_DLLPUBLIC void CalculateFlySize(SfxItemSet& rFlySet, const SwNodeIndex& rAnchor, 102 SwTwips nPageWidth); 103 104 #endif 105