LCOV - code coverage report
Current view: top level - sw/source/ui/envelp - envprt.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_SW_SOURCE_UI_ENVELP_ENVPRT_HXX
      21             : #define INCLUDED_SW_SOURCE_UI_ENVELP_ENVPRT_HXX
      22             : 
      23             : #include <sfx2/tabdlg.hxx>
      24             : #include <vcl/toolbox.hxx>
      25             : #include <vcl/field.hxx>
      26             : #include <vcl/fixed.hxx>
      27             : #include <vcl/group.hxx>
      28             : #include <vcl/button.hxx>
      29             : #include <svtools/stdctrl.hxx>
      30             : 
      31             : #include "envimg.hxx"
      32             : #include "envlop.hxx"
      33             : 
      34             : class SwEnvDlg;
      35             : 
      36             : class SwEnvPrtPage : public SfxTabPage
      37             : {
      38             :     VclPtr<ToolBox>     m_pAlignBox;
      39             :     VclPtr<RadioButton> m_pTopButton;
      40             :     VclPtr<RadioButton> m_pBottomButton;
      41             :     VclPtr<MetricField> m_pRightField;
      42             :     VclPtr<MetricField> m_pDownField;
      43             :     VclPtr<FixedText>   m_pPrinterInfo;
      44             :     VclPtr<PushButton>  m_pPrtSetup;
      45             : 
      46             :     sal_uInt16 m_aIds[ENV_VER_RGHT-ENV_HOR_LEFT+1];
      47             : 
      48             :     VclPtr<Printer>     pPrt;
      49             : 
      50             :     DECL_LINK(ClickHdl, void *);
      51             :     DECL_LINK_TYPED(AlignHdl, ToolBox *, void);
      52             :     DECL_LINK( ButtonHdl, Button * );
      53             : 
      54           0 :     SwEnvDlg* GetParentSwEnvDlg() {return static_cast<SwEnvDlg*>( GetParentDialog());}
      55             : 
      56             :     using TabPage::ActivatePage;
      57             :     using TabPage::DeactivatePage;
      58             : 
      59             : public:
      60             :     SwEnvPrtPage(vcl::Window* pParent, const SfxItemSet& rSet);
      61             :     virtual ~SwEnvPrtPage();
      62             :     virtual void dispose() SAL_OVERRIDE;
      63             : 
      64             :     static VclPtr<SfxTabPage> Create(vcl::Window* pParent, const SfxItemSet* rSet);
      65             : 
      66             :     virtual void ActivatePage(const SfxItemSet& rSet) SAL_OVERRIDE;
      67             :     virtual sfxpg DeactivatePage(SfxItemSet* pSet = 0) SAL_OVERRIDE;
      68             :             void FillItem(SwEnvItem& rItem);
      69             :     virtual bool FillItemSet(SfxItemSet* rSet) SAL_OVERRIDE;
      70             :     virtual void Reset(const SfxItemSet* rSet) SAL_OVERRIDE;
      71             : 
      72           0 :     inline void SetPrt(Printer* pPrinter) { pPrt = pPrinter; }
      73             : };
      74             : 
      75             : #endif
      76             : 
      77             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11