1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
22 #include <component/CTable.hxx>
23 #include <tools/date.hxx>
25 namespace com::sun::star::sheet
{
29 namespace com::sun::star::util
{
34 namespace connectivity::calc
36 typedef component::OComponentTable OCalcTable_BASE
;
37 class OCalcConnection
;
39 class OCalcTable
: public OCalcTable_BASE
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
;
44 OCalcConnection
* m_pCalcConnection
;
45 sal_Int32 m_nStartCol
;
46 sal_Int32 m_nStartRow
;
47 sal_Int32 m_nDataCols
;
49 css::uno::Reference
< css::util::XNumberFormats
> m_xFormats
;
55 OCalcTable( sdbcx::OCollection
* _pTables
,OCalcConnection
* _pConnection
,
58 const OUString
& Description
= OUString(),
59 const OUString
& SchemaName
= OUString(),
60 const OUString
& CatalogName
= OUString()
63 virtual bool fetchRow(OValueRefRow
& _rRow
, const OSQLColumns
& _rCols
, bool bRetrieveData
) override
;
65 virtual void SAL_CALL
disposing() override
;
67 void construct() override
;
72 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */