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

Generated by: LCOV version 1.10