LCOV - code coverage report
Current view: top level - cui/source/inc - macroass.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 2 0.0 %
Date: 2014-04-14 Functions: 0 4 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 INCLUDED_CUI_SOURCE_INC_MACROASS_HXX
      20             : #define INCLUDED_CUI_SOURCE_INC_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             : 
      33             : class _SfxMacroTabPage_Impl;
      34             : 
      35             : class _SfxMacroTabPage : public SfxTabPage
      36             : {
      37             :     SvxMacroTableDtor           aTbl;
      38             :     DECL_DLLPRIVATE_STATIC_LINK( _SfxMacroTabPage, SelectEvent_Impl, SvTabListBox * );
      39             :     DECL_DLLPRIVATE_STATIC_LINK( _SfxMacroTabPage, SelectGroup_Impl, ListBox * );
      40             :     DECL_DLLPRIVATE_STATIC_LINK( _SfxMacroTabPage, SelectMacro_Impl, ListBox * );
      41             : 
      42             :     DECL_DLLPRIVATE_STATIC_LINK( _SfxMacroTabPage, DoubleClickHdl_Impl, Control* );
      43             :     DECL_DLLPRIVATE_STATIC_LINK( _SfxMacroTabPage, AssignDeleteHdl_Impl, PushButton * );
      44             : 
      45             :     DECL_DLLPRIVATE_STATIC_LINK( _SfxMacroTabPage, TimeOut_Impl, Timer* );
      46             : 
      47             : protected:
      48             :     _SfxMacroTabPage_Impl*      mpImpl;
      49             : 
      50             :                                 _SfxMacroTabPage( Window* pParent, const SfxItemSet& rItemSet );
      51             : 
      52             :     void                        InitAndSetHandler();
      53             :     void                        FillEvents();
      54             :     void                        FillMacroList();
      55             :     void                        EnableButtons();
      56             : 
      57             : public:
      58             : 
      59             :     virtual                     ~_SfxMacroTabPage();
      60             : 
      61             :     void                        AddEvent( const OUString & rEventName, sal_uInt16 nEventId );
      62             : 
      63             :     const SvxMacroTableDtor&    GetMacroTbl() const;
      64             :     void                        SetMacroTbl( const SvxMacroTableDtor& rTbl );
      65             : 
      66             :     virtual void                ScriptChanged();
      67             :     virtual void                PageCreated (SfxAllItemSet aSet) SAL_OVERRIDE;
      68             :     using TabPage::ActivatePage; // FIXME WTF is this nonsense?
      69             :     virtual void                ActivatePage( const SfxItemSet& ) SAL_OVERRIDE;
      70             :     void                        LaunchFillGroup();
      71             : 
      72             :     // --------- inherit from the base -------------
      73             :     virtual bool                FillItemSet( SfxItemSet& rSet ) SAL_OVERRIDE;
      74             :     virtual void                Reset( const SfxItemSet& rSet ) SAL_OVERRIDE;
      75             : 
      76             :     bool                        IsReadOnly() const SAL_OVERRIDE;
      77             : };
      78             : 
      79             : inline const SvxMacroTableDtor& _SfxMacroTabPage::GetMacroTbl() const
      80             : {
      81             :     return aTbl;
      82             : }
      83             : 
      84             : inline void _SfxMacroTabPage::SetMacroTbl( const SvxMacroTableDtor& rTbl )
      85             : {
      86             :     aTbl = rTbl;
      87             : }
      88             : 
      89           0 : class SfxMacroTabPage : public _SfxMacroTabPage
      90             : {
      91             : public:
      92             :     SfxMacroTabPage(
      93             :         Window* pParent,
      94             :         const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rxDocumentFrame,
      95             :         const SfxItemSet& rSet
      96             :     );
      97             : 
      98             :     // --------- inherit from the base -------------
      99             :     static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet );
     100             : };
     101             : 
     102           0 : class SfxMacroAssignDlg : public SfxSingleTabDialog
     103             : {
     104             : public:
     105             :     SfxMacroAssignDlg(
     106             :         Window* pParent,
     107             :         const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rxDocumentFrame,
     108             :         const SfxItemSet& rSet );
     109             : };
     110             : 
     111             : #endif
     112             : 
     113             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10