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

Generated by: LCOV version 1.10