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 #ifndef INCLUDED_SC_SOURCE_FILTER_INC_QUERYTABLEBUFFER_HXX
21 #define INCLUDED_SC_SOURCE_FILTER_INC_QUERYTABLEBUFFER_HXX
22 
23 #include "stylesbuffer.hxx"
24 #include "worksheethelper.hxx"
25 
26 namespace oox::xls {
27 
29 {
30  OUString maDefName;
31  sal_Int32 mnConnId;
32  sal_Int32 mnGrowShrinkType;
33  bool mbHeaders;
34  bool mbRowNumbers;
36  bool mbBackground;
45 
46  explicit QueryTableModel();
47 };
48 
50 {
51 public:
52  explicit QueryTable( const WorksheetHelper& rHelper );
53 
55  void importQueryTable( const AttributeList& rAttribs );
58 
60  void finalizeImport();
61 
62 private:
64 };
65 
67 {
68 public:
69  explicit QueryTableBuffer( const WorksheetHelper& rHelper );
70 
73 
75  void finalizeImport();
76 
77 private:
79  QueryTableVector maQueryTables;
80 };
81 
82 } // namespace oox::xls
83 
84 #endif
85 
86 /* 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.