LCOV - code coverage report
Current view: top level - sw/source/uibase/inc - glosbib.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 10 0.0 %
Date: 2015-06-13 12:38:46 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_UIBASE_INC_GLOSBIB_HXX
      21             : #define INCLUDED_SW_SOURCE_UIBASE_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(vcl::Window* pParent, const ResId& rResId)
      41             :         : Edit(pParent, rResId)
      42             :     {
      43             :     }
      44             : 
      45           0 :     FEdit(vcl::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           0 :     SwGlossaryGroupTLB(vcl::Window* pParent)
      64           0 :         : SvTabListBox(pParent, WB_BORDER|WB_HSCROLL|WB_CLIPCHILDREN|WB_SORT)
      65             :     {
      66           0 :     }
      67             : 
      68             :     virtual void RequestHelp( const HelpEvent& rHEvt ) SAL_OVERRIDE;
      69             : };
      70             : 
      71             : class SwGlossaryGroupDlg : public SvxStandardDialog
      72             : {
      73             :     VclPtr<FEdit>              m_pNameED;
      74             :     VclPtr<ListBox>            m_pPathLB;
      75             :     VclPtr<SwGlossaryGroupTLB> m_pGroupTLB;
      76             : 
      77             :     VclPtr<PushButton>     m_pNewPB;
      78             :     VclPtr<PushButton>     m_pDelPB;
      79             :     VclPtr<PushButton>     m_pRenamePB;
      80             : 
      81             :     typedef std::vector< OUString> OUVector_t;
      82             :     OUVector_t m_RemovedArr;
      83             :     OUVector_t m_InsertedArr;
      84             :     OUVector_t m_RenamedArr;
      85             : 
      86             :     SwGlossaryHdl   *pGlosHdl;
      87             : 
      88             :     OUString        sCreatedGroup;
      89             : 
      90             :     bool            IsDeleteAllowed(const OUString &rGroup);
      91             : 
      92             : protected:
      93             :     virtual void Apply() SAL_OVERRIDE;
      94             :     DECL_LINK( SelectHdl, SvTabListBox* );
      95             :     DECL_LINK(NewHdl, void *);
      96             :     DECL_LINK( DeleteHdl, Button*  );
      97             :     DECL_LINK(ModifyHdl, void *);
      98             :     DECL_LINK(RenameHdl, void *);
      99             : 
     100             : public:
     101             :     SwGlossaryGroupDlg(vcl::Window * pParent,
     102             :                         std::vector<OUString> const& rPathArr,
     103             :                         SwGlossaryHdl *pGlosHdl);
     104             :     virtual ~SwGlossaryGroupDlg();
     105             :     virtual void dispose() SAL_OVERRIDE;
     106             : 
     107           0 :     const OUString&     GetCreatedGroupName() const {return sCreatedGroup;}
     108             : };
     109             : 
     110             : #endif
     111             : 
     112             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11