Version 7.5.1.1, tag libreoffice-7.5.1.1
[LibreOffice.git] / sc / source / filter / inc / root.hxx
blob0e4697dcd364351ea17aab5690aa5a2b665d0428
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 #pragma once
22 #include "flttypes.hxx"
23 #include <memory>
25 class ScRangeName;
27 class RangeNameBufferWK3;
28 class SharedFormulaBuffer;
29 class ExtNameBuff;
30 class ExtSheetBuffer;
31 class ExcelToSc;
33 class XclImpColRowSettings;
34 class XclImpAutoFilterBuffer;
35 class XclExpChTrTabId;
36 class XclExpUserBViewList;
38 class XclImpRoot;
39 class XclExpRoot;
41 // Excel Imp~/Exp~ -
43 struct RootData // -> incarnation in each case in the ImportExcel object!
45 BiffTyp eDateiTyp; // fine differentiation
46 std::unique_ptr<ExtSheetBuffer> pExtSheetBuff;
47 std::unique_ptr<SharedFormulaBuffer> pShrfmlaBuff;
48 std::unique_ptr<ExtNameBuff> pExtNameBuff;
49 ExcelToSc* pFmlaConverter;
50 XclImpColRowSettings* pColRowBuff; // col/row settings 1 table
52 // Biff8
53 std::unique_ptr<XclImpAutoFilterBuffer> pAutoFilterBuffer; // ranges for autofilter and advanced filter
55 // extensions for export
56 XclExpChTrTabId* pTabId; // pointer to rec list, do not destroy
57 XclExpUserBViewList* pUserBViewList; // pointer to rec list, do not destroy
59 XclImpRoot* pIR;
60 XclExpRoot* pER;
62 RootData(); // -> exctools.cxx
63 ~RootData(); // -> exctools.cxx
66 class ExcRoot
68 protected:
69 RootData* pExcRoot;
70 ExcRoot( RootData* pNexExcRoot ) : pExcRoot( pNexExcRoot ) {}
71 ExcRoot( const ExcRoot& rCopy ) : pExcRoot( rCopy.pExcRoot ) {}
74 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */