Version 6.4.0.3, tag libreoffice-6.4.0.3
[LibreOffice.git] / sc / source / filter / inc / root.hxx
blob29c1f9bc3bfe8544ad10a94b0fcb3223111cfe12
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_SOURCE_FILTER_INC_ROOT_HXX
21 #define INCLUDED_SC_SOURCE_FILTER_INC_ROOT_HXX
23 #include <address.hxx>
24 #include "flttypes.hxx"
25 #include "lotattr.hxx"
26 #include "lotfntbf.hxx"
27 #include "lotrange.hxx"
28 #include <memory>
30 class ScRangeName;
32 class RangeNameBufferWK3;
33 class SharedFormulaBuffer;
34 class ExtNameBuff;
35 class ExtSheetBuffer;
36 class ExcelToSc;
38 class XclImpColRowSettings;
39 class XclImpAutoFilterBuffer;
40 class ScRangeListTabs;
42 class XclExpChTrTabId;
43 class XclExpUserBViewList;
45 class XclImpRoot;
46 class XclExpRoot;
48 // Excel Imp~/Exp~ -
50 struct RootData // -> incarnation in each case in the ImportExcel object!
52 BiffTyp eDateiTyp; // fine differentiation
53 std::unique_ptr<ExtSheetBuffer> pExtSheetBuff;
54 std::unique_ptr<SharedFormulaBuffer> pShrfmlaBuff;
55 std::unique_ptr<ExtNameBuff> pExtNameBuff;
56 ExcelToSc* pFmlaConverter;
57 XclImpColRowSettings* pColRowBuff; // col/row settings 1 table
59 // Biff8
60 std::unique_ptr<XclImpAutoFilterBuffer> pAutoFilterBuffer; // ranges for autofilter and advanced filter
61 std::unique_ptr<ScRangeListTabs> pPrintRanges;
62 std::unique_ptr<ScRangeListTabs> pPrintTitles;
64 // extensions for export
65 XclExpChTrTabId* pTabId; // pointer to rec list, do not destroy
66 XclExpUserBViewList* pUserBViewList; // pointer to rec list, do not destroy
68 XclImpRoot* pIR;
69 XclExpRoot* pER;
71 RootData(); // -> exctools.cxx
72 ~RootData(); // -> exctools.cxx
75 class ExcRoot
77 protected:
78 RootData* pExcRoot;
79 ExcRoot( RootData* pNexExcRoot ) : pExcRoot( pNexExcRoot ) {}
80 ExcRoot( const ExcRoot& rCopy ) : pExcRoot( rCopy.pExcRoot ) {}
83 // Lotus Imp~/Exp~ -
85 struct LOTUS_ROOT
87 ScDocument* pDoc;
88 LotusRangeList maRangeNames;
89 rtl_TextEncoding const eCharsetQ;
90 Lotus123Typ eFirstType;
91 Lotus123Typ eActType;
92 ScRange aActRange;
93 std::unique_ptr<RangeNameBufferWK3> pRngNmBffWK3;
94 LotusFontBuffer maFontBuff;
95 LotAttrTable maAttrTable;
97 LOTUS_ROOT( ScDocument* pDocP, rtl_TextEncoding eQ );
98 ~LOTUS_ROOT();
101 #endif
103 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */