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