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