LCOV - code coverage report
Current view: top level - sfx2/inc/sfx2 - passwd.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 6 0.0 %
Date: 2012-08-25 Functions: 0 7 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 42 0.0 %

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : #ifndef _SFX_PASSWD_HXX
      29                 :            : #define _SFX_PASSWD_HXX
      30                 :            : 
      31                 :            : #include "sal/config.h"
      32                 :            : #include <sfx2/dllapi.h>
      33                 :            : #include <vcl/button.hxx>
      34                 :            : #include <vcl/dialog.hxx>
      35                 :            : #include <vcl/edit.hxx>
      36                 :            : #include <vcl/fixed.hxx>
      37                 :            : #include <sfx2/app.hxx>
      38                 :            : 
      39                 :            : // defines ---------------------------------------------------------------
      40                 :            : 
      41                 :            : #define SHOWEXTRAS_NONE      ((sal_uInt16)0x0000)
      42                 :            : #define SHOWEXTRAS_USER      ((sal_uInt16)0x0001)
      43                 :            : #define SHOWEXTRAS_CONFIRM   ((sal_uInt16)0x0002)
      44                 :            : #define SHOWEXTRAS_PASSWORD2 ((sal_uInt16)0x0004)
      45                 :            : #define SHOWEXTRAS_CONFIRM2  ((sal_uInt16)0x0008)
      46                 :            : #define SHOWEXTRAS_ALL       ((sal_uInt16)(SHOWEXTRAS_USER | SHOWEXTRAS_CONFIRM))
      47                 :            : 
      48                 :            : // class SfxPasswordDialog -----------------------------------------------
      49                 :            : 
      50 [ #  # ][ #  # ]:          0 : class SFX2_DLLPUBLIC SfxPasswordDialog : public ModalDialog
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
                 [ #  # ]
      51                 :            : {
      52                 :            : private:
      53                 :            :     FixedLine       maPasswordBox;
      54                 :            :     FixedText       maUserFT;
      55                 :            :     Edit            maUserED;
      56                 :            :     FixedText       maPasswordFT;
      57                 :            :     Edit            maPasswordED;
      58                 :            :     FixedText       maConfirmFT;
      59                 :            :     Edit            maConfirmED;
      60                 :            :     FixedText       maMinLengthFT;
      61                 :            :     FixedLine       maPassword2Box;
      62                 :            :     FixedText       maPassword2FT;
      63                 :            :     Edit            maPassword2ED;
      64                 :            :     FixedText       maConfirm2FT;
      65                 :            :     Edit            maConfirm2ED;
      66                 :            : 
      67                 :            :     OKButton        maOKBtn;
      68                 :            :     CancelButton    maCancelBtn;
      69                 :            :     HelpButton      maHelpBtn;
      70                 :            : 
      71                 :            :     String          maConfirmStr;
      72                 :            :     String          maMinLenPwdStr;
      73                 :            :     String          maEmptyPwdStr;
      74                 :            :     String          maMainPwdStr;
      75                 :            :     sal_uInt16      mnMinLen;
      76                 :            :     sal_uInt16      mnExtras;
      77                 :            : 
      78                 :            :     bool            mbAsciiOnly;
      79                 :            :     DECL_DLLPRIVATE_LINK( EditModifyHdl, Edit* );
      80                 :            :     DECL_DLLPRIVATE_LINK(OKHdl, void *);
      81                 :            : 
      82                 :            :     void            SetPasswdText();
      83                 :            : 
      84                 :            : public:
      85                 :            :     SfxPasswordDialog( Window* pParent, const String* pGroupText = NULL );
      86                 :            : 
      87                 :            :     String          GetUser() const { return maUserED.GetText(); }
      88                 :          0 :     String          GetPassword() const { return maPasswordED.GetText(); }
      89                 :          0 :     String          GetConfirm() const { return maConfirmED.GetText(); }
      90                 :            : 
      91                 :          0 :     String          GetPassword2() const { return maPassword2ED.GetText(); }
      92                 :          0 :     String          GetConfirm2() const { return maConfirm2ED.GetText(); }
      93                 :            :     void            SetGroup2Text( const String& i_rText ) { maPassword2Box.SetText( i_rText ); }
      94                 :            : 
      95                 :            :     void            SetMinLen( sal_uInt16 Len );
      96                 :            :     void            SetEditHelpId( const rtl::OString& rId ) { maPasswordED.SetHelpId( rId ); }
      97                 :          0 :     void            ShowExtras( sal_uInt16 nExtras ) { mnExtras = nExtras; }
      98                 :            :     void            AllowAsciiOnly( bool i_bAsciiOnly = true ) { mbAsciiOnly = i_bAsciiOnly; }
      99                 :            : 
     100                 :            :     virtual short   Execute();
     101                 :            : };
     102                 :            : 
     103                 :            : #endif // #ifndef _SFX_PASSWD_HXX
     104                 :            : 
     105                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10