LCOV - code coverage report
Current view: top level - vcl/generic/print - prtsetup.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 2 0.0 %
Date: 2014-11-03 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_VCL_GENERIC_PRINT_PRTSETUP_HXX
      21             : #define INCLUDED_VCL_GENERIC_PRINT_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             : 
      47             :     // controls
      48             :     TabControl*             m_pTabControl;
      49             :     OKButton*               m_pOKButton;
      50             :     CancelButton*           m_pCancelButton;
      51             : 
      52             :     // pages
      53             :     RTSPaperPage*           m_pPaperPage;
      54             :     RTSDevicePage*          m_pDevicePage;
      55             : 
      56             :     // some resources
      57             :     OUString                m_aInvalidString;
      58             : 
      59             :     DECL_LINK( ActivatePage, TabControl* );
      60             :     DECL_LINK( ClickButton, Button* );
      61             : 
      62             :     // helper functions
      63             :     void insertAllPPDValues( ListBox&, const psp::PPDParser*, const psp::PPDKey* );
      64             : public:
      65             :     RTSDialog(const ::psp::PrinterInfo& rJobData, vcl::Window* pParent = NULL);
      66             :     virtual ~RTSDialog();
      67             : 
      68           0 :     const ::psp::PrinterInfo& getSetup() const { return m_aJobData; }
      69             : };
      70             : 
      71             : class RTSPaperPage : public TabPage
      72             : {
      73             :     RTSDialog*          m_pParent;
      74             : 
      75             :     FixedText*          m_pPaperText;
      76             :     ListBox*            m_pPaperBox;
      77             : 
      78             :     ListBox*            m_pOrientBox;
      79             : 
      80             :     FixedText*          m_pDuplexText;
      81             :     ListBox*            m_pDuplexBox;
      82             : 
      83             :     FixedText*          m_pSlotText;
      84             :     ListBox*            m_pSlotBox;
      85             : 
      86             :     DECL_LINK( SelectHdl, ListBox* );
      87             : public:
      88             :     RTSPaperPage( RTSDialog* );
      89             :     virtual ~RTSPaperPage();
      90             : 
      91             :     void update();
      92             : 
      93           0 :     sal_Int32 getOrientation() const { return m_pOrientBox->GetSelectEntryPos(); }
      94             : };
      95             : 
      96             : class RTSDevicePage : public TabPage
      97             : {
      98             :     RTSDialog*          m_pParent;
      99             : 
     100             :     ListBox*            m_pPPDKeyBox;
     101             :     ListBox*            m_pPPDValueBox;
     102             :     const psp::PPDValue* m_pCustomValue;
     103             :     Edit*               m_pCustomEdit;
     104             : 
     105             :     ListBox*            m_pLevelBox;
     106             :     ListBox*            m_pSpaceBox;
     107             :     ListBox*            m_pDepthBox;
     108             : 
     109             :     void FillValueBox( const ::psp::PPDKey* );
     110             : 
     111             :     DECL_LINK( SelectHdl, ListBox* );
     112             :     DECL_LINK( ModifyHdl, Edit* );
     113             : public:
     114             :     RTSDevicePage( RTSDialog* );
     115             :     virtual ~RTSDevicePage();
     116             : 
     117             :     void update();
     118             : 
     119             :     sal_uLong getLevel();
     120             :     sal_uLong getPDFDevice();
     121             :     sal_uLong getDepth();
     122             :     sal_uLong getColorDevice();
     123             : };
     124             : 
     125             : int SetupPrinterDriver(::psp::PrinterInfo& rJobData);
     126             : 
     127             : #endif // _PAD_PRTSETUP_HXX
     128             : 
     129             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10