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 #ifndef INCLUDED_SC_SOURCE_FILTER_INC_TABLECOLUMNSBUFFER_HXX
21 #define INCLUDED_SC_SOURCE_FILTER_INC_TABLECOLUMNSBUFFER_HXX
22 
23 #include <oox/helper/refvector.hxx>
24 #include "workbookhelper.hxx"
25 
26 namespace oox { class AttributeList; }
27 namespace oox { class SequenceInputStream; }
28 class ScDBData;
29 
30 namespace oox::xls {
31 
35 {
36 public:
37  explicit TableColumn( const WorkbookHelper& rHelper );
38 
40  void importTableColumn( const AttributeList& rAttribs );
44  const OUString& getName() const;
45 
46 private:
47  OUString maName;
48  sal_Int32 mnId;
49  sal_Int32 mnDataDxfId;
50 };
51 
53 {
54 public:
55  explicit TableColumns( const WorkbookHelper& rHelper );
56 
58  void importTableColumns( const AttributeList& rAttribs );
61 
64 
66  bool finalizeImport( ScDBData* pDBData );
67 
68 private:
70 
71  TableColumnVector maTableColumnVector;
72  sal_Int32 mnCount;
73 };
74 
76 {
77 public:
78  explicit TableColumnsBuffer( const WorkbookHelper& rHelper );
79 
82 
84  void finalizeImport( ScDBData* pDBData );
85 
86 private:
89 
90 private:
92  TableColumnsVector maTableColumnsVector;
93 };
94 
95 } // namespace oox::xls
96 
97 #endif
98 
99 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Helper class to provide access to global workbook data.
TableColumn & createTableColumn()
Creates a new table column and stores it internally.
void importTableColumn(const AttributeList &rAttribs)
Imports table column settings from the tableColumn element.
TableColumn(const WorkbookHelper &rHelper)
A column in a table (database range).
TableColumnVector maTableColumnVector
RefVector< TableColumns > TableColumnsVector
void importTableColumns(const AttributeList &rAttribs)
Imports settings from the tableColumns element.
RefVector< TableColumn > TableColumnVector
TableColumns & createTableColumns()
Creates a new table columns object and stores it internally.
bool finalizeImport(ScDBData *pDBData)
Applies the columns to the passed database range.
const OUString & getName() const
Gets the name of this column.
TableColumnsBuffer(const WorkbookHelper &rHelper)
void finalizeImport(ScDBData *pDBData)
Applies the table columns to the passed database range.
TableColumnsVector maTableColumnsVector
TableColumns * getActiveTableColumns()
Returns the table columns object used.
void SvStream & rStrm
TableColumns(const WorkbookHelper &rHelper)