xref: /aoo4110/main/sc/source/filter/inc/eeimport.hxx (revision b1cdbd2c)
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 SC_EEIMPORT_HXX
24 #define SC_EEIMPORT_HXX
25 
26 #include "global.hxx"
27 #include "address.hxx"
28 #include "filter.hxx"
29 #include "scdllapi.h"
30 
31 class ScDocument;
32 class ScEEParser;
33 class ScTabEditEngine;
34 class SvStream;
35 class Table;
36 
37 struct ScEEParseEntry;
38 
39 class ScEEImport : public ScEEAbsImport
40 {
41 protected:
42     ScRange             maRange;
43     ScDocument*         mpDoc;
44     ScEEParser*         mpParser;
45     ScTabEditEngine*    mpEngine;
46     Table*              mpRowHeights;
47 
48     sal_Bool                GraphicSize( SCCOL nCol, SCROW nRow, SCTAB nTab,
49                                      ScEEParseEntry* );
50     void                InsertGraphic( SCCOL nCol, SCROW nRow, SCTAB nTab,
51                                        ScEEParseEntry* );
52 public:
53     ScEEImport( ScDocument* pDoc, const ScRange& rRange );
54     virtual ~ScEEImport();
55 
56     virtual sal_uLong    Read( SvStream& rStream, const String& rBaseURL );
GetRange()57     virtual ScRange  GetRange() { return maRange; }
58     virtual void     WriteToDocument( sal_Bool bSizeColsRows = sal_False,
59                                       double nOutputFactor = 1.0,
60                                       SvNumberFormatter* pFormatter = NULL,
61                                       bool bConvertDate = true );
62 };
63 
64 #endif
65