LCOV - code coverage report
Current view: top level - sw/source/ui/inc - label.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 10 0.0 %
Date: 2012-08-25 Functions: 0 7 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : #ifndef _LABEL_HXX
      29                 :            : #define _LABEL_HXX
      30                 :            : 
      31                 :            : #include <sfx2/tabdlg.hxx>
      32                 :            : #include <com/sun/star/frame/XModel.hpp>
      33                 :            : #include <labelcfg.hxx>
      34                 :            : #include <vector>
      35                 :            : 
      36                 :            : class SwLabRec;
      37                 :            : class SwLabRecs;
      38                 :            : class SwLabItem;
      39                 :            : class SwLabPrtPage;
      40                 :            : class SwNewDBMgr;
      41                 :            : class Printer;
      42                 :            : 
      43                 :            : class SwLabDlg : public SfxTabDialog
      44                 :            : {
      45                 :            :     SwLabelConfig   aLabelsCfg;
      46                 :            :     SwNewDBMgr*     pNewDBMgr;
      47                 :            :     SwLabPrtPage*   pPrtPage;
      48                 :            : 
      49                 :            :     std::vector<sal_uInt16> aTypeIds;
      50                 :            :     std::vector<rtl::OUString> aMakes;
      51                 :            : 
      52                 :            :     SwLabRecs*      pRecs;
      53                 :            :     String          aLstGroup;
      54                 :            :     String          sBusinessCardDlg;
      55                 :            :     String          sFormat;
      56                 :            :     String          sMedium;
      57                 :            :     sal_Bool            m_bLabel;
      58                 :            :     void          _ReplaceGroup( const String &rMake );
      59                 :            : 
      60                 :            :     virtual void PageCreated( sal_uInt16 nId, SfxTabPage &rPage );
      61                 :            : public:
      62                 :            : 
      63                 :            :      SwLabDlg( Window* pParent, const SfxItemSet& rSet,
      64                 :            :                  SwNewDBMgr* pNewDBMgr, sal_Bool bLabel);
      65                 :            :     ~SwLabDlg();
      66                 :            : 
      67                 :            :     SwLabRec*   GetRecord(const String &rRecName, sal_Bool bCont);
      68                 :            :     void        GetLabItem(SwLabItem &rItem);
      69                 :            : 
      70                 :          0 :           SwLabRecs &Recs()           { return *pRecs;   }
      71                 :            :     const SwLabRecs &Recs()     const { return *pRecs;   }
      72                 :            : 
      73                 :          0 :           std::vector<sal_uInt16> &TypeIds()       { return aTypeIds; }
      74                 :            :     const std::vector<sal_uInt16> &TypeIds() const { return aTypeIds; }
      75                 :            : 
      76                 :          0 :     std::vector<rtl::OUString> &Makes() { return aMakes; }
      77                 :            :     const std::vector<rtl::OUString> &Makes() const { return aMakes; }
      78                 :            : 
      79                 :            :     Printer *GetPrt();
      80                 :            :     inline void ReplaceGroup( const String &rMake );
      81                 :          0 :     void UpdateGroup( const String &rMake ) {_ReplaceGroup( rMake );}
      82                 :            :     static void UpdateFieldInformation(::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel>& xModel,
      83                 :            :                                                                                 const SwLabItem& rItem);
      84                 :          0 :     const String& GetBusinessCardStr() const {return sBusinessCardDlg;}
      85                 :            : 
      86                 :          0 :     SwLabelConfig& GetLabelsConfig() {return aLabelsCfg;}
      87                 :            : 
      88                 :            : };
      89                 :            : 
      90                 :          0 : inline void SwLabDlg::ReplaceGroup( const String &rMake )
      91                 :            : {
      92                 :          0 :     if ( rMake != aLstGroup )
      93                 :          0 :         _ReplaceGroup( rMake );
      94                 :          0 : }
      95                 :            : 
      96                 :            : #endif
      97                 :            : 
      98                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10