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