Bump version to 4.3-4
[LibreOffice.git] / sc / inc / rechead.hxx
blobdfd5cb4e9b70a66b1a5bec55132e1a2058cd7b33
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_SC_INC_RECHEAD_HXX
21 #define INCLUDED_SC_INC_RECHEAD_HXX
23 #include <tools/stream.hxx>
25 // ID's for files:
27 #define SCID_SIZES 0x4200
29 #define SCID_POOLS 0x4210
30 #define SCID_DOCPOOL 0x4211
31 #define SCID_STYLEPOOL 0x4212
32 #define SCID_NEWPOOLS 0x4213 // ID for SC 3.0a
33 #define SCID_EDITPOOL 0x4214
35 #define SCID_DOCUMENT 0x4220
36 #define SCID_DOCFLAGS 0x4221
37 #define SCID_TABLE 0x4222
38 #define SCID_DRAWING 0x4223
39 #define SCID_RANGENAME 0x4224
40 #define SCID_DBAREAS 0x4225
41 #define SCID_PIVOT 0x4226
42 #define SCID_CHARTS 0x4227
43 #define SCID_NUMFORMAT 0x4228
44 #define SCID_DOCOPTIONS 0x4229
45 #define SCID_VIEWOPTIONS 0x422a
46 #define SCID_PRINTSETUP 0x422b
47 #define SCID_CHARSET 0x422c
48 #define SCID_NEWDOCUMENT 0x422d // ID for SC 3.0a
49 #define SCID_DDELINKS 0x422e
50 #define SCID_AREALINKS 0x422f
51 #define SCID_CONDFORMATS 0x4230
52 #define SCID_VALIDATION 0x4231
53 #define SCID_COLNAMERANGES 0x4232
54 #define SCID_ROWNAMERANGES 0x4233
55 #define SCID_DETOPLIST 0x4234
56 #define SCID_CONSOLIDATA 0x4235
57 #define SCID_CHANGETRACK 0x4236
58 #define SCID_CHGVIEWSET 0x4237
59 #define SCID_LINKUPMODE 0x4238
60 #define SCID_DATAPILOT 0x4239
62 #define SCID_COLUMNS 0x4240
63 #define SCID_COLROWFLAGS 0x4241
64 #define SCID_TABOPTIONS 0x4242
65 #define SCID_TABLINK 0x4243
67 #define SCID_COLDATA 0x4250
68 #define SCID_COLNOTES 0x4251
69 #define SCID_COLATTRIB 0x4252
71 #define SCID_DRAWPOOL 0x4260
72 #define SCID_DRAWMODEL 0x4261
74 // file version
75 // if the high-byte is incremented, the document won't be opened by older SCs
76 #define SC_INITIAL_VERSION 0x0001
77 #define SC_FORMULA_LCLVER 0x0002 // formula with local version no.
79 #define SC_NEW_TOKEN_ARRAYS 0x0003 // new TokenArray format
80 #define SC_FORMULA_VALUES 0x0004 // values in formula cells
81 #define SC_FORMULA_VALUES2 0x0005 // values in formula cells
82 #define SC_DATABYTES 0x0006 // data bytes, small tables
83 #define SC_DATABYTES2 0x0007 // data bytes, small tables
84 #define SC_NUMFMT 0x0008 // number format of formula cell
85 #define SC_NEWIF 0x0009 // new coding of ocIf (komp.)
87 #define SC_RELATIVE_REFS 0x0010 // relative references
88 #define SC_SUBTOTAL_FLAG 0x0011 // bSubTotal of formula cell
89 #define SC_COLROWNAME_RANGEPAIR 0x0012 // ColRowNameRanges as ScRangePair
91 #define SC_31_EXPORT_VER 0x0012 // version for 3.1-export
92 // since 4.0
93 #define SC_32K_ROWS 0x0100 // 32000 rows - incompatibel
94 #define SC_FONTCHARSET 0x0101 // Font-CharSets have to be right
96 #define SC_40_EXPORT_VER 0x0101 // version for 4.0-Export
97 // since 5.0
98 #define SC_RECALC_MODE_BITS 0x0201 // TokenArray RecalcMode
99 #define SC_MATRIX_DOUBLEREF 0x0202 // DoubleRef implicit intersection
100 #define SC_VERSION_EDITPOOL 0x0203 // EditCells with EditPool
101 #define SC_SUBTOTAL_BUGFIX 0x0204 // bSubTotal of formula cell (true)
102 // since 5.2
103 #define SC_CONVERT_RECALC_ON_LOAD 0x0205 // CONVERT function recalculated on each load
104 #define SC_CURRENT_VERSION 0x0205
106 // all above SC_31_EXPORT_VER has to be queried during saving,
107 // because 3.1-export writes this version number.
109 // btw: 10 following 09 is not a counting error but an intentional gap,
110 // because it was not clear, how long the RelRefs development would take. :)
112 class SvStream;
114 // Header with size specification for multiple objects
116 class ScMultipleReadHeader
118 private:
119 SvStream& rStream;
120 sal_uInt8* pBuf;
121 SvMemoryStream* pMemStream;
122 sal_uLong nEndPos;
123 sal_uLong nEntryEnd;
124 sal_uLong nTotalEnd;
126 public:
127 ScMultipleReadHeader(SvStream& rNewStream);
128 ~ScMultipleReadHeader();
130 void StartEntry();
131 void EndEntry();
132 sal_uLong BytesLeft() const;
135 class ScMultipleWriteHeader
137 private:
138 SvStream& rStream;
139 SvMemoryStream aMemStream;
140 sal_uLong nDataPos;
141 sal_uInt32 nDataSize;
142 sal_uLong nEntryStart;
144 public:
145 ScMultipleWriteHeader(SvStream& rNewStream, sal_uInt32 nDefault = 0);
146 ~ScMultipleWriteHeader();
148 void StartEntry();
149 void EndEntry();
152 #endif
154 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */