1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
22 #include <tools/stream.hxx>
27 #define SCID_SIZES 0x4200
30 #define SC_31_EXPORT_VER 0x0012 // version for 3.1-export
32 #define SC_FONTCHARSET 0x0101 // Font-CharSets have to be right
35 #define SC_MATRIX_DOUBLEREF 0x0202 // DoubleRef implicit intersection
37 #define SC_CURRENT_VERSION 0x0205
39 // all above SC_31_EXPORT_VER has to be queried during saving,
40 // because 3.1-export writes this version number.
42 // btw: 10 following 09 is not a counting error but an intentional gap,
43 // because it was not clear, how long the RelRefs development would take. :)
45 // Header with size specification for multiple objects
47 class ScMultipleReadHeader
51 std::unique_ptr
<sal_uInt8
[]>
53 std::unique_ptr
<SvMemoryStream
>
60 ScMultipleReadHeader(SvStream
& rNewStream
);
61 ~ScMultipleReadHeader();
65 sal_uInt64
BytesLeft() const;
68 class ScMultipleWriteHeader
72 SvMemoryStream aMemStream
;
75 sal_uInt64 nEntryStart
;
78 ScMultipleWriteHeader(SvStream
& rNewStream
);
79 ~ScMultipleWriteHeader();
85 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */