LCOV - code coverage report
Current view: top level - libreoffice/ucb/source/ucp/ext - ucpext_resultset.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 13 0.0 %
Date: 2012-12-17 Functions: 0 3 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             : #include "ucpext_resultset.hxx"
      21             : #include "ucpext_content.hxx"
      22             : #include "ucpext_datasupplier.hxx"
      23             : 
      24             : #include <ucbhelper/resultset.hxx>
      25             : #include <comphelper/processfactory.hxx>
      26             : 
      27             : //......................................................................................................................
      28             : namespace ucb { namespace ucp { namespace ext
      29             : {
      30             : //......................................................................................................................
      31             : 
      32             :     /** === begin UNO using === **/
      33             :     using ::com::sun::star::uno::Reference;
      34             :     using ::com::sun::star::uno::XInterface;
      35             :     using ::com::sun::star::uno::UNO_QUERY;
      36             :     using ::com::sun::star::uno::UNO_QUERY_THROW;
      37             :     using ::com::sun::star::uno::UNO_SET_THROW;
      38             :     using ::com::sun::star::uno::Exception;
      39             :     using ::com::sun::star::uno::RuntimeException;
      40             :     using ::com::sun::star::uno::Any;
      41             :     using ::com::sun::star::uno::makeAny;
      42             :     using ::com::sun::star::uno::Sequence;
      43             :     using ::com::sun::star::uno::Type;
      44             :     using ::com::sun::star::uno::XComponentContext;
      45             :     using ::com::sun::star::lang::XMultiServiceFactory;
      46             :     using ::com::sun::star::ucb::XContentIdentifier;
      47             :     using ::com::sun::star::ucb::OpenCommandArgument2;
      48             :     using ::com::sun::star::ucb::XCommandEnvironment;
      49             :     /** === end UNO using === **/
      50             : 
      51             :     //==================================================================================================================
      52             :     //= ResultSet
      53             :     //==================================================================================================================
      54             :     //------------------------------------------------------------------------------------------------------------------
      55           0 :     ResultSet::ResultSet( const Reference< XComponentContext >& rxContext, const ::rtl::Reference< Content >& i_rContent,
      56             :             const OpenCommandArgument2& i_rCommand, const Reference< XCommandEnvironment >& i_rEnv )
      57             :         :ResultSetImplHelper( rxContext, i_rCommand )
      58             :         ,m_xEnvironment( i_rEnv )
      59           0 :         ,m_xContent( i_rContent )
      60             :     {
      61           0 :     }
      62             : 
      63             :     //------------------------------------------------------------------------------------------------------------------
      64           0 :     void ResultSet::initStatic()
      65             :     {
      66             :         ::rtl::Reference< DataSupplier > pDataSupplier( new DataSupplier(
      67             :             m_xContext,
      68             :             m_xContent,
      69             :             m_aCommand.Mode
      70           0 :         ) );
      71             :         m_xResultSet1 = new ::ucbhelper::ResultSet(
      72             :             m_xContext,
      73             :             m_aCommand.Properties,
      74           0 :             pDataSupplier.get(),
      75             :             m_xEnvironment
      76           0 :         );
      77           0 :         pDataSupplier->fetchData();
      78           0 :     }
      79             : 
      80             :     //------------------------------------------------------------------------------------------------------------------
      81           0 :     void ResultSet::initDynamic()
      82             :     {
      83           0 :         initStatic();
      84           0 :         m_xResultSet2 = m_xResultSet1;
      85           0 :     }
      86             : 
      87             : //......................................................................................................................
      88             : } } }   // namespace ucp::ext
      89             : //......................................................................................................................
      90             : 
      91             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10