LCOV - code coverage report
Current view: top level - dbaccess/source/ui/inc - CollectionView.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 1 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 1 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_INC_COLLECTIONVIEW_HXX
      21             : #define INCLUDED_DBACCESS_SOURCE_UI_INC_COLLECTIONVIEW_HXX
      22             : 
      23             : #include <svtools/fileview.hxx>
      24             : #include <vcl/button.hxx>
      25             : #include <vcl/edit.hxx>
      26             : #include <vcl/fixed.hxx>
      27             : #include <com/sun/star/ucb/XContent.hpp>
      28             : #include <com/sun/star/lang/XMultiServiceFactory.hpp>
      29             : #include <com/sun/star/uno/XComponentContext.hpp>
      30             : 
      31             : namespace dbaui
      32             : {
      33             :     /* this class allows to browse through the collection of forms and reports
      34             :     */
      35             :     class OCollectionView : public ModalDialog
      36             :     {
      37             :         VclPtr<FixedText>      m_pFTCurrentPath;
      38             :         VclPtr<PushButton>     m_pNewFolder;
      39             :         VclPtr<PushButton>     m_pUp;
      40             :         VclPtr<SvtFileView>    m_pView;
      41             :         VclPtr<Edit>           m_pName;
      42             :         VclPtr<PushButton>     m_pPB_OK;
      43             :         ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XContent>                  m_xContent;
      44             :         ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >        m_xContext;
      45             :         bool        m_bCreateForm;
      46             : 
      47             :         DECL_LINK(Up_Click,void*);
      48             :         DECL_LINK(NewFolder_Click,void*);
      49             :         DECL_LINK(Save_Click,void*);
      50             :         DECL_LINK(Dbl_Click_FileView,void*);
      51             : 
      52             :         /// sets the fixedtext to the right content
      53             :         void initCurrentPath();
      54             :     public:
      55             :         OCollectionView( vcl::Window * pParent
      56             :                         ,const ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XContent>& _xContent
      57             :                         ,const OUString& _sDefaultName
      58             :                         ,const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxContext);
      59             :         virtual ~OCollectionView();
      60             :         virtual void dispose() SAL_OVERRIDE;
      61           0 :         ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XContent> getSelectedFolder() const { return m_xContent;}
      62             :         OUString getName() const;
      63             :     };
      64             : }   // namespace dbaui
      65             : 
      66             : #endif // INCLUDED_DBACCESS_SOURCE_UI_INC_COLLECTIONVIEW_HXX
      67             : 
      68             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11