LCOV - code coverage report
Current view: top level - libreoffice/padmin/source - helper.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 14 0.0 %
Date: 2012-12-27 Functions: 0 8 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 _PAD_HELPER_HXX_
      21             : #define _PAD_HELPER_HXX_
      22             : 
      23             : #include <list>
      24             : #include <tools/string.hxx>
      25             : #include <tools/resid.hxx>
      26             : #include <vcl/dialog.hxx>
      27             : #include <vcl/button.hxx>
      28             : #include <vcl/edit.hxx>
      29             : #include <vcl/fixed.hxx>
      30             : #include <vcl/lstbox.hxx>
      31             : #include <vcl/combobox.hxx>
      32             : 
      33             : #if defined SPA_DLLIMPLEMENTATION
      34             : #define SPA_DLLPUBLIC SAL_DLLPUBLIC_EXPORT
      35             : #else
      36             : #define SPA_DLLPUBLIC SAL_DLLPUBLIC_IMPORT
      37             : #endif
      38             : 
      39             : 
      40             : class Config;
      41             : 
      42             : namespace padmin
      43             : {
      44             : class DelMultiListBox : public MultiListBox
      45             : {
      46             :     Link            m_aDelPressedLink;
      47             : public:
      48           0 :     DelMultiListBox( Window* pParent, const ResId& rResId ) :
      49           0 :             MultiListBox( pParent, rResId ) {}
      50           0 :     ~DelMultiListBox() {}
      51             : 
      52             :     virtual long Notify( NotifyEvent& rEvent );
      53             : 
      54           0 :     Link setDelPressedLink( const Link& rLink )
      55             :     {
      56           0 :         Link aOldLink( m_aDelPressedLink );
      57           0 :                 m_aDelPressedLink = rLink;
      58           0 :                 return aOldLink;
      59             :     }
      60             :     const Link& getDelPressedLink() const { return m_aDelPressedLink; }
      61             : };
      62             : 
      63             : class DelListBox : public ListBox
      64             : {
      65             :     Link            m_aDelPressedLink;
      66             : public:
      67           0 :     DelListBox( Window* pParent, const ResId& rResId ) :
      68           0 :                 ListBox( pParent, rResId ) {}
      69           0 :     ~DelListBox() {}
      70             : 
      71             :     virtual long Notify( NotifyEvent& rEvent );
      72             : 
      73           0 :     Link setDelPressedLink( const Link& rLink )
      74             :     {
      75           0 :         Link aOldLink( m_aDelPressedLink );
      76           0 :         m_aDelPressedLink = rLink;
      77           0 :         return aOldLink;
      78             :     }
      79             :     const Link& getDelPressedLink() const { return m_aDelPressedLink; }
      80             : };
      81             : 
      82             : class QueryString : public ModalDialog
      83             : {
      84             : private:
      85             :     OKButton     m_aOKButton;
      86             :     CancelButton m_aCancelButton;
      87             :     FixedText    m_aFixedText;
      88             :     Edit         m_aEdit;
      89             :     ComboBox     m_aComboBox;
      90             : 
      91             :     String&      m_rReturnValue;
      92             :     bool         m_bUseEdit;
      93             : 
      94             :     DECL_LINK( ClickBtnHdl, Button* );
      95             : 
      96             : public:
      97             :     QueryString( Window*, String &, String &, const ::std::list< String >& rChoices = ::std::list<String>() );
      98             :     // parent window, Query text, initial value
      99             :     ~QueryString();
     100             : };
     101             : 
     102             : sal_Bool AreYouSure( Window*, int nRid = -1 );
     103             : 
     104             : ResId PaResId( sal_uInt32 nId );
     105             : 
     106             : void FindFiles( const String& rDirectory, ::std::list< String >& rResult, const String& rSuffixes, bool bRecursive = false );
     107             : 
     108             : Config& getPadminRC();
     109             : void freePadminRC();
     110             : 
     111             : bool chooseDirectory( String& rInOutPath );
     112             : 
     113             : } // namespace padmin
     114             : 
     115             : #endif
     116             : 
     117             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10