LibreOffice Module sc (master) 1
tablecolumnsbuffer.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
23#include <dbdata.hxx>
24#include "workbookhelper.hxx"
25
26namespace oox { class AttributeList; }
27namespace oox { class SequenceInputStream; }
28class ScDBData;
29
30namespace oox::xls {
31
35{
36public:
37 explicit TableColumn( const WorkbookHelper& rHelper );
38
40 void importTableColumn( const AttributeList& rAttribs );
44 const OUString& getName() const;
47
48private:
49 OUString maName;
50 sal_Int32 mnId;
51 sal_Int32 mnDataDxfId;
53};
54
56{
57public:
58 explicit TableColumns( const WorkbookHelper& rHelper );
59
61 void importTableColumns( const AttributeList& rAttribs );
64
67
69 bool finalizeImport( ScDBData* pDBData );
70
71private:
73
75 sal_Int32 mnCount;
76};
77
79{
80public:
81 explicit TableColumnsBuffer( const WorkbookHelper& rHelper );
82
85
87 void finalizeImport( ScDBData* pDBData );
88
89private:
92
93private:
96};
97
98} // namespace oox::xls
99
100/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
A column in a table (database range).
TableColumn(const WorkbookHelper &rHelper)
const OUString & getName() const
Gets the name of this column.
TableColumnAttributes maColumnAttributes
void importTableColumn(const AttributeList &rAttribs)
Imports table column settings from the tableColumn element.
const TableColumnAttributes & getColumnAttributes() const
Gets the attributes of this column.
TableColumns * getActiveTableColumns()
Returns the table columns object used.
RefVector< TableColumns > TableColumnsVector
TableColumnsVector maTableColumnsVector
TableColumnsBuffer(const WorkbookHelper &rHelper)
void finalizeImport(ScDBData *pDBData)
Applies the table columns to the passed database range.
TableColumns & createTableColumns()
Creates a new table columns object and stores it internally.
TableColumns(const WorkbookHelper &rHelper)
bool finalizeImport(ScDBData *pDBData)
Applies the columns to the passed database range.
RefVector< TableColumn > TableColumnVector
void importTableColumns(const AttributeList &rAttribs)
Imports settings from the tableColumns element.
TableColumn & createTableColumn()
Creates a new table column and stores it internally.
TableColumnVector maTableColumnVector
Helper class to provide access to global workbook data.
void SvStream & rStrm