LibreOffice Module dbaccess (master) 1
TableFieldControl.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#pragma once
20
21#include <FieldDescControl.hxx>
22
23namespace dbaui
24{
25 class OTableEditorCtrl;
26 class OTableDesignHelpBar;
27 class OTableDesignView;
28
29 // OTableFieldControl
31 {
33
35
36 void dispose();
37
38 protected:
39 virtual void ActivateAggregate( EControlType eType ) override;
40 virtual void DeactivateAggregate( EControlType eType ) override;
41 // are to be implemented by the derived classes
42 virtual void CellModified(sal_Int32 nRow, sal_uInt16 nColId ) override;
43 virtual bool IsReadOnly() override;
44 virtual void SetModified(bool bModified) override;
45 virtual css::uno::Reference< css::util::XNumberFormatter > GetFormatter() const override;
46
47 virtual css::lang::Locale GetLocale() const override;
48
49 virtual TOTypeInfoSP getTypeInfo(sal_Int32 _nPos) override;
50 virtual const OTypeInfoMap* getTypeInfo() const override;
51 virtual bool isAutoIncrementValueEnabled() const override;
52 virtual OUString getAutoIncrementValue() const override;
53
54 public:
56 virtual ~OTableFieldControl() override;
57
60
61 virtual css::uno::Reference< css::sdbc::XDatabaseMetaData> getMetaData() override;
62 virtual css::uno::Reference< css::sdbc::XConnection> getConnection() override;
63 };
64}
65
66/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
OUString BoolStringPersistent(std::u16string_view rUIString) const
OUString BoolStringUI(const OUString &rPersistentString) const
VclPtr< OTableDesignView > m_xView
virtual css::uno::Reference< css::util::XNumberFormatter > GetFormatter() const override
virtual void CellModified(sal_Int32 nRow, sal_uInt16 nColId) override
virtual css::uno::Reference< css::sdbc::XDatabaseMetaData > getMetaData() override
virtual css::lang::Locale GetLocale() const override
virtual void ActivateAggregate(EControlType eType) override
virtual css::uno::Reference< css::sdbc::XConnection > getConnection() override
virtual bool IsReadOnly() override
virtual bool isAutoIncrementValueEnabled() const override
virtual void SetModified(bool bModified) override
OTableFieldControl(weld::Container *pParent, OTableDesignHelpBar *pHelpBar, OTableDesignView *pView)
OTableEditorCtrl * GetCtrl() const
virtual OUString getAutoIncrementValue() const override
virtual const OTypeInfoMap * getTypeInfo() const override
virtual void DeactivateAggregate(EControlType eType) override
virtual ~OTableFieldControl() override
OUString eType
Definition: generalpage.cxx:78
std::multimap< sal_Int32, TOTypeInfoSP > OTypeInfoMap
Definition: TypeInfo.hxx:100
std::shared_ptr< OTypeInfo > TOTypeInfoSP
Definition: TypeInfo.hxx:99
EControlType
Definition: QEnumTypes.hxx:63