fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / dbaccess / source / ui / uno / DBTypeWizDlg.cxx
bloba667d1f90e56e30f92bbba7fd596b9385e42476a
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 #include "dbu_reghelper.hxx"
21 #include "uiservices.hxx"
22 #include "DBTypeWizDlg.hxx"
23 #include "dbwiz.hxx"
24 #include <comphelper/processfactory.hxx>
26 using namespace dbaui;
28 extern "C" void SAL_CALL createRegistryInfo_ODBTypeWizDialog()
30 static OMultiInstanceAutoRegistration< ODBTypeWizDialog > aAutoRegistration;
33 namespace dbaui
36 using namespace ::com::sun::star::uno;
37 using namespace ::com::sun::star::lang;
38 using namespace ::com::sun::star::beans;
40 ODBTypeWizDialog::ODBTypeWizDialog(const Reference< XComponentContext >& _rxORB)
41 :ODatabaseAdministrationDialog(_rxORB)
45 Sequence<sal_Int8> SAL_CALL ODBTypeWizDialog::getImplementationId( ) throw(RuntimeException, std::exception)
47 return css::uno::Sequence<sal_Int8>();
50 Reference< XInterface > SAL_CALL ODBTypeWizDialog::Create(const Reference< XMultiServiceFactory >& _rxFactory)
52 return *(new ODBTypeWizDialog( comphelper::getComponentContext(_rxFactory) ));
55 OUString SAL_CALL ODBTypeWizDialog::getImplementationName() throw(RuntimeException, std::exception)
57 return getImplementationName_Static();
60 OUString ODBTypeWizDialog::getImplementationName_Static() throw(RuntimeException)
62 return OUString("org.openoffice.comp.dbu.ODBTypeWizDialog");
65 ::comphelper::StringSequence SAL_CALL ODBTypeWizDialog::getSupportedServiceNames() throw(RuntimeException, std::exception)
67 return getSupportedServiceNames_Static();
70 ::comphelper::StringSequence ODBTypeWizDialog::getSupportedServiceNames_Static() throw(RuntimeException)
72 ::comphelper::StringSequence aSupported(1);
73 aSupported[0] = "com.sun.star.sdb.DataSourceTypeChangeDialog";
74 return aSupported;
77 Reference<XPropertySetInfo> SAL_CALL ODBTypeWizDialog::getPropertySetInfo() throw(RuntimeException, std::exception)
79 Reference<XPropertySetInfo> xInfo( createPropertySetInfo( getInfoHelper() ) );
80 return xInfo;
83 ::cppu::IPropertyArrayHelper& ODBTypeWizDialog::getInfoHelper()
85 return *getArrayHelper();
88 ::cppu::IPropertyArrayHelper* ODBTypeWizDialog::createArrayHelper( ) const
90 Sequence< Property > aProps;
91 describeProperties(aProps);
92 return new ::cppu::OPropertyArrayHelper(aProps);
95 VclPtr<Dialog> ODBTypeWizDialog::createDialog(vcl::Window* _pParent)
97 return VclPtr<ODbTypeWizDialog>::Create(_pParent, m_pDatasourceItems, m_aContext, m_aInitialSelection);
100 } // namespace dbaui
102 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */