LibreOffice Module connectivity (master) 1
calc/CTable.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 <component/CTable.hxx>
23#include <tools/date.hxx>
24
25namespace com::sun::star::sheet {
26 class XSpreadsheet;
27}
28
29namespace com::sun::star::util {
30 class XNumberFormats;
31}
32
33
34namespace connectivity::calc
35 {
37 class OCalcConnection;
38
40 {
41 private:
42 std::vector<sal_Int32> m_aTypes; // holds all type for columns just to avoid to ask the propertyset
43 css::uno::Reference< css::sheet::XSpreadsheet > m_xSheet;
45 sal_Int32 m_nStartCol;
46 sal_Int32 m_nStartRow;
47 sal_Int32 m_nDataCols;
49 css::uno::Reference< css::util::XNumberFormats > m_xFormats;
51
52 void fillColumns();
53
54 public:
55 OCalcTable( sdbcx::OCollection* _pTables,OCalcConnection* _pConnection,
56 const OUString& Name,
57 const OUString& Type,
58 const OUString& Description = OUString(),
59 const OUString& SchemaName = OUString(),
60 const OUString& CatalogName = OUString()
61 );
62
63 virtual bool fetchRow(OValueRefRow& _rRow, const OSQLColumns& _rCols, bool bRetrieveData) override;
64
65 virtual void SAL_CALL disposing() override;
66
67 void construct() override;
68 };
69
70}
71
72/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
css::uno::Reference< css::util::XNumberFormats > m_xFormats
Definition: calc/CTable.hxx:49
virtual bool fetchRow(OValueRefRow &_rRow, const OSQLColumns &_rCols, bool bRetrieveData) override
virtual void SAL_CALL disposing() override
OCalcTable(sdbcx::OCollection *_pTables, OCalcConnection *_pConnection, const OUString &Name, const OUString &Type, const OUString &Description=OUString(), const OUString &SchemaName=OUString(), const OUString &CatalogName=OUString())
std::vector< sal_Int32 > m_aTypes
Definition: calc/CTable.hxx:42
css::uno::Reference< css::sheet::XSpreadsheet > m_xSheet
Definition: calc/CTable.hxx:43
OCalcConnection * m_pCalcConnection
Definition: calc/CTable.hxx:44
Shared Table base class for Writer tables and Calc sheets.
Type
component::OComponentTable OCalcTable_BASE
Definition: calc/CTable.hxx:36