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_COMPOSERDIALOGS_HXX
21 #define INCLUDED_DBACCESS_SOURCE_UI_UNO_COMPOSERDIALOGS_HXX
23 #include <com/sun/star/container/XNameAccess.hpp>
24 #include <com/sun/star/sdbc/XConnection.hpp>
25 #include <com/sun/star/sdb/XSingleSelectQueryComposer.hpp>
26 #include <com/sun/star/beans/XPropertySet.hpp>
27 #include <com/sun/star/sdbc/XRowSet.hpp>
29 #include <svtools/genericunodialog.hxx>
30 #include "moduledbu.hxx"
31 #include "apitools.hxx"
38 typedef ::comphelper::OPropertyArrayUsageHelper
< ComposerDialog
> ComposerDialog_PBASE
;
41 :public svt::OGenericUnoDialog
42 ,public ComposerDialog_PBASE
44 OModuleClient m_aModuleClient
;
47 ::com::sun::star::uno::Reference
< ::com::sun::star::sdb::XSingleSelectQueryComposer
>
49 ::com::sun::star::uno::Reference
< ::com::sun::star::sdbc::XRowSet
>
54 ComposerDialog(const ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XComponentContext
>& _rxORB
);
55 virtual ~ComposerDialog();
58 virtual css::uno::Sequence
<sal_Int8
> SAL_CALL
getImplementationId()
59 throw (css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
61 DECLARE_PROPERTYCONTAINER_DEFAULTS( );
65 virtual VclPtr
<Dialog
> createComposerDialog(
66 vcl::Window
* _pParent
,
67 const ::com::sun::star::uno::Reference
< ::com::sun::star::sdbc::XConnection
>& _rxConnection
,
68 const ::com::sun::star::uno::Reference
< ::com::sun::star::container::XNameAccess
>& _rxColumns
72 // OGenericUnoDialog overridables
73 virtual VclPtr
<Dialog
> createDialog(vcl::Window
* _pParent
) SAL_OVERRIDE
;
77 class RowsetFilterDialog
: public ComposerDialog
81 const ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XComponentContext
>& _rxORB
84 DECLARE_SERVICE_INFO_STATIC( );
88 virtual VclPtr
<Dialog
> createComposerDialog(
89 vcl::Window
* _pParent
,
90 const ::com::sun::star::uno::Reference
< ::com::sun::star::sdbc::XConnection
>& _rxConnection
,
91 const ::com::sun::star::uno::Reference
< ::com::sun::star::container::XNameAccess
>& _rxColumns
94 // OGenericUnoDialog overridables
95 virtual void executedDialog( sal_Int16 _nExecutionResult
) SAL_OVERRIDE
;
96 virtual void SAL_CALL
initialize( const ::com::sun::star::uno::Sequence
< com::sun::star::uno::Any
>& aArguments
)
97 throw (com::sun::star::uno::Exception
, com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
102 class RowsetOrderDialog
: public ComposerDialog
106 const ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XComponentContext
>& _rxORB
109 DECLARE_SERVICE_INFO_STATIC( );
113 virtual VclPtr
<Dialog
> createComposerDialog(
114 vcl::Window
* _pParent
,
115 const ::com::sun::star::uno::Reference
< ::com::sun::star::sdbc::XConnection
>& _rxConnection
,
116 const ::com::sun::star::uno::Reference
< ::com::sun::star::container::XNameAccess
>& _rxColumns
119 // OGenericUnoDialog overridables
120 virtual void executedDialog( sal_Int16 _nExecutionResult
) SAL_OVERRIDE
;
121 virtual void SAL_CALL
initialize( const ::com::sun::star::uno::Sequence
< com::sun::star::uno::Any
>& aArguments
)
122 throw (com::sun::star::uno::Exception
, com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
127 #endif // INCLUDED_DBACCESS_SOURCE_UI_UNO_COMPOSERDIALOGS_HXX
129 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */