LCOV - code coverage report
Current view: top level - basctl/source/basicide - macrodlg.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 1 0.0 %
Date: 2012-08-25 Functions: 0 1 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     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 _MACRODLG_HXX
      21                 :            : #define _MACRODLG_HXX
      22                 :            : 
      23                 :            : #include <svheader.hxx>
      24                 :            : 
      25                 :            : #include <bastype2.hxx>
      26                 :            : #include <bastype3.hxx>
      27                 :            : #include <sfx2/basedlgs.hxx>
      28                 :            : #include <vcl/fixed.hxx>
      29                 :            : 
      30                 :            : #include <vcl/button.hxx>
      31                 :            : 
      32                 :            : #define MACRO_CLOSE         10
      33                 :            : #define MACRO_OK_RUN        11
      34                 :            : #define MACRO_NEW           12
      35                 :            : #define MACRO_EDIT          14
      36                 :            : 
      37                 :            : #define MACROCHOOSER_ALL            1
      38                 :            : #define MACROCHOOSER_CHOOSEONLY     2
      39                 :            : #define MACROCHOOSER_RECORDING      3
      40                 :            : 
      41                 :            : class MacroChooser : public SfxModalDialog
      42                 :            : {
      43                 :            : private:
      44                 :            :     FixedText               aMacroNameTxt;
      45                 :            :     Edit                    aMacroNameEdit;
      46                 :            :     FixedText               aMacroFromTxT;
      47                 :            :     FixedText               aMacrosSaveInTxt;
      48                 :            :     BasicTreeListBox        aBasicBox;
      49                 :            :     FixedText               aMacrosInTxt;
      50                 :            :     String                  aMacrosInTxtBaseStr;
      51                 :            :     SvTreeListBox           aMacroBox;
      52                 :            : 
      53                 :            :     PushButton              aRunButton;
      54                 :            :     CancelButton            aCloseButton;
      55                 :            :     PushButton              aAssignButton;
      56                 :            :     PushButton              aEditButton;
      57                 :            :     PushButton              aNewDelButton;
      58                 :            :     PushButton              aOrganizeButton;
      59                 :            :     HelpButton              aHelpButton;
      60                 :            :     PushButton              aNewLibButton;
      61                 :            :     PushButton              aNewModButton;
      62                 :            : 
      63                 :            :     bool                bNewDelIsDel;
      64                 :            :     bool                bForceStoreBasic;
      65                 :            : 
      66                 :            :     sal_uInt16              nMode;
      67                 :            : 
      68                 :            :     DECL_LINK( MacroSelectHdl, SvTreeListBox * );
      69                 :            :     DECL_LINK(MacroDoubleClickHdl, void *);
      70                 :            :     DECL_LINK( BasicSelectHdl, SvTreeListBox * );
      71                 :            :     DECL_LINK( EditModifyHdl, Edit * );
      72                 :            :     DECL_LINK( ButtonHdl, Button * );
      73                 :            : 
      74                 :            :     void                CheckButtons();
      75                 :            :     void                SaveSetCurEntry( SvTreeListBox& rBox, SvLBoxEntry* pEntry );
      76                 :            :     void                UpdateFields();
      77                 :            : 
      78                 :            :     void                EnableButton( Button& rButton, bool bEnable );
      79                 :            : 
      80                 :            :     String              GetInfo( SbxVariable* pVar );
      81                 :            : 
      82                 :            :     void                StoreMacroDescription();
      83                 :            :     void                RestoreMacroDescription();
      84                 :            : 
      85                 :            : public:
      86                 :            :                         MacroChooser( Window* pParent, bool bCreateEntries = true );
      87                 :            :                         ~MacroChooser();
      88                 :            : 
      89                 :            :     SbMethod*           GetMacro();
      90                 :            :     void                DeleteMacro();
      91                 :            :     SbMethod*           CreateMacro();
      92                 :            : 
      93                 :            :     virtual short       Execute();
      94                 :            : 
      95                 :            :     void                SetMode( sal_uInt16 nMode );
      96                 :          0 :     sal_uInt16              GetMode() const { return nMode; }
      97                 :            : };
      98                 :            : 
      99                 :            : #endif  // _MACRODLG_HXX
     100                 :            : 
     101                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10