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

Generated by: LCOV version 1.10