Update git submodules
[LibreOffice.git] / dbaccess / source / ui / tabledesign / TableFieldControl.hxx
blob4a232f86c3d81da193b44b7f8c387f66618c807e
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 .
19 #pragma once
21 #include <FieldDescControl.hxx>
23 namespace dbaui
25 class OTableEditorCtrl;
26 class OTableDesignHelpBar;
27 class OTableDesignView;
29 // OTableFieldControl
30 class OTableFieldControl : public OFieldDescControl
32 VclPtr<OTableDesignView> m_xView;
34 OTableEditorCtrl* GetCtrl() const;
36 void dispose();
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;
47 virtual css::lang::Locale GetLocale() const override;
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;
54 public:
55 OTableFieldControl(weld::Container* pParent, OTableDesignHelpBar* pHelpBar, OTableDesignView* pView);
56 virtual ~OTableFieldControl() override;
58 using OFieldDescControl::BoolStringPersistent;
59 using OFieldDescControl::BoolStringUI;
61 virtual css::uno::Reference< css::sdbc::XDatabaseMetaData> getMetaData() override;
62 virtual css::uno::Reference< css::sdbc::XConnection> getConnection() override;
66 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */