LCOV - code coverage report
Current view: top level - sd/source/ui/inc - tpaction.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 1 0.0 %
Date: 2015-06-13 12:38:46 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             : 
      20             : #ifndef INCLUDED_SD_SOURCE_UI_INC_TPACTION_HXX
      21             : #define INCLUDED_SD_SOURCE_UI_INC_TPACTION_HXX
      22             : 
      23             : #include <com/sun/star/presentation/ClickAction.hpp>
      24             : #include <com/sun/star/presentation/AnimationEffect.hpp>
      25             : #include <vcl/fixed.hxx>
      26             : #include <vcl/layout.hxx>
      27             : #include <svx/dlgctrl.hxx>
      28             : #include <sfx2/tabdlg.hxx>
      29             : #include <sfx2/basedlgs.hxx>
      30             : #include "sdtreelb.hxx"
      31             : 
      32             : #include <vector>
      33             : 
      34             : namespace sd {
      35             :     class View;
      36             : }
      37             : class SdDrawDocument;
      38             : 
      39             : /**
      40             :  * Effect-SingleTab-Dialog
      41             :  */
      42           0 : class SdActionDlg : public SfxSingleTabDialog
      43             : {
      44             : private:
      45             :     const SfxItemSet&   rOutAttrs;
      46             : public:
      47             :     SdActionDlg(vcl::Window* pParent, const SfxItemSet* pAttr, ::sd::View* pView);
      48             : };
      49             : 
      50             : /**
      51             :  * Interaction-Tab-Page
      52             :  */
      53             : class SdTPAction : public SfxTabPage
      54             : {
      55             : private:
      56             :     VclPtr<ListBox>                m_pLbAction;
      57             : 
      58             :     VclPtr<FixedText>              m_pFtTree;                // jump destination controls
      59             :     VclPtr<SdPageObjsTLB>          m_pLbTree;
      60             :     VclPtr<SdPageObjsTLB>          m_pLbTreeDocument;
      61             :     VclPtr<ListBox>                m_pLbOLEAction;
      62             : 
      63             :     VclPtr<VclFrame>               m_pFrame;
      64             :     VclPtr<Edit>                   m_pEdtSound;
      65             :     VclPtr<Edit>                   m_pEdtBookmark;
      66             :     VclPtr<Edit>                   m_pEdtDocument;
      67             :     VclPtr<Edit>                   m_pEdtProgram;
      68             :     VclPtr<Edit>                   m_pEdtMacro;
      69             :     VclPtr<PushButton>             m_pBtnSearch;
      70             :     VclPtr<PushButton>             m_pBtnSeek;
      71             : 
      72             :     const SfxItemSet&       rOutAttrs;
      73             :     const ::sd::View*       mpView;
      74             :     SdDrawDocument*         mpDoc;
      75             :     XColorListRef           pColList;
      76             : 
      77             :     bool                    bTreeUpdated;
      78             :     std::vector<com::sun::star::presentation::ClickAction> maCurrentActions;
      79             :     OUString                aLastFile;
      80             :     ::std::vector< long >   aVerbVector;
      81             : 
      82             :     DECL_LINK( ClickSearchHdl, void * );
      83             :     DECL_LINK( ClickActionHdl, void * );
      84             :     DECL_LINK( SelectTreeHdl, void * );
      85             :     DECL_LINK( CheckFileHdl, void * );
      86             : 
      87             :     void                    UpdateTree();
      88             :     void                    OpenFileDialog();
      89             :     ::com::sun::star::presentation::ClickAction     GetActualClickAction();
      90             :     void                    SetActualClickAction( ::com::sun::star::presentation::ClickAction eCA );
      91             :     void                    SetActualAnimationEffect( ::com::sun::star::presentation::AnimationEffect eAE );
      92             :     void                    SetEditText( OUString const & rStr );
      93             :     OUString                GetEditText( bool bURL = false );
      94             :     static sal_uInt16       GetClickActionSdResId( ::com::sun::star::presentation::ClickAction eCA );
      95             :     sal_uInt16              GetAnimationEffectSdResId( ::com::sun::star::presentation::AnimationEffect eAE );
      96             : 
      97             : public:
      98             :             SdTPAction( vcl::Window* pParent, const SfxItemSet& rInAttrs );
      99             :             virtual ~SdTPAction();
     100             :     virtual void dispose() SAL_OVERRIDE;
     101             : 
     102             :     static  VclPtr<SfxTabPage> Create( vcl::Window*, const SfxItemSet& );
     103             : 
     104             :     virtual bool FillItemSet( SfxItemSet* ) SAL_OVERRIDE;
     105             :     virtual void Reset( const SfxItemSet * ) SAL_OVERRIDE;
     106             : 
     107             :     virtual void ActivatePage( const SfxItemSet& rSet ) SAL_OVERRIDE;
     108             :     virtual sfxpg DeactivatePage( SfxItemSet* pSet ) SAL_OVERRIDE;
     109             : 
     110             :     void    Construct();
     111             : 
     112             :     void    SetView( const ::sd::View* pSdView );
     113             : 
     114             :     using TabPage::ActivatePage;
     115             :     using TabPage::DeactivatePage;
     116             : };
     117             : 
     118             : #endif // INCLUDED_SD_SOURCE_UI_INC_TPACTION_HXX
     119             : 
     120             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11