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 .
20 #ifndef INCLUDED_DBACCESS_SOURCE_UI_UNO_UNODIRECTSQL_HXX
21 #define INCLUDED_DBACCESS_SOURCE_UI_UNO_UNODIRECTSQL_HXX
23 #include <svtools/genericunodialog.hxx>
24 #include "apitools.hxx"
25 #include <com/sun/star/sdb/XSQLQueryComposer.hpp>
26 #include <com/sun/star/beans/XPropertySet.hpp>
27 #include <com/sun/star/sdbc/XRowSet.hpp>
28 #include "moduledbu.hxx"
29 #include <com/sun/star/sdbc/XConnection.hpp>
35 class ODirectSQLDialog
;
36 typedef ::svt::OGenericUnoDialog ODirectSQLDialog_BASE
;
37 typedef ::comphelper::OPropertyArrayUsageHelper
< ODirectSQLDialog
> ODirectSQLDialog_PBASE
;
39 class ODirectSQLDialog
40 :public ODirectSQLDialog_BASE
41 ,public ODirectSQLDialog_PBASE
43 OModuleClient m_aModuleClient
;
44 OUString m_sInitialSelection
;
45 ::com::sun::star::uno::Reference
< ::com::sun::star::sdbc::XConnection
> m_xActiveConnection
;
47 ODirectSQLDialog(const ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XComponentContext
>& _rxORB
);
48 virtual ~ODirectSQLDialog();
51 virtual css::uno::Sequence
<sal_Int8
> SAL_CALL
getImplementationId()
52 throw (css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
54 DECLARE_SERVICE_INFO_STATIC( );
56 DECLARE_PROPERTYCONTAINER_DEFAULTS( );
59 // OGenericUnoDialog overridables
60 virtual VclPtr
<Dialog
> createDialog(vcl::Window
* _pParent
) SAL_OVERRIDE
;
61 virtual void implInitialize(const com::sun::star::uno::Any
& _rValue
) SAL_OVERRIDE
;
66 #endif // INCLUDED_DBACCESS_SOURCE_UI_UNO_UNODIRECTSQL_HXX
68 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */