LCOV - code coverage report
Current view: top level - dbaccess/source/ui/uno - composerdialogs.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 2 0.0 %
Date: 2014-04-14 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 INCLUDED_DBACCESS_SOURCE_UI_UNO_COMPOSERDIALOGS_HXX
      21             : #define INCLUDED_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             : namespace dbaui
      34             : {
      35             : 
      36             :     // ComposerDialog
      37             :     class ComposerDialog;
      38             :     typedef ::comphelper::OPropertyArrayUsageHelper< ComposerDialog >  ComposerDialog_PBASE;
      39             : 
      40             :     class ComposerDialog
      41             :             :public svt::OGenericUnoDialog
      42             :             ,public ComposerDialog_PBASE
      43             :     {
      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>
      52             : 
      53             :     protected:
      54             :         ComposerDialog(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxORB);
      55             :         virtual ~ComposerDialog();
      56             : 
      57             :     public:
      58             :         virtual css::uno::Sequence<sal_Int8> SAL_CALL getImplementationId()
      59             :             throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      60             : 
      61             :         DECLARE_PROPERTYCONTAINER_DEFAULTS( );
      62             : 
      63             :     protected:
      64             :         // own overridables
      65             :         virtual Dialog* createComposerDialog(
      66             :             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;
      70             : 
      71             :     private:
      72             :         // OGenericUnoDialog overridables
      73             :         virtual Dialog* createDialog(Window* _pParent) SAL_OVERRIDE;
      74             :     };
      75             : 
      76             :     // RowsetFilterDialog
      77           0 :     class RowsetFilterDialog : public ComposerDialog
      78             :     {
      79             :     public:
      80             :         RowsetFilterDialog(
      81             :             const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxORB
      82             :         );
      83             : 
      84             :         DECLARE_SERVICE_INFO_STATIC( );
      85             : 
      86             :     protected:
      87             :         // own overridables
      88             :         virtual Dialog* createComposerDialog(
      89             :             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;
      93             : 
      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;
      98             : 
      99             :     };
     100             : 
     101             :     // RowsetOrderDialog
     102           0 :     class RowsetOrderDialog : public ComposerDialog
     103             :     {
     104             :     public:
     105             :         RowsetOrderDialog(
     106             :             const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxORB
     107             :         );
     108             : 
     109             :         DECLARE_SERVICE_INFO_STATIC( );
     110             : 
     111             :     protected:
     112             :         // own overridables
     113             :         virtual Dialog* createComposerDialog(
     114             :             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;
     118             : 
     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;
     123             :     };
     124             : 
     125             : }   // namespace dbaui
     126             : 
     127             : #endif // INCLUDED_DBACCESS_SOURCE_UI_UNO_COMPOSERDIALOGS_HXX
     128             : 
     129             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10