calc: on editing invalidation of view with different zoom is wrong
[LibreOffice.git] / dbaccess / source / core / api / datacolumn.hxx
blob46512d94559c261e5ae957e904f0f0b67ab28890
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 .
20 #pragma once
22 #include <com/sun/star/sdbc/XRowUpdate.hpp>
23 #include <com/sun/star/sdbc/XRow.hpp>
24 #include <com/sun/star/sdbc/XResultSetMetaData.hpp>
25 #include <com/sun/star/sdb/XColumn.hpp>
26 #include <com/sun/star/sdb/XColumnUpdate.hpp>
27 #include "resultcolumn.hxx"
28 namespace dbaccess
31 // ODataColumn
33 class ODataColumn : public OResultColumn,
34 public css::sdb::XColumn,
35 public css::sdb::XColumnUpdate
37 css::uno::Reference < css::sdbc::XRow > m_xRow;
38 css::uno::Reference < css::sdbc::XRowUpdate > m_xRowUpdate;
39 protected:
40 virtual ~ODataColumn() override;
41 public:
42 ODataColumn (const css::uno::Reference < css::sdbc::XResultSetMetaData >& _xMetaData,
43 const css::uno::Reference < css::sdbc::XRow >& _xRow,
44 const css::uno::Reference < css::sdbc::XRowUpdate >& _xRowUpdate,
45 sal_Int32 _nPos,
46 const css::uno::Reference< css::sdbc::XDatabaseMetaData >& _rxDBMeta);
48 // css::lang::XTypeProvider
49 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
50 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
52 // css::uno::XInterface
53 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
54 virtual void SAL_CALL acquire() noexcept override { OResultColumn::acquire(); }
55 virtual void SAL_CALL release() noexcept override { OResultColumn::release(); }
57 // css::lang::XServiceInfo
58 virtual OUString SAL_CALL getImplementationName( ) override;
59 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
61 // cppu::OComponentHelper
62 virtual void SAL_CALL disposing() override;
64 // css::sdb::XColumn
65 virtual sal_Bool SAL_CALL wasNull( ) override;
66 virtual OUString SAL_CALL getString( ) override;
67 virtual sal_Bool SAL_CALL getBoolean( ) override;
68 virtual sal_Int8 SAL_CALL getByte( ) override;
69 virtual sal_Int16 SAL_CALL getShort( ) override;
70 virtual sal_Int32 SAL_CALL getInt( ) override;
71 virtual sal_Int64 SAL_CALL getLong( ) override;
72 virtual float SAL_CALL getFloat( ) override;
73 virtual double SAL_CALL getDouble( ) override;
74 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getBytes( ) override;
75 virtual css::util::Date SAL_CALL getDate( ) override;
76 virtual css::util::Time SAL_CALL getTime( ) override;
77 virtual css::util::DateTime SAL_CALL getTimestamp( ) override;
78 virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getBinaryStream( ) override;
79 virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getCharacterStream( ) override;
80 virtual css::uno::Any SAL_CALL getObject( const css::uno::Reference< css::container::XNameAccess >& typeMap ) override;
81 virtual css::uno::Reference< css::sdbc::XRef > SAL_CALL getRef( ) override;
82 virtual css::uno::Reference< css::sdbc::XBlob > SAL_CALL getBlob( ) override;
83 virtual css::uno::Reference< css::sdbc::XClob > SAL_CALL getClob( ) override;
84 virtual css::uno::Reference< css::sdbc::XArray > SAL_CALL getArray( ) override;
86 // css::sdb::XColumnUpdate
87 virtual void SAL_CALL updateNull( ) override;
88 virtual void SAL_CALL updateBoolean( sal_Bool x ) override;
89 virtual void SAL_CALL updateByte( sal_Int8 x ) override;
90 virtual void SAL_CALL updateShort( sal_Int16 x ) override;
91 virtual void SAL_CALL updateInt( sal_Int32 x ) override;
92 virtual void SAL_CALL updateLong( sal_Int64 x ) override;
93 virtual void SAL_CALL updateFloat( float x ) override;
94 virtual void SAL_CALL updateDouble( double x ) override;
95 virtual void SAL_CALL updateString( const OUString& x ) override;
96 virtual void SAL_CALL updateBytes( const css::uno::Sequence< sal_Int8 >& x ) override;
97 virtual void SAL_CALL updateDate( const css::util::Date& x ) override;
98 virtual void SAL_CALL updateTime( const css::util::Time& x ) override;
99 virtual void SAL_CALL updateTimestamp( const css::util::DateTime& x ) override;
100 virtual void SAL_CALL updateBinaryStream( const css::uno::Reference< css::io::XInputStream >& x, sal_Int32 length ) override;
101 virtual void SAL_CALL updateCharacterStream( const css::uno::Reference< css::io::XInputStream >& x, sal_Int32 length ) override;
102 virtual void SAL_CALL updateObject( const css::uno::Any& x ) override;
103 virtual void SAL_CALL updateNumericObject( const css::uno::Any& x, sal_Int32 scale ) override;
107 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */