2010-10-27 12:33:13 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-06-14 17:39:53 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2004-08-02 15:24:24 +00:00
|
|
|
|
2013-11-05 02:18:53 +01:00
|
|
|
#ifndef INCLUDED_DBACCESS_SOURCE_UI_UNO_UNODIRECTSQL_HXX
|
|
|
|
#define INCLUDED_DBACCESS_SOURCE_UI_UNO_UNODIRECTSQL_HXX
|
2004-08-02 15:24:24 +00:00
|
|
|
|
|
|
|
#include <svtools/genericunodialog.hxx>
|
|
|
|
#include "apitools.hxx"
|
|
|
|
#include <com/sun/star/sdb/XSQLQueryComposer.hpp>
|
|
|
|
#include <com/sun/star/beans/XPropertySet.hpp>
|
|
|
|
#include <com/sun/star/sdbc/XRowSet.hpp>
|
2007-07-06 07:45:52 +00:00
|
|
|
#include "moduledbu.hxx"
|
2005-03-18 09:12:21 +00:00
|
|
|
#include <com/sun/star/sdbc/XConnection.hpp>
|
2004-08-02 15:24:24 +00:00
|
|
|
|
|
|
|
namespace dbaui
|
|
|
|
{
|
|
|
|
|
2013-08-17 23:43:14 +02:00
|
|
|
// ODirectSQLDialog
|
2004-08-02 15:24:24 +00:00
|
|
|
class ODirectSQLDialog;
|
|
|
|
typedef ::svt::OGenericUnoDialog ODirectSQLDialog_BASE;
|
|
|
|
typedef ::comphelper::OPropertyArrayUsageHelper< ODirectSQLDialog > ODirectSQLDialog_PBASE;
|
|
|
|
|
|
|
|
class ODirectSQLDialog
|
|
|
|
:public ODirectSQLDialog_BASE
|
|
|
|
,public ODirectSQLDialog_PBASE
|
|
|
|
{
|
2007-07-06 07:45:52 +00:00
|
|
|
OModuleClient m_aModuleClient;
|
2015-08-03 09:14:58 +02:00
|
|
|
OUString m_sInitialSelection;
|
|
|
|
css::uno::Reference< css::sdbc::XConnection > m_xActiveConnection;
|
2004-08-02 15:24:24 +00:00
|
|
|
protected:
|
2015-09-07 09:33:18 +01:00
|
|
|
explicit ODirectSQLDialog(const css::uno::Reference< css::uno::XComponentContext >& _rxORB);
|
2004-08-02 15:24:24 +00:00
|
|
|
virtual ~ODirectSQLDialog();
|
|
|
|
|
|
|
|
public:
|
2014-03-11 13:02:59 +01:00
|
|
|
virtual css::uno::Sequence<sal_Int8> SAL_CALL getImplementationId()
|
|
|
|
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
2004-08-02 15:24:24 +00:00
|
|
|
|
|
|
|
DECLARE_SERVICE_INFO_STATIC( );
|
|
|
|
|
|
|
|
DECLARE_PROPERTYCONTAINER_DEFAULTS( );
|
|
|
|
|
|
|
|
protected:
|
|
|
|
// OGenericUnoDialog overridables
|
2015-04-17 12:10:27 +01:00
|
|
|
virtual VclPtr<Dialog> createDialog(vcl::Window* _pParent) SAL_OVERRIDE;
|
2015-08-03 09:14:58 +02:00
|
|
|
virtual void implInitialize(const css::uno::Any& _rValue) SAL_OVERRIDE;
|
2004-08-02 15:24:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace dbaui
|
|
|
|
|
2013-11-05 02:18:53 +01:00
|
|
|
#endif // INCLUDED_DBACCESS_SOURCE_UI_UNO_UNODIRECTSQL_HXX
|
2004-08-02 15:24:24 +00:00
|
|
|
|
2010-10-27 12:33:13 +01:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|