LCOV - code coverage report
Current view: top level - cui/source/inc - macroass.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 2 0.0 %
Date: 2015-06-13 12:38:46 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_LINK( SelectEvent_Impl, SvTabListBox * );
      39             :     DECL_DLLPRIVATE_LINK( SelectGroup_Impl, ListBox * );
      40             :     DECL_DLLPRIVATE_LINK( SelectMacro_Impl, ListBox * );
      41             : 
      42             :     DECL_DLLPRIVATE_LINK( DoubleClickHdl_Impl, Control* );
      43             :     DECL_DLLPRIVATE_LINK( AssignDeleteHdl_Impl, PushButton * );
      44             : 
      45             :     DECL_DLLPRIVATE_LINK_TYPED( TimeOut_Impl, Idle*, void );
      46             : 
      47             : protected:
      48             :     _SfxMacroTabPage_Impl*      mpImpl;
      49             : 
      50             :                                 _SfxMacroTabPage( vcl::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             :     virtual void                dispose() SAL_OVERRIDE;
      61             : 
      62             :     void                        AddEvent( const OUString & rEventName, sal_uInt16 nEventId );
      63             : 
      64             :     const SvxMacroTableDtor&    GetMacroTable() const;
      65             :     void                        SetMacroTable( const SvxMacroTableDtor& rTbl );
      66             : 
      67             :     void                        ScriptChanged();
      68             :     virtual void                PageCreated (const SfxAllItemSet& aSet) SAL_OVERRIDE;
      69             :     using TabPage::ActivatePage; // FIXME WTF is this nonsense?
      70             :     virtual void                ActivatePage( const SfxItemSet& ) SAL_OVERRIDE;
      71             :     void                        LaunchFillGroup();
      72             : 
      73             :     // --------- inherit from the base -------------
      74             :     virtual bool                FillItemSet( SfxItemSet* rSet ) SAL_OVERRIDE;
      75             :     virtual void                Reset( const SfxItemSet* rSet ) SAL_OVERRIDE;
      76             : 
      77             :     bool                        IsReadOnly() const SAL_OVERRIDE;
      78             : };
      79             : 
      80             : inline const SvxMacroTableDtor& _SfxMacroTabPage::GetMacroTable() const
      81             : {
      82             :     return aTbl;
      83             : }
      84             : 
      85             : inline void _SfxMacroTabPage::SetMacroTable( const SvxMacroTableDtor& rTbl )
      86             : {
      87             :     aTbl = rTbl;
      88             : }
      89             : 
      90           0 : class SfxMacroTabPage : public _SfxMacroTabPage
      91             : {
      92             : public:
      93             :     SfxMacroTabPage(
      94             :         vcl::Window* pParent,
      95             :         const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rxDocumentFrame,
      96             :         const SfxItemSet& rSet
      97             :     );
      98             : 
      99             :     // --------- inherit from the base -------------
     100             :     static VclPtr<SfxTabPage> Create( vcl::Window* pParent, const SfxItemSet* rAttrSet );
     101             : };
     102             : 
     103           0 : class SfxMacroAssignDlg : public SfxSingleTabDialog
     104             : {
     105             : public:
     106             :     SfxMacroAssignDlg(
     107             :         vcl::Window* pParent,
     108             :         const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rxDocumentFrame,
     109             :         const SfxItemSet& rSet );
     110             : };
     111             : 
     112             : #endif
     113             : 
     114             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11