LCOV - code coverage report
Current view: top level - dbaccess/source/ui/uno - composerdialogs.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 2 0.0 %
Date: 2012-08-25 Functions: 0 4 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 4 0.0 %

           Branch data     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 ::svt::OGenericUnoDialog                                    ComposerDialog_BASE;
      43                 :            :     typedef ::comphelper::OPropertyArrayUsageHelper< ComposerDialog >  ComposerDialog_PBASE;
      44                 :            : 
      45                 :            :     class ComposerDialog
      46                 :            :             :public ComposerDialog_BASE
      47                 :            :             ,public ComposerDialog_PBASE
      48                 :            :     {
      49                 :            :         OModuleClient m_aModuleClient;
      50                 :            :     protected:
      51                 :            :         // <properties>
      52                 :            :         ::com::sun::star::uno::Reference< ::com::sun::star::sdb::XSingleSelectQueryComposer >
      53                 :            :                         m_xComposer;
      54                 :            :         ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRowSet >
      55                 :            :                         m_xRowSet;
      56                 :            :         // </properties>
      57                 :            : 
      58                 :            :     protected:
      59                 :            :         ComposerDialog(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB);
      60                 :            :         ~ComposerDialog();
      61                 :            : 
      62                 :            :     public:
      63                 :            :         DECLARE_IMPLEMENTATION_ID( );
      64                 :            : 
      65                 :            :         DECLARE_PROPERTYCONTAINER_DEFAULTS( );
      66                 :            : 
      67                 :            :     protected:
      68                 :            :         // own overridables
      69                 :            :         virtual Dialog* createComposerDialog(
      70                 :            :             Window* _pParent,
      71                 :            :             const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _rxConnection,
      72                 :            :             const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >& _rxColumns
      73                 :            :         ) = 0;
      74                 :            : 
      75                 :            :     private:
      76                 :            :         // OGenericUnoDialog overridables
      77                 :            :         virtual Dialog* createDialog(Window* _pParent);
      78                 :            :     };
      79                 :            : 
      80                 :            :     //=====================================================================
      81                 :            :     //= RowsetFilterDialog
      82                 :            :     //=====================================================================
      83         [ #  # ]:          0 :     class RowsetFilterDialog : public ComposerDialog
      84                 :            :     {
      85                 :            :     public:
      86                 :            :         RowsetFilterDialog(
      87                 :            :             const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB
      88                 :            :         );
      89                 :            : 
      90                 :            :         DECLARE_SERVICE_INFO_STATIC( );
      91                 :            : 
      92                 :            :     protected:
      93                 :            :         // own overridables
      94                 :            :         virtual Dialog* createComposerDialog(
      95                 :            :             Window* _pParent,
      96                 :            :             const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _rxConnection,
      97                 :            :             const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >& _rxColumns
      98                 :            :         );
      99                 :            : 
     100                 :            :         // OGenericUnoDialog overridables
     101                 :            :         virtual void executedDialog( sal_Int16 _nExecutionResult );
     102                 :            :     };
     103                 :            : 
     104                 :            :     //=====================================================================
     105                 :            :     //= RowsetOrderDialog
     106                 :            :     //=====================================================================
     107         [ #  # ]:          0 :     class RowsetOrderDialog : public ComposerDialog
     108                 :            :     {
     109                 :            :     public:
     110                 :            :         RowsetOrderDialog(
     111                 :            :             const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB
     112                 :            :         );
     113                 :            : 
     114                 :            :         DECLARE_SERVICE_INFO_STATIC( );
     115                 :            : 
     116                 :            :     protected:
     117                 :            :         // own overridables
     118                 :            :         virtual Dialog* createComposerDialog(
     119                 :            :             Window* _pParent,
     120                 :            :             const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _rxConnection,
     121                 :            :             const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >& _rxColumns
     122                 :            :         );
     123                 :            : 
     124                 :            :         // OGenericUnoDialog overridables
     125                 :            :         virtual void executedDialog( sal_Int16 _nExecutionResult );
     126                 :            :     };
     127                 :            : 
     128                 :            : //.........................................................................
     129                 :            : }   // namespace dbaui
     130                 :            : //.........................................................................
     131                 :            : 
     132                 :            : #endif // DBACCESS_SOURCE_UI_UNO_COMPOSERDIALOGS_HXX
     133                 :            : 
     134                 :            : 
     135                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10