LCOV - code coverage report
Current view: top level - libreoffice/cui/source/inc - macroass.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 1 0.0 %
Date: 2012-12-27 Functions: 0 2 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             : #ifndef _MACROASS_HXX
      20             : #define _MACROASS_HXX
      21             : 
      22             : #include "sal/config.h"
      23             : 
      24             : #include <sfx2/basedlgs.hxx>
      25             : #include <sfx2/tabdlg.hxx>
      26             : #include <svl/macitem.hxx>
      27             : #include <vcl/lstbox.hxx>
      28             : #include <com/sun/star/frame/XFrame.hpp>
      29             : 
      30             : class _SfxMacroTabPage;
      31             : class SvTabListBox;
      32             : class String;
      33             : 
      34             : class _SfxMacroTabPage_Impl;
      35             : 
      36             : class _SfxMacroTabPage : public SfxTabPage
      37             : {
      38             :     SvxMacroTableDtor           aTbl;
      39             :     DECL_DLLPRIVATE_STATIC_LINK( _SfxMacroTabPage, SelectEvent_Impl, SvTabListBox * );
      40             :     DECL_DLLPRIVATE_STATIC_LINK( _SfxMacroTabPage, SelectGroup_Impl, ListBox * );
      41             :     DECL_DLLPRIVATE_STATIC_LINK( _SfxMacroTabPage, SelectMacro_Impl, ListBox * );
      42             : 
      43             :     DECL_DLLPRIVATE_STATIC_LINK( _SfxMacroTabPage, DoubleClickHdl_Impl, Control* );
      44             :     DECL_DLLPRIVATE_STATIC_LINK( _SfxMacroTabPage, AssignDeleteHdl_Impl, PushButton * );
      45             : 
      46             :     DECL_DLLPRIVATE_STATIC_LINK( _SfxMacroTabPage, TimeOut_Impl, Timer* );
      47             : 
      48             : protected:
      49             :     _SfxMacroTabPage_Impl*      mpImpl;
      50             : 
      51             :                                 _SfxMacroTabPage( Window* pParent, const ResId& rId, const SfxItemSet& rItemSet );
      52             : 
      53             :     void                        InitAndSetHandler();
      54             :     void                        FillEvents();
      55             :     void                        FillMacroList();
      56             :     void                        EnableButtons();
      57             : 
      58             : public:
      59             : 
      60             :     virtual                     ~_SfxMacroTabPage();
      61             : 
      62             :     void                        AddEvent( const String & rEventName, sal_uInt16 nEventId );
      63             : 
      64             :     const SvxMacroTableDtor&    GetMacroTbl() const;
      65             :     void                        SetMacroTbl( const SvxMacroTableDtor& rTbl );
      66             :     void                        ClearMacroTbl();
      67             : 
      68             :     virtual void                ScriptChanged();
      69             :     virtual void                PageCreated (SfxAllItemSet aSet);
      70             :     using TabPage::ActivatePage; // FIXME WTF is this nonsense?
      71             :     virtual void                ActivatePage( const SfxItemSet& );
      72             : 
      73             :     // --------- inherit from the base -------------
      74             :     virtual sal_Bool                FillItemSet( SfxItemSet& rSet );
      75             :     virtual void                Reset( const SfxItemSet& rSet );
      76             : 
      77             :     sal_Bool                        IsReadOnly() const;
      78             : };
      79             : 
      80             : inline const SvxMacroTableDtor& _SfxMacroTabPage::GetMacroTbl() const
      81             : {
      82             :     return aTbl;
      83             : }
      84             : 
      85             : inline void _SfxMacroTabPage::SetMacroTbl( const SvxMacroTableDtor& rTbl )
      86             : {
      87             :     aTbl = rTbl;
      88             : }
      89             : 
      90             : inline void _SfxMacroTabPage::ClearMacroTbl()
      91             : {
      92             :     aTbl.clear();
      93             : }
      94             : 
      95           0 : class SfxMacroTabPage : public _SfxMacroTabPage
      96             : {
      97             : public:
      98             :     SfxMacroTabPage(
      99             :         Window* pParent,
     100             :         const ResId& rId,
     101             :         const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rxDocumentFrame,
     102             :         const SfxItemSet& rSet
     103             :     );
     104             : 
     105             :     // --------- inherit from the base -------------
     106             :     static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet );
     107             : };
     108             : 
     109             : class SfxMacroAssignDlg : public SfxSingleTabDialog
     110             : {
     111             : public:
     112             :     SfxMacroAssignDlg(
     113             :         Window* pParent,
     114             :         const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rxDocumentFrame,
     115             :         const SfxItemSet& rSet );
     116             :     virtual ~SfxMacroAssignDlg();
     117             : };
     118             : 
     119             : #endif
     120             : 
     121             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10