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 #ifndef INCLUDED_SC_SOURCE_FILTER_INC_ROOT_HXX
21 #define INCLUDED_SC_SOURCE_FILTER_INC_ROOT_HXX
22 
23 #include "flttypes.hxx"
24 #include <memory>
25 
26 class ScRangeName;
27 
28 class RangeNameBufferWK3;
30 class ExtNameBuff;
31 class ExtSheetBuffer;
32 class ExcelToSc;
33 
36 class ScRangeListTabs;
37 
38 class XclExpChTrTabId;
40 
41 class XclImpRoot;
42 class XclExpRoot;
43 
44 // Excel Imp~/Exp~ -
45 
46 struct RootData // -> incarnation in each case in the ImportExcel object!
47 {
48  BiffTyp eDateiTyp; // fine differentiation
49  std::unique_ptr<ExtSheetBuffer> pExtSheetBuff;
50  std::unique_ptr<SharedFormulaBuffer> pShrfmlaBuff;
51  std::unique_ptr<ExtNameBuff> pExtNameBuff;
53  XclImpColRowSettings* pColRowBuff; // col/row settings 1 table
54 
55  // Biff8
56  std::unique_ptr<XclImpAutoFilterBuffer> pAutoFilterBuffer; // ranges for autofilter and advanced filter
57  std::unique_ptr<ScRangeListTabs> pPrintRanges;
58  std::unique_ptr<ScRangeListTabs> pPrintTitles;
59 
60  // extensions for export
61  XclExpChTrTabId* pTabId; // pointer to rec list, do not destroy
62  XclExpUserBViewList* pUserBViewList; // pointer to rec list, do not destroy
63 
66 
67  RootData(); // -> exctools.cxx
68  ~RootData(); // -> exctools.cxx
69 };
70 
71 class ExcRoot
72 {
73 protected:
75  ExcRoot( RootData* pNexExcRoot ) : pExcRoot( pNexExcRoot ) {}
76  ExcRoot( const ExcRoot& rCopy ) : pExcRoot( rCopy.pExcRoot ) {}
77 };
78 
79 #endif
80 
81 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< SharedFormulaBuffer > pShrfmlaBuff
Definition: root.hxx:50
std::unique_ptr< ScRangeListTabs > pPrintRanges
Definition: root.hxx:57
BiffTyp
Definition: flttypes.hxx:23
Access to global data from other classes.
Definition: xeroot.hxx:113
XclExpChTrTabId * pTabId
Definition: root.hxx:61
XclExpUserBViewList * pUserBViewList
Definition: root.hxx:62
std::unique_ptr< ScRangeListTabs > pPrintTitles
Definition: root.hxx:58
std::unique_ptr< XclImpAutoFilterBuffer > pAutoFilterBuffer
Definition: root.hxx:56
~RootData()
Definition: exctools.cxx:52
Definition: root.hxx:71
RootData * pExcRoot
Definition: root.hxx:74
XclExpRoot * pER
Definition: root.hxx:65
std::unique_ptr< ExtNameBuff > pExtNameBuff
Definition: root.hxx:51
ExcRoot(RootData *pNexExcRoot)
Definition: root.hxx:75
XclImpRoot * pIR
Definition: root.hxx:64
Store and manage shared formula tokens.
Definition: namebuff.hxx:61
ExcelToSc * pFmlaConverter
Definition: root.hxx:52
RootData()
Definition: exctools.cxx:36
BiffTyp eDateiTyp
Definition: root.hxx:48
XclImpColRowSettings * pColRowBuff
Definition: root.hxx:53
Access to global data from other classes.
Definition: xiroot.hxx:126
std::unique_ptr< ExtSheetBuffer > pExtSheetBuff
Definition: root.hxx:49
ExcRoot(const ExcRoot &rCopy)
Definition: root.hxx:76