LCOV - code coverage report
Current view: top level - include/vcl - msgbox.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 8 0.0 %
Date: 2014-04-14 Functions: 0 12 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 INCLUDED_VCL_MSGBOX_HXX
      21             : #define INCLUDED_VCL_MSGBOX_HXX
      22             : 
      23             : #include <vcl/dllapi.h>
      24             : #include <vcl/btndlg.hxx>
      25             : #include <vcl/image.hxx>
      26             : #include <vcl/bitmap.hxx>
      27             : 
      28             : class VclMultiLineEdit;
      29             : class FixedImage;
      30             : class CheckBox;
      31             : 
      32             : class VCL_DLLPUBLIC MessBox : public ButtonDialog
      33             : {
      34             : protected:
      35             :     VclMultiLineEdit*   mpVCLMultiLineEdit;
      36             :     FixedImage*         mpFixedImage;
      37             :     OUString            maMessText;
      38             :     Image               maImage;
      39             :     bool            mbHelpBtn;
      40             :     CheckBox*           mpCheckBox;
      41             :     OUString            maCheckBoxText;
      42             :     bool            mbCheck;
      43             : 
      44             :     SAL_DLLPRIVATE void ImplInitMessBoxData();
      45             :     SAL_DLLPRIVATE void ImplInitButtons();
      46             :     SAL_DLLPRIVATE void ImplPosControls();
      47             : 
      48             : protected:
      49             :     SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId );
      50             : 
      51             : public:
      52             :                         MessBox( Window* pParent, WinBits nStyle,
      53             :                                  const OUString& rTitle, const OUString& rMessage );
      54             :                         MessBox( Window* pParent, const ResId& rResId );
      55             :                         virtual ~MessBox();
      56             : 
      57             :     virtual void        StateChanged( StateChangedType nStateChange ) SAL_OVERRIDE;
      58             : 
      59           0 :     void                SetMessText( const OUString& rText ) { maMessText = rText; }
      60           0 :     const OUString&     GetMessText() const { return maMessText; }
      61             : 
      62           0 :     void                SetImage( const Image& rImage ) { maImage = rImage; }
      63             :     const Image&        GetImage() const { return maImage; }
      64             : 
      65           0 :     void                SetCheckBoxText( const OUString& rText ) { maCheckBoxText = rText;}
      66             :     const OUString&     GetCheckBoxText() const { return maCheckBoxText;}
      67             :     void                SetCheckBoxState( bool bCheck );
      68             :     bool            GetCheckBoxState() const;
      69             : 
      70             :     virtual Size        GetOptimalSize() const SAL_OVERRIDE;
      71             : };
      72             : 
      73           0 : class VCL_DLLPUBLIC InfoBox : public MessBox
      74             : {
      75             : private:
      76             :     SAL_DLLPRIVATE void ImplInitInfoBoxData();
      77             : 
      78             : public:
      79             :                         InfoBox( Window* pParent, const OUString& rMessage );
      80             :                         InfoBox( Window* pParent, const ResId & rResId );
      81             :                         InfoBox( Window* pParent, WinBits nStyle,
      82             :                                 const OUString& rMessage );
      83             : 
      84             :     static Image        GetStandardImage();
      85             : };
      86             : 
      87           0 : class VCL_DLLPUBLIC WarningBox : public MessBox
      88             : {
      89             : private:
      90             :     SAL_DLLPRIVATE void ImplInitWarningBoxData();
      91             : 
      92             : public:
      93             :                         WarningBox( Window* pParent, WinBits nStyle,
      94             :                                     const OUString& rMessage );
      95             :                         WarningBox( Window* pParent, const ResId& rResId );
      96             : 
      97             :     void                SetDefaultCheckBoxText();
      98             : 
      99             :     static Image        GetStandardImage();
     100             : };
     101             : 
     102           0 : class VCL_DLLPUBLIC ErrorBox : public MessBox
     103             : {
     104             : private:
     105             :     SAL_DLLPRIVATE void ImplInitErrorBoxData();
     106             : 
     107             : public:
     108             :                         ErrorBox( Window* pParent, WinBits nStyle,
     109             :                                   const OUString& rMessage );
     110             :                         ErrorBox( Window* pParent, const ResId& rResId );
     111             : 
     112             :     static Image        GetStandardImage();
     113             : };
     114             : 
     115           0 : class VCL_DLLPUBLIC QueryBox : public MessBox
     116             : {
     117             : private:
     118             :     SAL_DLLPRIVATE void ImplInitQueryBoxData();
     119             : 
     120             : public:
     121             :                         QueryBox( Window* pParent, WinBits nStyle,
     122             :                                   const OUString& rMessage );
     123             :                         QueryBox( Window* pParent, const ResId& rResId );
     124             : 
     125             :     void                SetDefaultCheckBoxText();
     126             : 
     127             :     static Image        GetStandardImage();
     128             : };
     129             : 
     130             : #endif // INCLUDED_VCL_MSGBOX_HXX
     131             : 
     132             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10