LCOV - code coverage report
Current view: top level - sw/source/core/uibase/inc - label.hxx (source / functions) Hit Total Coverage
Test: commit 0e63ca4fde4e446f346e35849c756a30ca294aab Lines: 0 10 0.0 %
Date: 2014-04-11 Functions: 0 7 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             : #ifndef INCLUDED_SW_SOURCE_UI_INC_LABEL_HXX
      20             : #define INCLUDED_SW_SOURCE_UI_INC_LABEL_HXX
      21             : 
      22             : #include <sfx2/tabdlg.hxx>
      23             : #include <com/sun/star/frame/XModel.hpp>
      24             : #include <labelcfg.hxx>
      25             : #include <vector>
      26             : 
      27             : class SwLabRec;
      28             : class SwLabRecs;
      29             : class SwLabItem;
      30             : class SwLabPrtPage;
      31             : class SwNewDBMgr;
      32             : class Printer;
      33             : 
      34             : class SwLabDlg : public SfxTabDialog
      35             : {
      36             :     SwLabelConfig   aLabelsCfg;
      37             :     SwNewDBMgr*     pNewDBMgr;
      38             :     SwLabPrtPage*   pPrtPage;
      39             : 
      40             :     std::vector<sal_uInt16> aTypeIds;
      41             :     std::vector<OUString> aMakes;
      42             : 
      43             :     SwLabRecs* pRecs;
      44             :     OUString   aLstGroup;
      45             :     OUString   m_sBusinessCardDlg;
      46             :     bool       m_bLabel;
      47             :     sal_uInt16 m_nFormatId;
      48             :     sal_uInt16 m_nOptionsId;
      49             :     sal_uInt16 m_nLabelId;
      50             :     sal_uInt16 m_nCardsId;
      51             :     sal_uInt16 m_nBusinessId;
      52             :     sal_uInt16 m_nPrivateId;
      53             :     void          _ReplaceGroup( const OUString &rMake );
      54             : 
      55             :     virtual void PageCreated( sal_uInt16 nId, SfxTabPage &rPage ) SAL_OVERRIDE;
      56             : public:
      57             : 
      58             :      SwLabDlg( Window* pParent, const SfxItemSet& rSet,
      59             :                  SwNewDBMgr* pNewDBMgr, sal_Bool bLabel);
      60             :     virtual ~SwLabDlg();
      61             : 
      62             :     SwLabRec*   GetRecord(const OUString &rRecName, sal_Bool bCont);
      63             :     void        GetLabItem(SwLabItem &rItem);
      64             : 
      65           0 :           SwLabRecs &Recs()           { return *pRecs;   }
      66             :     const SwLabRecs &Recs()     const { return *pRecs;   }
      67             : 
      68           0 :           std::vector<sal_uInt16> &TypeIds()       { return aTypeIds; }
      69             :     const std::vector<sal_uInt16> &TypeIds() const { return aTypeIds; }
      70             : 
      71           0 :     std::vector<OUString> &Makes() { return aMakes; }
      72             :     const std::vector<OUString> &Makes() const { return aMakes; }
      73             : 
      74             :     Printer *GetPrt();
      75             :     inline void ReplaceGroup( const OUString &rMake );
      76           0 :     void UpdateGroup( const OUString &rMake ) {_ReplaceGroup( rMake );}
      77             :     static void UpdateFieldInformation(::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel>& xModel,
      78             :                                                                                 const SwLabItem& rItem);
      79           0 :     const OUString& GetBusinessCardStr() const {return m_sBusinessCardDlg;}
      80             : 
      81           0 :     SwLabelConfig& GetLabelsConfig() {return aLabelsCfg;}
      82             : 
      83             : };
      84             : 
      85           0 : inline void SwLabDlg::ReplaceGroup( const OUString &rMake )
      86             : {
      87           0 :     if ( rMake != aLstGroup )
      88           0 :         _ReplaceGroup( rMake );
      89           0 : }
      90             : 
      91             : #endif
      92             : 
      93             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10