fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / dbaccess / source / ui / dlg / ConnectionPageSetup.hxx
blobcad08bcff1e2f807089bd84e959e94be51f4b7e8
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 #ifndef INCLUDED_DBACCESS_SOURCE_UI_DLG_CONNECTIONPAGESETUP_HXX
21 #define INCLUDED_DBACCESS_SOURCE_UI_DLG_CONNECTIONPAGESETUP_HXX
22 #include "ConnectionHelper.hxx"
24 #include "adminpages.hxx"
25 #include <ucbhelper/content.hxx>
26 #include "curledit.hxx"
28 #include <vcl/field.hxx>
30 namespace dbaui
33 // OConnectionTabPageSetup
35 /** implements the connection page of the data source properties dialog.
37 class OConnectionTabPageSetup : public OConnectionHelper
39 friend class VclPtr<OConnectionTabPageSetup>;
40 bool m_bUserGrabFocus : 1;
41 protected:
43 VclPtr<FixedText> m_pHelpText;
44 VclPtr<FixedText> m_pHeaderText;
46 // called when the test connection button was clicked
47 DECL_LINK(OnEditModified,Edit*);
49 public:
50 virtual ~OConnectionTabPageSetup();
51 virtual void dispose() SAL_OVERRIDE;
52 static VclPtr<OGenericAdministrationPage> CreateDbaseTabPage( vcl::Window* pParent, const SfxItemSet& _rAttrSet );
53 static VclPtr<OGenericAdministrationPage> CreateMSAccessTabPage( vcl::Window* pParent, const SfxItemSet& _rAttrSet );
54 static VclPtr<OGenericAdministrationPage> CreateADOTabPage( vcl::Window* pParent, const SfxItemSet& _rAttrSet );
55 static VclPtr<OGenericAdministrationPage> CreateODBCTabPage( vcl::Window* pParent, const SfxItemSet& _rAttrSet );
56 static VclPtr<OGenericAdministrationPage> CreateUserDefinedTabPage( vcl::Window* pParent, const SfxItemSet& _rAttrSet );
58 virtual bool FillItemSet (SfxItemSet* _rCoreAttrs) SAL_OVERRIDE;
60 virtual void implInitControls(const SfxItemSet& _rSet, bool _bSaveValue) SAL_OVERRIDE;
61 virtual bool commitPage( ::svt::WizardTypes::CommitPageReason _eReason ) SAL_OVERRIDE;
63 inline void enableConnectionURL() { m_pConnectionURL->SetReadOnly(false); }
64 inline void disableConnectionURL() { m_pConnectionURL->SetReadOnly(); }
66 /** changes the connection URL.
67 <p>The new URL must be of the type which is currently selected, only the parts which do not
68 affect the type may be changed (compared to the previous URL).</p>
70 void changeConnectionURL( const OUString& _rNewDSN );
71 OUString getConnectionURL( ) const;
73 protected:
74 OConnectionTabPageSetup(vcl::Window* pParent, const OString& _rId, const OUString& _rUIXMLDescription, const SfxItemSet& _rCoreAttrs, sal_uInt16 _nHelpTextResId, sal_uInt16 _nHeaderResId, sal_uInt16 _nUrlResId);
75 virtual bool checkTestConnection() SAL_OVERRIDE;
76 // nControlFlags is a combination of the CBTP_xxx-constants
79 } // namespace dbaui
81 #endif
83 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */