LCOV - code coverage report
Current view: top level - uui/source - sslwarndlg.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 16 0.0 %
Date: 2012-08-25 Functions: 0 5 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                 :            :  * 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 <vcl/msgbox.hxx>
      21                 :            : 
      22                 :            : #include <ids.hrc>
      23                 :            : #include <sslwarndlg.hrc>
      24                 :            : #include <sslwarndlg.hxx>
      25                 :            : 
      26                 :            : #include <com/sun/star/security/XDocumentDigitalSignatures.hpp>
      27                 :            : 
      28                 :            : // -----------------------------------------------------------------------
      29                 :            : 
      30                 :          0 : IMPL_LINK_NOARG(SSLWarnDialog, OKHdl_Impl)
      31                 :            : {
      32                 :          0 :     EndDialog( RET_OK );
      33                 :          0 :     return 1;
      34                 :            : }
      35                 :            : 
      36                 :            : // -----------------------------------------------------------------------
      37                 :            : 
      38                 :          0 : IMPL_LINK_NOARG(SSLWarnDialog, ViewCertHdl_Impl)
      39                 :            : {
      40                 :          0 :     uno::Reference< ::com::sun::star::security::XDocumentDigitalSignatures > xDocumentDigitalSignatures;
      41                 :            : 
      42                 :            :     xDocumentDigitalSignatures = uno::Reference< ::com::sun::star::security::XDocumentDigitalSignatures >(
      43 [ #  # ][ #  # ]:          0 :                     getServiceFactory().get()->createInstance( rtl::OUString( "com.sun.star.security.DocumentDigitalSignatures" )), uno::UNO_QUERY );
         [ #  # ][ #  # ]
                 [ #  # ]
      44                 :            : 
      45 [ #  # ][ #  # ]:          0 :     xDocumentDigitalSignatures.get()->showCertificate(getCert());
                 [ #  # ]
      46                 :            : 
      47                 :          0 :     return 0;
      48                 :            : }
      49                 :            : 
      50                 :            : // -----------------------------------------------------------------------
      51                 :            : 
      52                 :          0 : SSLWarnDialog::SSLWarnDialog
      53                 :            : (
      54                 :            :     Window*                                     pParent,
      55                 :            :     const cssu::Reference< dcss::security::XCertificate >& rXCert,
      56                 :            :     const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& xServiceFactory,
      57                 :            :     ResMgr*                                     pResMgr
      58                 :            : ) :
      59                 :            : 
      60                 :            :     ModalDialog( pParent, ResId( DLG_UUI_SSLWARN, *pResMgr ) ),
      61                 :            :     m_aLabel1 ( this, ResId( FT_LABEL_1, *pResMgr ) ),
      62                 :            :     m_aOkButton ( this, ResId( PB_OK, *pResMgr ) ),
      63                 :            :     m_aCancelButton ( this, ResId( PB_CANCEL, *pResMgr ) ),
      64                 :            :     m_aCommandButtonViewCert ( this, ResId( PB_VIEW__CERTIFICATE, *pResMgr ) ),
      65                 :            :     m_aLine ( this, ResId( FL_LINE, *pResMgr ) ),
      66                 :            :     m_aWarnImage ( this, ResId( IMG_WARN, *pResMgr ) ),
      67                 :            :     m_xServiceFactory ( xServiceFactory ),
      68                 :            :     m_rXCert ( rXCert ),
      69 [ #  # ][ #  # ]:          0 :     pResourceMgr    ( pResMgr )
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
                 [ #  # ]
      70                 :            : {
      71         [ #  # ]:          0 :     FreeResource();
      72 [ #  # ][ #  # ]:          0 :     m_aWarnImage.SetImage( WarningBox::GetStandardImage() );
                 [ #  # ]
      73                 :          0 :     m_pParent = pParent;
      74         [ #  # ]:          0 :     m_aCommandButtonViewCert.SetClickHdl( LINK( this, SSLWarnDialog, ViewCertHdl_Impl ) );
      75         [ #  # ]:          0 :     m_aOkButton.SetClickHdl( LINK( this, SSLWarnDialog, OKHdl_Impl ) );
      76                 :          0 : };
      77                 :            : 
      78                 :            : 
      79                 :            : 
      80                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10