LCOV - code coverage report
Current view: top level - include/svtools - prnsetup.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 2 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 2 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_SVTOOLS_PRNSETUP_HXX
      21             : #define INCLUDED_SVTOOLS_PRNSETUP_HXX
      22             : 
      23             : #include <svtools/svtdllapi.h>
      24             : 
      25             : #include <vcl/dialog.hxx>
      26             : #include <vcl/fixed.hxx>
      27             : #include <vcl/button.hxx>
      28             : #include <vcl/group.hxx>
      29             : #include <vcl/lstbox.hxx>
      30             : #include <vcl/timer.hxx>
      31             : #include <svtools/stdctrl.hxx>
      32             : 
      33             : class Printer;
      34             : class QueueInfo;
      35             : 
      36             : 
      37             : // - PrinterSetupDialog -
      38             : 
      39             : 
      40             : class SVT_DLLPUBLIC PrinterSetupDialog : public ModalDialog
      41             : {
      42             : private:
      43             :     VclPtr<ListBox>        m_pLbName;
      44             :     VclPtr<PushButton>     m_pBtnProperties;
      45             :     VclPtr<PushButton>     m_pBtnOptions;
      46             :     VclPtr<FixedText>      m_pFiStatus;
      47             :     VclPtr<FixedText>      m_pFiType;
      48             :     VclPtr<FixedText>      m_pFiLocation;
      49             :     VclPtr<FixedText>      m_pFiComment;
      50             :     AutoTimer              maStatusTimer;
      51             :     VclPtr<Printer>        mpPrinter;
      52             :     VclPtr<Printer>        mpTempPrinter;
      53             : 
      54             :     SVT_DLLPRIVATE void         ImplSetInfo();
      55             : 
      56             :                     DECL_DLLPRIVATE_LINK( ImplPropertiesHdl, void* );
      57             :                     DECL_DLLPRIVATE_LINK( ImplOptionsHdl, void* );
      58             :                     DECL_DLLPRIVATE_LINK( ImplChangePrinterHdl, void* );
      59             :                     DECL_DLLPRIVATE_LINK_TYPED( ImplStatusHdl, Timer*, void );
      60             : 
      61             : public:
      62             :                     PrinterSetupDialog( vcl::Window* pWindow );
      63             :     virtual         ~PrinterSetupDialog();
      64             :     virtual void    dispose() SAL_OVERRIDE;
      65             : 
      66           0 :     void            SetPrinter( Printer* pNewPrinter ) { mpPrinter = pNewPrinter; }
      67           0 :     Printer*        GetPrinter() const { return mpPrinter; }
      68             : 
      69             :     virtual void    DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE;
      70             :     virtual bool    Notify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
      71             : 
      72             :     virtual short   Execute() SAL_OVERRIDE;
      73             : 
      74             :     void                SetOptionsHdl( const Link<>& rLink );
      75             : };
      76             : 
      77             : 
      78             : // - Helper functions for print dialog -
      79             : 
      80             : 
      81             : #define IMPL_PRINTDLG_STATUS_UPDATE     15000
      82             : 
      83             : void ImplFillPrnDlgListBox( const Printer* pPrinter,
      84             :                             ListBox* pBox, PushButton* pPropBtn );
      85             : void ImplFreePrnDlgListBox( ListBox* pBox, bool bClear = true );
      86             : Printer* ImplPrnDlgListBoxSelect( ListBox* pBox, PushButton* pPropBtn,
      87             :                                   Printer* pPrinter, Printer* pTempPrinter );
      88             : Printer* ImplPrnDlgUpdatePrinter( Printer* pPrinter, Printer* pTempPrinter );
      89             : void ImplPrnDlgUpdateQueueInfo( ListBox* pBox, QueueInfo& rInfo );
      90             : OUString ImplPrnDlgGetStatusText( const QueueInfo& rInfo );
      91             : 
      92             : #endif // INCLUDED_SVTOOLS_PRNSETUP_HXX
      93             : 
      94             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11