LCOV - code coverage report
Current view: top level - libreoffice/sd/source/ui/inc - tpaction.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             : 
      20             : 
      21             : #ifndef _SD_TPACTION_HXX
      22             : #define _SD_TPACTION_HXX
      23             : 
      24             : #include <com/sun/star/presentation/ClickAction.hpp>
      25             : #include <com/sun/star/presentation/AnimationEffect.hpp>
      26             : #include <vcl/group.hxx>
      27             : #include <vcl/fixed.hxx>
      28             : #include <svx/dlgctrl.hxx>
      29             : #include <sfx2/tabdlg.hxx>
      30             : #include <sfx2/basedlgs.hxx>
      31             : #include "sdtreelb.hxx"
      32             : 
      33             : #include <vector>
      34             : 
      35             : namespace sd {
      36             :     class View;
      37             : }
      38             : class SdDrawDocument;
      39             : 
      40             : /*************************************************************************
      41             : |*
      42             : |* Effekte-SingleTab-Dialog
      43             : |*
      44             : \************************************************************************/
      45             : class SdActionDlg : public SfxSingleTabDialog
      46             : {
      47             : private:
      48             :     const SfxItemSet&   rOutAttrs;
      49             : 
      50             : public:
      51             : 
      52             :             SdActionDlg( Window* pParent, const SfxItemSet* pAttr, ::sd::View* pView );
      53           0 :             ~SdActionDlg() {};
      54             : };
      55             : 
      56             : /*************************************************************************
      57             : |*
      58             : |* Interaktions-Tab-Page
      59             : |*
      60             : \************************************************************************/
      61             : 
      62             : class SdTPAction : public SfxTabPage
      63             : {
      64             : private:
      65             :     FixedText               aFtAction;              // always visible
      66             :     ListBox                 aLbAction;
      67             : 
      68             :     FixedText               aFtTree;                // jump destination controls
      69             :     SdPageObjsTLB           aLbTree;
      70             :     SdPageObjsTLB           aLbTreeDocument;
      71             :     ListBox                 aLbOLEAction;
      72             : 
      73             :     FixedLine               aFlSeparator;
      74             :     Edit                    aEdtSound;
      75             :     Edit                    aEdtBookmark;
      76             :     Edit                    aEdtDocument;
      77             :     Edit                    aEdtProgram;
      78             :     Edit                    aEdtMacro;
      79             :     PushButton              aBtnSearch;
      80             :     PushButton              aBtnSeek;
      81             : 
      82             :     const SfxItemSet&       rOutAttrs;
      83             :     const ::sd::View*       mpView;
      84             :     SdDrawDocument*         mpDoc;
      85             :     XColorListRef           pColList;
      86             : 
      87             :     sal_Bool                    bTreeUpdated;
      88             :     std::vector<com::sun::star::presentation::ClickAction> maCurrentActions;
      89             :     String                  aLastFile;
      90             :     ::std::vector< long >   aVerbVector;
      91             : 
      92             :     //------------------------------------
      93             : 
      94             :     DECL_LINK( ClickSearchHdl, void * );
      95             :     DECL_LINK( ClickActionHdl, void * );
      96             :     DECL_LINK( SelectTreeHdl, void * );
      97             :     DECL_LINK( CheckFileHdl, void * );
      98             : 
      99             :     void                    UpdateTree();
     100             :     virtual void            OpenFileDialog();
     101             :     ::com::sun::star::presentation::ClickAction     GetActualClickAction();
     102             :     void                    SetActualClickAction( ::com::sun::star::presentation::ClickAction eCA );
     103             :     void                    SetActualAnimationEffect( ::com::sun::star::presentation::AnimationEffect eAE );
     104             :     void                    SetEditText( String const & rStr );
     105             :     String                  GetEditText( sal_Bool bURL = sal_False );
     106             :     sal_uInt16                  GetClickActionSdResId( ::com::sun::star::presentation::ClickAction eCA );
     107             :     sal_uInt16                  GetAnimationEffectSdResId( ::com::sun::star::presentation::AnimationEffect eAE );
     108             : 
     109             : public:
     110             :             SdTPAction( Window* pParent, const SfxItemSet& rInAttrs );
     111             :             ~SdTPAction();
     112             : 
     113             :     static  SfxTabPage* Create( Window*, const SfxItemSet& );
     114             : 
     115             :     virtual sal_Bool FillItemSet( SfxItemSet& );
     116             :     virtual void Reset( const SfxItemSet & );
     117             : 
     118             :     virtual void ActivatePage( const SfxItemSet& rSet );
     119             :     virtual int  DeactivatePage( SfxItemSet* pSet );
     120             : 
     121             :     void    Construct();
     122             : 
     123             :     void    SetView( const ::sd::View* pSdView );
     124             : 
     125             :     using TabPage::ActivatePage;
     126             :     using TabPage::DeactivatePage;
     127             : };
     128             : 
     129             : #endif      // _SD_TPACTION_HXX
     130             : 
     131             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10