fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / dbaccess / source / ui / uno / composerdialogs.hxx
blob3423427d89af41a9a1bc0206cbea8f037d5ff0f9
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_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"
33 namespace dbaui
36 // ComposerDialog
37 class ComposerDialog;
38 typedef ::comphelper::OPropertyArrayUsageHelper< ComposerDialog > ComposerDialog_PBASE;
40 class ComposerDialog
41 :public svt::OGenericUnoDialog
42 ,public ComposerDialog_PBASE
44 OModuleClient m_aModuleClient;
45 protected:
46 // <properties>
47 ::com::sun::star::uno::Reference< ::com::sun::star::sdb::XSingleSelectQueryComposer >
48 m_xComposer;
49 ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRowSet >
50 m_xRowSet;
51 // </properties>
53 protected:
54 ComposerDialog(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxORB);
55 virtual ~ComposerDialog();
57 public:
58 virtual css::uno::Sequence<sal_Int8> SAL_CALL getImplementationId()
59 throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
61 DECLARE_PROPERTYCONTAINER_DEFAULTS( );
63 protected:
64 // own overridables
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
69 ) = 0;
71 private:
72 // OGenericUnoDialog overridables
73 virtual VclPtr<Dialog> createDialog(vcl::Window* _pParent) SAL_OVERRIDE;
76 // RowsetFilterDialog
77 class RowsetFilterDialog : public ComposerDialog
79 public:
80 RowsetFilterDialog(
81 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxORB
84 DECLARE_SERVICE_INFO_STATIC( );
86 protected:
87 // own overridables
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
92 ) SAL_OVERRIDE;
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;
101 // RowsetOrderDialog
102 class RowsetOrderDialog : public ComposerDialog
104 public:
105 RowsetOrderDialog(
106 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxORB
109 DECLARE_SERVICE_INFO_STATIC( );
111 protected:
112 // own overridables
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
117 ) SAL_OVERRIDE;
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;
125 } // namespace dbaui
127 #endif // INCLUDED_DBACCESS_SOURCE_UI_UNO_COMPOSERDIALOGS_HXX
129 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */