LCOV - code coverage report
Current view: top level - libreoffice/framework/inc/services - licensedlg.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 3 0.0 %
Date: 2012-12-27 Functions: 0 3 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             : #ifndef __LICENSEDLG_HXX__
      20             : #define __LICENSEDLG_HXX__
      21             : 
      22             : #include <sal/types.h>
      23             : #include <rtl/string.hxx>
      24             : #include <rtl/ustring.hxx>
      25             : #include <rtl/ustrbuf.hxx>
      26             : #include <tools/string.hxx>
      27             : #include <tools/resmgr.hxx>
      28             : #include <vcl/button.hxx>
      29             : #include <vcl/edit.hxx>
      30             : #include <vcl/fixed.hxx>
      31             : #include <vcl/dialog.hxx>
      32             : #include <vcl/scrbar.hxx>
      33             : #include <svtools/svmedit.hxx>
      34             : #include <svl/lstner.hxx>
      35             : 
      36             : namespace framework {
      37             : 
      38             : class LicenseView : public MultiLineEdit, public SfxListener
      39             : {
      40             :     sal_Bool            mbEndReached;
      41             :     Link            maEndReachedHdl;
      42             :     Link            maScrolledHdl;
      43             : 
      44             : public:
      45             :     LicenseView( Window* pParent, const ResId& rResId );
      46             :     ~LicenseView();
      47             : 
      48             :     void ScrollDown( ScrollType eScroll );
      49             : 
      50             :     sal_Bool IsEndReached() const;
      51           0 :     sal_Bool EndReached() const { return mbEndReached; }
      52             :     void SetEndReached( sal_Bool bEnd ) { mbEndReached = bEnd; }
      53             : 
      54           0 :     void SetEndReachedHdl( const Link& rHdl )  { maEndReachedHdl = rHdl; }
      55             :     const Link& GetAutocompleteHdl() const { return maEndReachedHdl; }
      56             : 
      57           0 :     void SetScrolledHdl( const Link& rHdl )  { maScrolledHdl = rHdl; }
      58             :     const Link& GetScrolledHdl() const { return maScrolledHdl; }
      59             : 
      60             :     using MultiLineEdit::Notify;
      61             :     virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
      62             : };
      63             : 
      64             : class LicenseDialog : public ModalDialog
      65             : {
      66             :     LicenseView     aLicenseML;
      67             :     FixedText       aInfo1FT;
      68             :     FixedText       aInfo2FT;
      69             :     FixedText       aInfo3FT;
      70             :     FixedText       aInfo2_1FT;
      71             :     FixedText       aInfo3_1FT;
      72             :     FixedLine       aFixedLine;
      73             :     PushButton      aPBPageDown;
      74             :     PushButton      aPBDecline;
      75             :     PushButton      aPBAccept;
      76             :     FixedImage      aArrow;
      77             :     String          aStrAccept;
      78             :     String          aStrNotAccept;
      79             :     String          aOldCancelText;
      80             :     sal_Bool            bEndReached;
      81             : 
      82             :     void                EnableControls();
      83             : 
      84             :     DECL_LINK(PageDownHdl, void *);
      85             :     DECL_LINK(EndReachedHdl, void *);
      86             :     DECL_LINK(ScrolledHdl, void *);
      87             :     DECL_LINK(AcceptBtnHdl, void *);
      88             :     DECL_LINK(DeclineBtnHdl, void *);
      89             : 
      90             :     public:
      91             :         LicenseDialog(const rtl::OUString& aLicense, ResMgr *pResMgr);
      92             :         virtual ~LicenseDialog();
      93             : 
      94             : };
      95             : }
      96             : #endif
      97             : 
      98             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10