xref: /AOO41X/main/svl/source/numbers/numhead.hxx (revision 39a19a47feaddbaa21988da8c7bf801707fd3d48)
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 #ifndef NF_NUMHEAD_HXX
25 #define NF_NUMHEAD_HXX
26 
27 #include <tools/stream.hxx>
28 
29 // -----------------------------------------------------------------------
30 
31         //  "Automatischer" Record-Header mit Groessenangabe
32 
33 /*                      wird fuer SvNumberFormatter nicht gebraucht
34 class SvNumReadHeader
35 {
36 private:
37     SvStream&   rStream;
38     sal_uLong       nDataEnd;
39 
40 public:
41     SvNumReadHeader(SvStream& rNewStream);
42     ~SvNumReadHeader();
43 
44     sal_uLong   BytesLeft() const;
45 };
46 
47 class SvNumWriteHeader
48 {
49 private:
50     SvStream&   rStream;
51     sal_uLong       nDataPos;
52     sal_uLong       nDataSize;
53 
54 public:
55     SvNumWriteHeader(SvStream& rNewStream, sal_uLong nDefault = 0);
56     ~SvNumWriteHeader();
57 };
58 
59 */
60 
61         //  Header mit Groessenangaben fuer mehrere Objekte
62 
63 class ImpSvNumMultipleReadHeader
64 {
65 private:
66     SvStream&       rStream;
67     char*           pBuf;
68     SvMemoryStream* pMemStream;
69     sal_uLong           nEndPos;
70     sal_uLong           nEntryEnd;
71 
72 public:
73     ImpSvNumMultipleReadHeader(SvStream& rNewStream);
74     ~ImpSvNumMultipleReadHeader();
75 
76     void    StartEntry();
77     void    EndEntry();
78     sal_uLong   BytesLeft() const;
79 
80     static void Skip( SvStream& );      // komplett ueberspringen
81 };
82 
83 class ImpSvNumMultipleWriteHeader
84 {
85 private:
86     SvStream&       rStream;
87     SvMemoryStream  aMemStream;
88     sal_uLong           nDataPos;
89     sal_uInt32      nDataSize;
90     sal_uLong           nEntryStart;
91 
92 public:
93     ImpSvNumMultipleWriteHeader(SvStream& rNewStream, sal_uLong nDefault = 0);
94     ~ImpSvNumMultipleWriteHeader();
95 
96     void    StartEntry();
97     void    EndEntry();
98 };
99 
100 #endif
101 
102 
103