LCOV - code coverage report
Current view: top level - basctl/source/basicide - macrodlg.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 1 0.0 %
Date: 2014-11-03 Functions: 0 1 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_BASCTL_SOURCE_BASICIDE_MACRODLG_HXX
      21             : #define INCLUDED_BASCTL_SOURCE_BASICIDE_MACRODLG_HXX
      22             : 
      23             : #include <bastype2.hxx>
      24             : #include <bastype3.hxx>
      25             : #include <sfx2/basedlgs.hxx>
      26             : #include <vcl/fixed.hxx>
      27             : 
      28             : #include <vcl/button.hxx>
      29             : 
      30             : namespace basctl
      31             : {
      32             : 
      33             : enum MacroExitCode {
      34             :     Macro_Close = 10,
      35             :     Macro_OkRun = 11,
      36             :     Macro_New   = 12,
      37             :     Macro_Edit  = 14,
      38             : };
      39             : 
      40             : class MacroChooser : public SfxModalDialog
      41             : {
      42             : public:
      43             :     enum Mode {
      44             :         All = 1,
      45             :         ChooseOnly = 2,
      46             :         Recording = 3,
      47             :     };
      48             : 
      49             : private:
      50             :     Edit*                   m_pMacroNameEdit;
      51             :     FixedText*              m_pMacroFromTxT;
      52             :     FixedText*              m_pMacrosSaveInTxt;
      53             :     TreeListBox*            m_pBasicBox;
      54             :     FixedText*              m_pMacrosInTxt;
      55             :     OUString                m_aMacrosInTxtBaseStr;
      56             :     SvTreeListBox*          m_pMacroBox;
      57             : 
      58             :     PushButton*             m_pRunButton;
      59             :     CloseButton*            m_pCloseButton;
      60             :     PushButton*             m_pAssignButton;
      61             :     PushButton*             m_pEditButton;
      62             :     PushButton*             m_pDelButton;
      63             :     PushButton*             m_pOrganizeButton;
      64             :     PushButton*             m_pNewLibButton;
      65             :     PushButton*             m_pNewModButton;
      66             : 
      67             :     bool                    bNewDelIsDel;
      68             :     bool                    bForceStoreBasic;
      69             : 
      70             :     Mode                    nMode;
      71             : 
      72             :     DECL_LINK( MacroSelectHdl, SvTreeListBox * );
      73             :     DECL_LINK(MacroDoubleClickHdl, void *);
      74             :     DECL_LINK( BasicSelectHdl, SvTreeListBox * );
      75             :     DECL_LINK( EditModifyHdl, Edit * );
      76             :     DECL_LINK( ButtonHdl, Button * );
      77             : 
      78             :     void                CheckButtons();
      79             :     void                SaveSetCurEntry( SvTreeListBox& rBox, SvTreeListEntry* pEntry );
      80             :     void                UpdateFields();
      81             : 
      82             :     void                EnableButton( Button& rButton, bool bEnable );
      83             : 
      84             :     OUString            GetInfo( SbxVariable* pVar );
      85             : 
      86             :     void                StoreMacroDescription();
      87             :     void                RestoreMacroDescription();
      88             : 
      89             : public:
      90             :                         MacroChooser( vcl::Window* pParent, bool bCreateEntries = true );
      91             :                         virtual ~MacroChooser();
      92             : 
      93             :     SbMethod*           GetMacro();
      94             :     void                DeleteMacro();
      95             :     SbMethod*           CreateMacro();
      96             : 
      97             :     virtual short       Execute() SAL_OVERRIDE;
      98             : 
      99             :     void                SetMode (Mode);
     100           0 :     Mode                GetMode () const { return nMode; }
     101             : };
     102             : 
     103             : } // namespace basctl
     104             : 
     105             : #endif // INCLUDED_BASCTL_SOURCE_BASICIDE_MACRODLG_HXX
     106             : 
     107             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10