LCOV - code coverage report
Current view: top level - sw/source/ui/index - multmrk.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 21 0.0 %
Date: 2012-08-25 Functions: 0 6 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                 :            : 
      29                 :            : #include "swtypes.hxx"
      30                 :            : 
      31                 :            : #include "multmrk.hxx"
      32                 :            : #include "toxmgr.hxx"
      33                 :            : 
      34                 :            : #include "index.hrc"
      35                 :            : #include "multmrk.hrc"
      36                 :            : 
      37                 :            : 
      38                 :          0 : SwMultiTOXMarkDlg::SwMultiTOXMarkDlg( Window* pParent, SwTOXMgr& rTOXMgr ) :
      39                 :            : 
      40                 :            :     SvxStandardDialog(pParent, SW_RES(DLG_MULTMRK)),
      41                 :            : 
      42                 :            :     aTOXFL(this,    SW_RES(FL_TOX)),
      43                 :            :     aEntryFT(this,  SW_RES(FT_ENTRY)),
      44                 :            :     aTextFT(this,   SW_RES(FT_TEXT)),
      45                 :            :     aTOXFT(this,    SW_RES(FT_TOX)),
      46                 :            :     aTOXLB(this,    SW_RES(LB_TOX)),
      47                 :            :     aOkBT(this,     SW_RES(OK_BT)),
      48                 :            :     aCancelBT(this, SW_RES(CANCEL_BT)),
      49                 :            :     rMgr( rTOXMgr ),
      50                 :          0 :     nPos(0)
      51                 :            : {
      52                 :          0 :     aTOXLB.SetSelectHdl(LINK(this, SwMultiTOXMarkDlg, SelectHdl));
      53                 :            : 
      54                 :          0 :     sal_uInt16 nSize = rMgr.GetTOXMarkCount();
      55                 :          0 :     for(sal_uInt16 i=0; i < nSize; ++i)
      56                 :          0 :         aTOXLB.InsertEntry(rMgr.GetTOXMark(i)->GetText());
      57                 :            : 
      58                 :          0 :     aTOXLB.SelectEntryPos(0);
      59                 :          0 :     aTextFT.SetText(rMgr.GetTOXMark(0)->GetTOXType()->GetTypeName());
      60                 :            : 
      61                 :          0 :     FreeResource();
      62                 :          0 : }
      63                 :            : 
      64                 :            : 
      65                 :          0 : IMPL_LINK_INLINE_START( SwMultiTOXMarkDlg, SelectHdl, ListBox *, pBox )
      66                 :            : {
      67                 :          0 :     if(pBox->GetSelectEntryPos() != LISTBOX_ENTRY_NOTFOUND)
      68                 :          0 :     {   SwTOXMark* pMark = rMgr.GetTOXMark(pBox->GetSelectEntryPos());
      69                 :          0 :         aTextFT.SetText(pMark->GetTOXType()->GetTypeName());
      70                 :          0 :         nPos = pBox->GetSelectEntryPos();
      71                 :            :     }
      72                 :          0 :     return 0;
      73                 :            : }
      74                 :          0 : IMPL_LINK_INLINE_END( SwMultiTOXMarkDlg, SelectHdl, ListBox *, pBox )
      75                 :            : 
      76                 :            : 
      77                 :          0 : void SwMultiTOXMarkDlg::Apply()
      78                 :            : {
      79                 :          0 :     rMgr.SetCurTOXMark(nPos);
      80                 :          0 : }
      81                 :            : 
      82                 :            : /*--------------------------------------------------
      83                 :            :  overload dtor
      84                 :            : --------------------------------------------------*/
      85                 :            : 
      86                 :            : 
      87                 :          0 : SwMultiTOXMarkDlg::~SwMultiTOXMarkDlg() {}
      88                 :            : 
      89                 :            : 
      90                 :            : 
      91                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10