LibreOffice Module sc (master)  1
root.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
19 
20 #pragma once
21 
22 #include "flttypes.hxx"
23 #include <memory>
24 
25 class ScRangeName;
26 
27 class RangeNameBufferWK3;
29 class ExtNameBuff;
30 class ExtSheetBuffer;
31 class ExcelToSc;
32 
35 class ScRangeListTabs;
36 
37 class XclExpChTrTabId;
39 
40 class XclImpRoot;
41 class XclExpRoot;
42 
43 // Excel Imp~/Exp~ -
44 
45 struct RootData // -> incarnation in each case in the ImportExcel object!
46 {
47  BiffTyp eDateiTyp; // fine differentiation
48  std::unique_ptr<ExtSheetBuffer> pExtSheetBuff;
49  std::unique_ptr<SharedFormulaBuffer> pShrfmlaBuff;
50  std::unique_ptr<ExtNameBuff> pExtNameBuff;
52  XclImpColRowSettings* pColRowBuff; // col/row settings 1 table
53 
54  // Biff8
55  std::unique_ptr<XclImpAutoFilterBuffer> pAutoFilterBuffer; // ranges for autofilter and advanced filter
56  std::unique_ptr<ScRangeListTabs> pPrintRanges;
57  std::unique_ptr<ScRangeListTabs> pPrintTitles;
58 
59  // extensions for export
60  XclExpChTrTabId* pTabId; // pointer to rec list, do not destroy
61  XclExpUserBViewList* pUserBViewList; // pointer to rec list, do not destroy
62 
65 
66  RootData(); // -> exctools.cxx
67  ~RootData(); // -> exctools.cxx
68 };
69 
70 class ExcRoot
71 {
72 protected:
74  ExcRoot( RootData* pNexExcRoot ) : pExcRoot( pNexExcRoot ) {}
75  ExcRoot( const ExcRoot& rCopy ) : pExcRoot( rCopy.pExcRoot ) {}
76 };
77 
78 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< SharedFormulaBuffer > pShrfmlaBuff
Definition: root.hxx:49
std::unique_ptr< ScRangeListTabs > pPrintRanges
Definition: root.hxx:56
BiffTyp
Definition: flttypes.hxx:22
Access to global data from other classes.
Definition: xeroot.hxx:112
XclExpChTrTabId * pTabId
Definition: root.hxx:60
XclExpUserBViewList * pUserBViewList
Definition: root.hxx:61
std::unique_ptr< ScRangeListTabs > pPrintTitles
Definition: root.hxx:57
std::unique_ptr< XclImpAutoFilterBuffer > pAutoFilterBuffer
Definition: root.hxx:55
~RootData()
Definition: exctools.cxx:52
Definition: root.hxx:70
RootData * pExcRoot
Definition: root.hxx:73
XclExpRoot * pER
Definition: root.hxx:64
std::unique_ptr< ExtNameBuff > pExtNameBuff
Definition: root.hxx:50
ExcRoot(RootData *pNexExcRoot)
Definition: root.hxx:74
XclImpRoot * pIR
Definition: root.hxx:63
Store and manage shared formula tokens.
Definition: namebuff.hxx:59
ExcelToSc * pFmlaConverter
Definition: root.hxx:51
RootData()
Definition: exctools.cxx:36
BiffTyp eDateiTyp
Definition: root.hxx:47
XclImpColRowSettings * pColRowBuff
Definition: root.hxx:52
Access to global data from other classes.
Definition: xiroot.hxx:125
std::unique_ptr< ExtSheetBuffer > pExtSheetBuff
Definition: root.hxx:48
ExcRoot(const ExcRoot &rCopy)
Definition: root.hxx:75