LCOV - code coverage report
Current view: top level - libreoffice/extensions/source/propctrlr - listselectiondlg.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 1 0.0 %
Date: 2012-12-17 Functions: 0 2 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 EXTENSIONS_SOURCE_PROPCTRLR_LISTSELECTIONDLG_HXX
      21             : #define EXTENSIONS_SOURCE_PROPCTRLR_LISTSELECTIONDLG_HXX
      22             : 
      23             : #include <vcl/dialog.hxx>
      24             : #include <vcl/fixed.hxx>
      25             : #include <vcl/button.hxx>
      26             : #include <vcl/lstbox.hxx>
      27             : 
      28             : #include <com/sun/star/beans/XPropertySet.hpp>
      29             : 
      30             : //........................................................................
      31             : namespace pcr
      32             : {
      33             : //........................................................................
      34             : 
      35             :     //====================================================================
      36             :     //= ListSelectionDialog
      37             :     //====================================================================
      38           0 :     class ListSelectionDialog : public ModalDialog
      39             :     {
      40             :     private:
      41             :         FixedText       m_aLabel;
      42             :         ListBox         m_aEntries;
      43             :         OKButton        m_aOK;
      44             :         CancelButton    m_aCancel;
      45             :         HelpButton      m_aHelp;
      46             : 
      47             :         ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >
      48             :                         m_xListBox;
      49             :         ::rtl::OUString m_sPropertyName;
      50             : 
      51             :     public:
      52             :         ListSelectionDialog(
      53             :             Window* _pParent,
      54             :             const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxListBox,
      55             :             const ::rtl::OUString& _rPropertyName,
      56             :             const String& _rPropertyUIName
      57             :         );
      58             : 
      59             :         // Dialog overridables
      60             :         virtual short   Execute();
      61             : 
      62             :     private:
      63             :         void    initialize( );
      64             :         void    commitSelection();
      65             : 
      66             :         void    fillEntryList   ( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& _rListEntries );
      67             : 
      68             :         void    selectEntries   ( const ::com::sun::star::uno::Sequence< sal_Int16 >& /* [in ] */ _rSelection );
      69             :         void    collectSelection(       ::com::sun::star::uno::Sequence< sal_Int16 >& /* [out] */ _rSelection );
      70             :     };
      71             : 
      72             : //........................................................................
      73             : } // namespacepcr
      74             : //........................................................................
      75             : 
      76             : #endif // EXTENSIONS_SOURCE_PROPCTRLR_LISTSELECTIONDLG_HXX
      77             : 
      78             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10