LCOV - code coverage report
Current view: top level - libreoffice/dbaccess/source/ui/uno - composerdialogs.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 2 0.0 %
Date: 2012-12-27 Functions: 0 4 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       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/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      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 .
      18             :  */
      19             : 
      20             : #ifndef DBACCESS_SOURCE_UI_UNO_COMPOSERDIALOGS_HXX
      21             : #define DBACCESS_SOURCE_UI_UNO_COMPOSERDIALOGS_HXX
      22             : 
      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>
      28             : 
      29             : #include <svtools/genericunodialog.hxx>
      30             : #include "moduledbu.hxx"
      31             : #include "apitools.hxx"
      32             : 
      33             : //.........................................................................
      34             : namespace dbaui
      35             : {
      36             : //.........................................................................
      37             : 
      38             :     //=====================================================================
      39             :     //= ComposerDialog
      40             :     //=====================================================================
      41             :     class ComposerDialog;
      42             :     typedef ::comphelper::OPropertyArrayUsageHelper< ComposerDialog >  ComposerDialog_PBASE;
      43             : 
      44             :     class ComposerDialog
      45             :             :public svt::OGenericUnoDialog
      46             :             ,public ComposerDialog_PBASE
      47             :     {
      48             :         OModuleClient m_aModuleClient;
      49             :     protected:
      50             :         // <properties>
      51             :         ::com::sun::star::uno::Reference< ::com::sun::star::sdb::XSingleSelectQueryComposer >
      52             :                         m_xComposer;
      53             :         ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRowSet >
      54             :                         m_xRowSet;
      55             :         // </properties>
      56             : 
      57             :     protected:
      58             :         ComposerDialog(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB);
      59             :         ~ComposerDialog();
      60             : 
      61             :     public:
      62             :         DECLARE_IMPLEMENTATION_ID( );
      63             : 
      64             :         DECLARE_PROPERTYCONTAINER_DEFAULTS( );
      65             : 
      66             :     protected:
      67             :         // own overridables
      68             :         virtual Dialog* createComposerDialog(
      69             :             Window* _pParent,
      70             :             const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _rxConnection,
      71             :             const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >& _rxColumns
      72             :         ) = 0;
      73             : 
      74             :     private:
      75             :         // OGenericUnoDialog overridables
      76             :         virtual Dialog* createDialog(Window* _pParent);
      77             :     };
      78             : 
      79             :     //=====================================================================
      80             :     //= RowsetFilterDialog
      81             :     //=====================================================================
      82           0 :     class RowsetFilterDialog : public ComposerDialog
      83             :     {
      84             :     public:
      85             :         RowsetFilterDialog(
      86             :             const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB
      87             :         );
      88             : 
      89             :         DECLARE_SERVICE_INFO_STATIC( );
      90             : 
      91             :     protected:
      92             :         // own overridables
      93             :         virtual Dialog* createComposerDialog(
      94             :             Window* _pParent,
      95             :             const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _rxConnection,
      96             :             const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >& _rxColumns
      97             :         );
      98             : 
      99             :         // OGenericUnoDialog overridables
     100             :         virtual void executedDialog( sal_Int16 _nExecutionResult );
     101             :         virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< com::sun::star::uno::Any >& aArguments )
     102             :             throw (com::sun::star::uno::Exception, com::sun::star::uno::RuntimeException);
     103             : 
     104             :     };
     105             : 
     106             :     //=====================================================================
     107             :     //= RowsetOrderDialog
     108             :     //=====================================================================
     109           0 :     class RowsetOrderDialog : public ComposerDialog
     110             :     {
     111             :     public:
     112             :         RowsetOrderDialog(
     113             :             const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB
     114             :         );
     115             : 
     116             :         DECLARE_SERVICE_INFO_STATIC( );
     117             : 
     118             :     protected:
     119             :         // own overridables
     120             :         virtual Dialog* createComposerDialog(
     121             :             Window* _pParent,
     122             :             const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _rxConnection,
     123             :             const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >& _rxColumns
     124             :         );
     125             : 
     126             :         // OGenericUnoDialog overridables
     127             :         virtual void executedDialog( sal_Int16 _nExecutionResult );
     128             :     };
     129             : 
     130             : //.........................................................................
     131             : }   // namespace dbaui
     132             : //.........................................................................
     133             : 
     134             : #endif // DBACCESS_SOURCE_UI_UNO_COMPOSERDIALOGS_HXX
     135             : 
     136             : 
     137             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10