LibreOffice Module sc (master) 1
querytablebuffer.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 "stylesbuffer.hxx"
23#include "worksheethelper.hxx"
24
25namespace oox::xls {
26
28{
29 OUString maDefName;
30 sal_Int32 mnConnId;
31 sal_Int32 mnGrowShrinkType;
32 bool mbHeaders;
44
45 explicit QueryTableModel();
46};
47
49{
50public:
51 explicit QueryTable( const WorksheetHelper& rHelper );
52
54 void importQueryTable( const AttributeList& rAttribs );
57
59 void finalizeImport();
60
61private:
63};
64
66{
67public:
68 explicit QueryTableBuffer( const WorksheetHelper& rHelper );
69
72
74 void finalizeImport();
75
76private:
79};
80
81} // namespace oox::xls
82
83/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
QueryTable & createQueryTable()
Creates a new query table and stores it into the internal vector.
void finalizeImport()
Inserts all web queries into the sheet.
RefVector< QueryTable > QueryTableVector
QueryTableBuffer(const WorksheetHelper &rHelper)
QueryTableModel maModel
void importQueryTable(const AttributeList &rAttribs)
Imports query table settings from the queryTable element.
QueryTable(const WorksheetHelper &rHelper)
void finalizeImport()
Inserts a web query into the sheet.
void SvStream & rStrm
bool mbRowNumbers
True = source data contains a header row.
bool mbFillFormulas
True = refresh table after import.
bool mbRemoveDataOnSave
True = expand formulas next to range when source data grows.
bool mbPreserveFormat
True = connection locked for editing.
bool mbRefreshOnLoad
True = first background refresh not yet finished.
bool mbDisableRefresh
True = first column contains row numbers.
bool mbDisableEdit
True = remove querried data before saving.
bool mbAdjustColWidth
True = use existing formatting for new rows.
bool mbIntermediate
True = adjust column widths after refresh.
bool mbHeaders
Behaviour when source data size changes.
sal_Int32 mnGrowShrinkType
Identifier of the external connection used to query the data.
bool mbBackground
True = refreshing data disabled.
QueryTableModel()
True = query table defined but not built yet.
sal_Int32 mnConnId
Defined name containing the target cell range.
bool mbFirstBackground
True = refresh asynchronously.