merge the formfield patch from ooo-build
[ooovba.git] / svtools / source / numbers / numhead.hxx
blob706fd68f89c738617db6391d2ba68e621e1b78af
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: numhead.hxx,v $
10 * $Revision: 1.4 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef NF_NUMHEAD_HXX
32 #define NF_NUMHEAD_HXX
34 #include <tools/stream.hxx>
36 // -----------------------------------------------------------------------
38 // "Automatischer" Record-Header mit Groessenangabe
40 /* wird fuer SvNumberFormatter nicht gebraucht
41 class SvNumReadHeader
43 private:
44 SvStream& rStream;
45 ULONG nDataEnd;
47 public:
48 SvNumReadHeader(SvStream& rNewStream);
49 ~SvNumReadHeader();
51 ULONG BytesLeft() const;
54 class SvNumWriteHeader
56 private:
57 SvStream& rStream;
58 ULONG nDataPos;
59 ULONG nDataSize;
61 public:
62 SvNumWriteHeader(SvStream& rNewStream, ULONG nDefault = 0);
63 ~SvNumWriteHeader();
68 // Header mit Groessenangaben fuer mehrere Objekte
70 class ImpSvNumMultipleReadHeader
72 private:
73 SvStream& rStream;
74 char* pBuf;
75 SvMemoryStream* pMemStream;
76 ULONG nEndPos;
77 ULONG nEntryEnd;
79 public:
80 ImpSvNumMultipleReadHeader(SvStream& rNewStream);
81 ~ImpSvNumMultipleReadHeader();
83 void StartEntry();
84 void EndEntry();
85 ULONG BytesLeft() const;
87 static void Skip( SvStream& ); // komplett ueberspringen
90 class ImpSvNumMultipleWriteHeader
92 private:
93 SvStream& rStream;
94 SvMemoryStream aMemStream;
95 ULONG nDataPos;
96 sal_uInt32 nDataSize;
97 ULONG nEntryStart;
99 public:
100 ImpSvNumMultipleWriteHeader(SvStream& rNewStream, ULONG nDefault = 0);
101 ~ImpSvNumMultipleWriteHeader();
103 void StartEntry();
104 void EndEntry();
107 #endif