xref: /aoo41x/main/sc/source/filter/inc/biff.hxx (revision 38d50f7b)
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 
24 
25 #ifndef SC_BASE_HXX
26 #define SC_BASE_HXX
27 
28 #include <sal/config.h>
29 #include "filter.hxx"
30 #include "document.hxx"
31 #include "cell.hxx"
32 #include <tools/string.hxx>
33 
34 #include <tools/color.hxx>
35 #include "flttypes.hxx"
36 #include "ftools.hxx"
37 
38 // Stream wrapper class
39 class ScBiffReader
40 {
41     protected:
42     sal_uInt16 mnId;
43     sal_uInt16 mnLength;
44     sal_uInt32 mnOffset;
45     SvStream *mpStream;
46     bool mbEndOfFile;
47 
48     public:
49     ScBiffReader( SfxMedium& rMedium );
50     ~ScBiffReader();
recordsLeft()51     bool recordsLeft() { return mpStream && !mpStream->IsEof(); }
IsEndOfFile()52     bool IsEndOfFile() { return mbEndOfFile; }
SetEof(bool bValue)53     void SetEof( bool bValue ){ mbEndOfFile = bValue; }
54     bool nextRecord();
getId()55     sal_uInt16 getId() { return mnId; }
getLength()56     sal_uInt16 getLength() { return mnLength; }
getStream()57     SvStream& getStream() { return *mpStream; }
58 };
59 #endif
60 
61