LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/sw/source/ui/inc - glosbib.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 10 0.0 %
Date: 2013-07-09 Functions: 0 9 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 _GLOSBIB_HXX
      21             : #define _GLOSBIB_HXX
      22             : 
      23             : #include <vcl/edit.hxx>
      24             : #include <svx/stddlg.hxx>
      25             : 
      26             : #include <vcl/lstbox.hxx>
      27             : #include <svtools/svtabbx.hxx>
      28             : 
      29             : #include <vcl/button.hxx>
      30             : #include <vcl/fixed.hxx>
      31             : 
      32             : #include <vector>
      33             : 
      34             : class SwGlossaryHdl;
      35             : 
      36           0 : class FEdit : public Edit
      37             : {
      38             : public:
      39             :     FEdit(Window* pParent, const ResId& rResId)
      40             :         : Edit(pParent, rResId)
      41             :     {
      42             :     }
      43             : 
      44           0 :     FEdit(Window* pParent)
      45           0 :         : Edit(pParent, WB_LEFT|WB_VCENTER|WB_BORDER|WB_3DLOOK)
      46             :     {
      47           0 :     }
      48             : 
      49             :     virtual void KeyInput( const KeyEvent& rKEvent );
      50             : };
      51             : 
      52           0 : struct GlosBibUserData
      53             : {
      54             :     String sPath;
      55             :     String sGroupName;
      56             :     String sGroupTitle;
      57             : };
      58             : 
      59           0 : class SwGlossaryGroupTLB : public SvTabListBox
      60             : {
      61             : public:
      62             :     SwGlossaryGroupTLB(Window* pParent, const ResId& rResId)
      63             :         : SvTabListBox(pParent, rResId)
      64             :     {
      65             :     }
      66             : 
      67           0 :     SwGlossaryGroupTLB(Window* pParent)
      68           0 :         : SvTabListBox(pParent, WB_BORDER|WB_HSCROLL|WB_CLIPCHILDREN|WB_SORT)
      69             :     {
      70           0 :     }
      71             : 
      72             :     virtual void RequestHelp( const HelpEvent& rHEvt );
      73             : };
      74             : 
      75             : class SwGlossaryGroupDlg : public SvxStandardDialog
      76             : {
      77             :     FEdit*              m_pNameED;
      78             :     ListBox*            m_pPathLB;
      79             :     SwGlossaryGroupTLB* m_pGroupTLB;
      80             : 
      81             :     PushButton*     m_pNewPB;
      82             :     PushButton*     m_pDelPB;
      83             :     PushButton*     m_pRenamePB;
      84             : 
      85             :     typedef std::vector< OUString> OUVector_t;
      86             :     OUVector_t m_RemovedArr;
      87             :     OUVector_t m_InsertedArr;
      88             :     OUVector_t m_RenamedArr;
      89             : 
      90             :     SwGlossaryHdl   *pGlosHdl;
      91             : 
      92             :     String          sCreatedGroup;
      93             : 
      94             :     sal_Bool            IsDeleteAllowed(const String &rGroup);
      95             : 
      96             : protected:
      97             :     virtual void Apply();
      98             :     DECL_LINK( SelectHdl, SvTabListBox* );
      99             :     DECL_LINK(NewHdl, void *);
     100             :     DECL_LINK( DeleteHdl, Button*  );
     101             :     DECL_LINK(ModifyHdl, void *);
     102             :     DECL_LINK(RenameHdl, void *);
     103             : 
     104             : public:
     105             :     SwGlossaryGroupDlg(Window * pParent,
     106             :                         std::vector<String> const& rPathArr,
     107             :                         SwGlossaryHdl *pGlosHdl);
     108             :     ~SwGlossaryGroupDlg();
     109             : 
     110           0 :     const String&       GetCreatedGroupName() const {return sCreatedGroup;}
     111             : };
     112             : 
     113             : #endif
     114             : 
     115             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10