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 .
21 #include <FieldDescControl.hxx>
25 class OTableEditorCtrl
;
26 class OTableDesignHelpBar
;
27 class OTableDesignView
;
30 class OTableFieldControl
: public OFieldDescControl
32 VclPtr
<OTableDesignView
> m_xView
;
34 OTableEditorCtrl
* GetCtrl() const;
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
;
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: */