fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / dbaccess / source / ui / inc / advancedsettingsdlg.hxx
blob2ba76b55466ce037bfe7541a1d09206537e30835
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_INC_ADVANCEDSETTINGSDLG_HXX
21 #define INCLUDED_DBACCESS_SOURCE_UI_INC_ADVANCEDSETTINGSDLG_HXX
23 #include "IItemSetHelper.hxx"
24 #include "moduledbu.hxx"
26 #include <sfx2/tabdlg.hxx>
28 #include <memory>
30 namespace dbaui
33 // AdvancedSettingsDialog
34 class ODbDataSourceAdministrationHelper;
35 /** implements the advanced page dlg of the data source properties.
37 class AdvancedSettingsDialog :public SfxTabDialog
38 ,public IItemSetHelper
39 ,public IDatabaseSettingsDialog
41 OModuleClient m_aModuleClient;
42 ::std::unique_ptr<ODbDataSourceAdministrationHelper> m_pImpl;
44 protected:
45 virtual void PageCreated(sal_uInt16 _nId, SfxTabPage& _rPage) SAL_OVERRIDE;
47 public:
48 AdvancedSettingsDialog( vcl::Window* _pParent
49 ,SfxItemSet* _pItems
50 ,const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxORB
51 ,const ::com::sun::star::uno::Any& _aDataSourceName);
53 virtual ~AdvancedSettingsDialog();
54 virtual void dispose() SAL_OVERRIDE;
56 /// determines whether or not the given data source type has any advanced setting
57 static bool doesHaveAnyAdvancedSettings( const OUString& _sURL );
59 virtual const SfxItemSet* getOutputSet() const SAL_OVERRIDE;
60 virtual SfxItemSet* getWriteOutputSet() SAL_OVERRIDE;
62 virtual short Execute() SAL_OVERRIDE;
64 // forwards to ODbDataSourceAdministrationHelper
65 virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > getORB() const SAL_OVERRIDE;
66 virtual ::std::pair< ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >,sal_Bool> createConnection() SAL_OVERRIDE;
67 virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDriver > getDriver() SAL_OVERRIDE;
68 virtual OUString getDatasourceType(const SfxItemSet& _rSet) const SAL_OVERRIDE;
69 virtual void clearPassword() SAL_OVERRIDE;
70 virtual bool saveDatasource() SAL_OVERRIDE;
71 virtual void setTitle(const OUString& _sTitle) SAL_OVERRIDE;
72 virtual void enableConfirmSettings( bool _bEnable ) SAL_OVERRIDE;
75 } // namespace dbaui
77 #endif // INCLUDED_DBACCESS_SOURCE_UI_INC_ADVANCEDSETTINGSDLG_HXX
79 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */