LibreOffice Module sc (master)  1
orcusxml.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 
10 #ifndef INCLUDED_SC_INC_ORCUSXML_HXX
11 #define INCLUDED_SC_INC_ORCUSXML_HXX
12 
13 #include "scdllapi.h"
14 #include "address.hxx"
15 
16 #include <vector>
17 #include <memory>
18 
19 namespace weld {
20  class TreeIter;
21  class TreeView;
22 }
23 
28 {
30 
32  struct EntryData
33  {
34  size_t mnNamespaceID;
37  bool mbRangeParent:1;
38  bool mbLeafNode:1;
39 
41  };
42 
43  typedef std::vector<std::unique_ptr<EntryData>> UserDataStoreType;
44 
47  OUString maImgAttribute;
48 
53  UserDataStoreType m_UserDataStore;
54 
55  static EntryData* getUserData(const weld::TreeView& rControl, const weld::TreeIter& rEntry);
56 };
57 
59 {
60  struct CellLink
61  {
63  OString maPath;
64 
65  CellLink(const ScAddress& rPos, const OString& rPath);
66  };
67 
68  struct RangeLink
69  {
71  std::vector<OString> maFieldPaths;
72  std::vector<OString> maRowGroups;
73  };
74 
75  std::vector<size_t> maNamespaces;
76  std::vector<CellLink> maCellLinks;
77  std::vector<RangeLink> maRangeLinks;
78 };
79 
80 #endif
81 
82 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
EntryType meType
numerical ID for xml namespace
Definition: orcusxml.hxx:35
OUString maImgElementRepeat
Definition: orcusxml.hxx:46
OUString maImgAttribute
Definition: orcusxml.hxx:47
static EntryData * getUserData(const weld::TreeView &rControl, const weld::TreeIter &rEntry)
Definition: orcusxml.cxx:22
SC_DLLPUBLIC EntryData(EntryType eType)
Leaf if it has no child elements. Child Attributes don't count.
Definition: orcusxml.cxx:14
UserDataStoreType m_UserDataStore
Store all custom data instances since the tree control doesn't manage the life cycle of user data...
Definition: orcusxml.hxx:53
std::vector< RangeLink > maRangeLinks
Definition: orcusxml.hxx:77
bool mbRangeParent
linked cell position (invalid if unlinked)
Definition: orcusxml.hxx:37
Parameter used during call to ScOrcusFilters::loadXMLStructure().
Definition: orcusxml.hxx:27
std::vector< size_t > maNamespaces
Definition: orcusxml.hxx:75
OUString maImgElementDefault
Definition: orcusxml.hxx:45
std::vector< CellLink > maCellLinks
Definition: orcusxml.hxx:76
SQLINTEGER Attribute
std::vector< std::unique_ptr< EntryData > > UserDataStoreType
Definition: orcusxml.hxx:43
Custom data stored with each tree item.
Definition: orcusxml.hxx:32
#define SC_DLLPUBLIC
Definition: scdllapi.h:28