fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / dbaccess / source / ui / tabledesign / TableFieldControl.hxx
blob80e6bd5aa1149436ccb160687f0301fe969a875b
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 #ifndef INCLUDED_DBACCESS_SOURCE_UI_TABLEDESIGN_TABLEFIELDCONTROL_HXX
20 #define INCLUDED_DBACCESS_SOURCE_UI_TABLEDESIGN_TABLEFIELDCONTROL_HXX
22 #include "FieldDescControl.hxx"
24 namespace dbaui
26 class OTableEditorCtrl;
27 class OTableDesignHelpBar;
28 // OTableFieldControl
29 class OTableFieldControl : public OFieldDescControl
31 OTableEditorCtrl* GetCtrl() const;
32 protected:
33 virtual void ActivateAggregate( EControlType eType ) SAL_OVERRIDE;
34 virtual void DeactivateAggregate( EControlType eType ) SAL_OVERRIDE;
35 // are to be implemented by the derived classes
36 virtual void CellModified(long nRow, sal_uInt16 nColId ) SAL_OVERRIDE;
37 virtual bool IsReadOnly() SAL_OVERRIDE;
38 virtual void SetModified(bool bModified) SAL_OVERRIDE;
39 virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatter > GetFormatter() const SAL_OVERRIDE;
41 virtual ::com::sun::star::lang::Locale GetLocale() const SAL_OVERRIDE;
43 virtual TOTypeInfoSP getTypeInfo(sal_Int32 _nPos) SAL_OVERRIDE;
44 virtual const OTypeInfoMap* getTypeInfo() const SAL_OVERRIDE;
45 virtual bool isAutoIncrementValueEnabled() const SAL_OVERRIDE;
46 virtual OUString getAutoIncrementValue() const SAL_OVERRIDE;
48 public:
49 OTableFieldControl( vcl::Window* pParent, OTableDesignHelpBar* pHelpBar);
51 OUString BoolStringPersistent(const OUString& rUIString) const { return OFieldDescControl::BoolStringPersistent(rUIString); }
52 OUString BoolStringUI(const OUString& rPersistentString) const { return OFieldDescControl::BoolStringUI(rPersistentString); }
54 virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData> getMetaData() SAL_OVERRIDE;
55 virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection> getConnection() SAL_OVERRIDE;
58 #endif // INCLUDED_DBACCESS_SOURCE_UI_TABLEDESIGN_TABLEFIELDCONTROL_HXX
60 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */