LCOV - code coverage report
Current view: top level - vcl/generic/print - prtsetup.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 2 0.0 %
Date: 2014-04-14 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 _PAD_PRTSETUP_HXX_
      21             : #define _PAD_PRTSETUP_HXX_
      22             : 
      23             : #include "tools/link.hxx"
      24             : 
      25             : #include "vcl/tabdlg.hxx"
      26             : #include "vcl/tabpage.hxx"
      27             : #include "vcl/tabctrl.hxx"
      28             : #include "vcl/button.hxx"
      29             : #include "vcl/edit.hxx"
      30             : #include "vcl/fixed.hxx"
      31             : #include "vcl/lstbox.hxx"
      32             : #include "vcl/field.hxx"
      33             : #include "vcl/combobox.hxx"
      34             : #include "vcl/ppdparser.hxx"
      35             : #include "vcl/printerinfomanager.hxx"
      36             : 
      37             : class RTSPaperPage;
      38             : class RTSDevicePage;
      39             : 
      40             : class RTSDialog : public TabDialog
      41             : {
      42             :     friend class RTSPaperPage;
      43             :     friend class RTSDevicePage;
      44             : 
      45             :     ::psp::PrinterInfo      m_aJobData;
      46             :     OUString                m_aPrinter;
      47             : 
      48             :     // controls
      49             :     TabControl*             m_pTabControl;
      50             :     OKButton*               m_pOKButton;
      51             :     CancelButton*           m_pCancelButton;
      52             : 
      53             :     // pages
      54             :     RTSPaperPage*           m_pPaperPage;
      55             :     RTSDevicePage*          m_pDevicePage;
      56             : 
      57             :     // some resources
      58             :     OUString                m_aInvalidString;
      59             : 
      60             :     DECL_LINK( ActivatePage, TabControl* );
      61             :     DECL_LINK( ClickButton, Button* );
      62             : 
      63             :     // helper functions
      64             :     void insertAllPPDValues( ListBox&, const psp::PPDParser*, const psp::PPDKey* );
      65             : public:
      66             :     RTSDialog(const ::psp::PrinterInfo& rJobData, const OUString& rPrinter, Window* pParent = NULL);
      67             :     virtual ~RTSDialog();
      68             : 
      69           0 :     const ::psp::PrinterInfo& getSetup() const { return m_aJobData; }
      70             : };
      71             : 
      72             : class RTSPaperPage : public TabPage
      73             : {
      74             :     RTSDialog*          m_pParent;
      75             : 
      76             :     FixedText*          m_pPaperText;
      77             :     ListBox*            m_pPaperBox;
      78             : 
      79             :     ListBox*            m_pOrientBox;
      80             : 
      81             :     FixedText*          m_pDuplexText;
      82             :     ListBox*            m_pDuplexBox;
      83             : 
      84             :     FixedText*          m_pSlotText;
      85             :     ListBox*            m_pSlotBox;
      86             : 
      87             :     DECL_LINK( SelectHdl, ListBox* );
      88             : public:
      89             :     RTSPaperPage( RTSDialog* );
      90             :     virtual ~RTSPaperPage();
      91             : 
      92             :     void update();
      93             : 
      94           0 :     sal_Int32 getOrientation() const { return m_pOrientBox->GetSelectEntryPos(); }
      95             : };
      96             : 
      97             : class RTSDevicePage : public TabPage
      98             : {
      99             :     RTSDialog*          m_pParent;
     100             : 
     101             :     OUString            m_aSpaceColor;
     102             :     OUString            m_aSpaceGray;
     103             : 
     104             :     ListBox*            m_pPPDKeyBox;
     105             :     ListBox*            m_pPPDValueBox;
     106             :     const psp::PPDValue* m_pCustomValue;
     107             :     Edit*               m_pCustomEdit;
     108             : 
     109             :     ListBox*            m_pLevelBox;
     110             :     ListBox*            m_pSpaceBox;
     111             :     ListBox*            m_pDepthBox;
     112             : 
     113             :     void FillValueBox( const ::psp::PPDKey* );
     114             : 
     115             :     DECL_LINK( SelectHdl, ListBox* );
     116             :     DECL_LINK( ModifyHdl, Edit* );
     117             : public:
     118             :     RTSDevicePage( RTSDialog* );
     119             :     virtual ~RTSDevicePage();
     120             : 
     121             :     void update();
     122             : 
     123             :     sal_uLong getLevel();
     124             :     sal_uLong getPDFDevice();
     125             :     sal_uLong getDepth();
     126             :     sal_uLong getColorDevice();
     127             : };
     128             : 
     129             : int SetupPrinterDriver(::psp::PrinterInfo& rJobData);
     130             : 
     131             : #endif // _PAD_PRTSETUP_HXX
     132             : 
     133             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10