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

Generated by: LCOV version 1.10