LCOV - code coverage report
Current view: top level - libreoffice/sw/source/ui/inc - glosbib.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 8 0.0 %
Date: 2012-12-27 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           0 :         FEdit(Window * pParent, const ResId& rResId) :
      40           0 :             Edit(pParent, rResId){}
      41             : 
      42             :     virtual void KeyInput( const KeyEvent& rKEvent );
      43             : };
      44             : 
      45           0 : struct GlosBibUserData
      46             : {
      47             :     String sPath;
      48             :     String sGroupName;
      49             :     String sGroupTitle;
      50             : };
      51             : 
      52           0 : class SwGlossaryGroupTLB : public SvTabListBox
      53             : {
      54             : public:
      55           0 :     SwGlossaryGroupTLB(Window* pParent, const ResId& rResId) :
      56           0 :         SvTabListBox(pParent, rResId) {}
      57             : 
      58             :     virtual void    RequestHelp( const HelpEvent& rHEvt );
      59             : };
      60             : 
      61             : class SwGlossaryGroupDlg : public SvxStandardDialog
      62             : {
      63             :     FixedText           aBibFT;
      64             :     FEdit               aNameED;
      65             :     FixedText           aPathFT;
      66             :     ListBox             aPathLB;
      67             :     FixedText           aSelectFT;
      68             :     SwGlossaryGroupTLB  aGroupTLB;
      69             : 
      70             :     OKButton        aOkPB;
      71             :     CancelButton    aCancelPB;
      72             :     HelpButton      aHelpPB;
      73             :     PushButton      aNewPB;
      74             :     PushButton      aDelPB;
      75             :     PushButton      aRenamePB;
      76             : 
      77             :     typedef std::vector< ::rtl::OUString> OUVector_t;
      78             :     OUVector_t m_RemovedArr;
      79             :     OUVector_t m_InsertedArr;
      80             :     OUVector_t m_RenamedArr;
      81             : 
      82             :     SwGlossaryHdl   *pGlosHdl;
      83             : 
      84             :     String          sCreatedGroup;
      85             : 
      86             :     sal_Bool            IsDeleteAllowed(const String &rGroup);
      87             : 
      88             : protected:
      89             :     virtual void Apply();
      90             :     DECL_LINK( SelectHdl, SvTabListBox* );
      91             :     DECL_LINK(NewHdl, void *);
      92             :     DECL_LINK( DeleteHdl, Button*  );
      93             :     DECL_LINK(ModifyHdl, void *);
      94             :     DECL_LINK(RenameHdl, void *);
      95             : 
      96             : public:
      97             :     SwGlossaryGroupDlg(Window * pParent,
      98             :                         std::vector<String> const& rPathArr,
      99             :                         SwGlossaryHdl *pGlosHdl);
     100             :     ~SwGlossaryGroupDlg();
     101             : 
     102           0 :     const String&       GetCreatedGroupName() const {return sCreatedGroup;}
     103             : };
     104             : 
     105             : #endif
     106             : 
     107             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10