1*c45d927aSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*c45d927aSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*c45d927aSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*c45d927aSAndrew Rist * distributed with this work for additional information 6*c45d927aSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*c45d927aSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*c45d927aSAndrew Rist * "License"); you may not use this file except in compliance 9*c45d927aSAndrew Rist * with the License. You may obtain a copy of the License at 10*c45d927aSAndrew Rist * 11*c45d927aSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*c45d927aSAndrew Rist * 13*c45d927aSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*c45d927aSAndrew Rist * software distributed under the License is distributed on an 15*c45d927aSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*c45d927aSAndrew Rist * KIND, either express or implied. See the License for the 17*c45d927aSAndrew Rist * specific language governing permissions and limitations 18*c45d927aSAndrew Rist * under the License. 19*c45d927aSAndrew Rist * 20*c45d927aSAndrew Rist *************************************************************/ 21*c45d927aSAndrew Rist 22*c45d927aSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir 25cdf0e10cSrcweir #ifndef _SD_TPACTION_HXX 26cdf0e10cSrcweir #define _SD_TPACTION_HXX 27cdf0e10cSrcweir 28cdf0e10cSrcweir #include <com/sun/star/presentation/ClickAction.hpp> 29cdf0e10cSrcweir #include <com/sun/star/presentation/AnimationEffect.hpp> 30cdf0e10cSrcweir #include <svtools/filedlg.hxx> 31cdf0e10cSrcweir #include <vcl/group.hxx> 32cdf0e10cSrcweir #include <vcl/fixed.hxx> 33cdf0e10cSrcweir #include <svx/dlgctrl.hxx> 34cdf0e10cSrcweir #include <sfx2/tabdlg.hxx> 35cdf0e10cSrcweir #include <sfx2/basedlgs.hxx> 36cdf0e10cSrcweir #include <sfx2/tabdlg.hxx> 37cdf0e10cSrcweir #include "sdtreelb.hxx" 38cdf0e10cSrcweir #include "anmdef.hxx" 39cdf0e10cSrcweir 40cdf0e10cSrcweir #include <vector> 41cdf0e10cSrcweir 42cdf0e10cSrcweir namespace sd { 43cdf0e10cSrcweir class View; 44cdf0e10cSrcweir } 45cdf0e10cSrcweir class SdDrawDocument; 46cdf0e10cSrcweir 47cdf0e10cSrcweir /************************************************************************* 48cdf0e10cSrcweir |* 49cdf0e10cSrcweir |* Effekte-SingleTab-Dialog 50cdf0e10cSrcweir |* 51cdf0e10cSrcweir \************************************************************************/ 52cdf0e10cSrcweir class SdActionDlg : public SfxSingleTabDialog 53cdf0e10cSrcweir { 54cdf0e10cSrcweir private: 55cdf0e10cSrcweir const SfxItemSet& rOutAttrs; 56cdf0e10cSrcweir 57cdf0e10cSrcweir public: 58cdf0e10cSrcweir 59cdf0e10cSrcweir SdActionDlg( Window* pParent, const SfxItemSet* pAttr, ::sd::View* pView ); 60cdf0e10cSrcweir ~SdActionDlg() {}; 61cdf0e10cSrcweir }; 62cdf0e10cSrcweir 63cdf0e10cSrcweir /************************************************************************* 64cdf0e10cSrcweir |* 65cdf0e10cSrcweir |* Interaktions-Tab-Page 66cdf0e10cSrcweir |* 67cdf0e10cSrcweir \************************************************************************/ 68cdf0e10cSrcweir 69cdf0e10cSrcweir class SdTPAction : public SfxTabPage 70cdf0e10cSrcweir { 71cdf0e10cSrcweir private: 72cdf0e10cSrcweir FixedText aFtAction; // always visible 73cdf0e10cSrcweir ListBox aLbAction; 74cdf0e10cSrcweir 75cdf0e10cSrcweir FixedText aFtTree; // jump destination controls 76cdf0e10cSrcweir SdPageObjsTLB aLbTree; 77cdf0e10cSrcweir SdPageObjsTLB aLbTreeDocument; 78cdf0e10cSrcweir ListBox aLbOLEAction; 79cdf0e10cSrcweir 80cdf0e10cSrcweir FixedLine aFlSeparator; 81cdf0e10cSrcweir Edit aEdtSound; 82cdf0e10cSrcweir Edit aEdtBookmark; 83cdf0e10cSrcweir Edit aEdtDocument; 84cdf0e10cSrcweir Edit aEdtProgram; 85cdf0e10cSrcweir Edit aEdtMacro; 86cdf0e10cSrcweir PushButton aBtnSearch; 87cdf0e10cSrcweir PushButton aBtnSeek; 88cdf0e10cSrcweir 89cdf0e10cSrcweir const SfxItemSet& rOutAttrs; 90cdf0e10cSrcweir const ::sd::View* mpView; 91cdf0e10cSrcweir SdDrawDocument* mpDoc; 92cdf0e10cSrcweir XColorTable* pColTab; 93cdf0e10cSrcweir 94cdf0e10cSrcweir sal_Bool bTreeUpdated; 95cdf0e10cSrcweir List* pCurrentActions; 96cdf0e10cSrcweir String aLastFile; 97cdf0e10cSrcweir ::std::vector< long > aVerbVector; 98cdf0e10cSrcweir 99cdf0e10cSrcweir //------------------------------------ 100cdf0e10cSrcweir 101cdf0e10cSrcweir DECL_LINK( ClickSearchHdl, void * ); 102cdf0e10cSrcweir DECL_LINK( ClickActionHdl, void * ); 103cdf0e10cSrcweir DECL_LINK( SelectTreeHdl, void * ); 104cdf0e10cSrcweir DECL_LINK( CheckFileHdl, void * ); 105cdf0e10cSrcweir 106cdf0e10cSrcweir void UpdateTree(); 107cdf0e10cSrcweir virtual void OpenFileDialog(); 108cdf0e10cSrcweir ::com::sun::star::presentation::ClickAction GetActualClickAction(); 109cdf0e10cSrcweir void SetActualClickAction( ::com::sun::star::presentation::ClickAction eCA ); 110cdf0e10cSrcweir void SetActualAnimationEffect( ::com::sun::star::presentation::AnimationEffect eAE ); 111cdf0e10cSrcweir void SetEditText( String const & rStr ); 112cdf0e10cSrcweir String GetEditText( sal_Bool bURL = sal_False ); 113cdf0e10cSrcweir sal_uInt16 GetClickActionSdResId( ::com::sun::star::presentation::ClickAction eCA ); 114cdf0e10cSrcweir sal_uInt16 GetAnimationEffectSdResId( ::com::sun::star::presentation::AnimationEffect eAE ); 115cdf0e10cSrcweir 116cdf0e10cSrcweir public: 117cdf0e10cSrcweir SdTPAction( Window* pParent, const SfxItemSet& rInAttrs ); 118cdf0e10cSrcweir ~SdTPAction(); 119cdf0e10cSrcweir 120cdf0e10cSrcweir static SfxTabPage* Create( Window*, const SfxItemSet& ); 121cdf0e10cSrcweir 122cdf0e10cSrcweir virtual sal_Bool FillItemSet( SfxItemSet& ); 123cdf0e10cSrcweir virtual void Reset( const SfxItemSet & ); 124cdf0e10cSrcweir 125cdf0e10cSrcweir virtual void ActivatePage( const SfxItemSet& rSet ); 126cdf0e10cSrcweir virtual int DeactivatePage( SfxItemSet* pSet ); 127cdf0e10cSrcweir 128cdf0e10cSrcweir void Construct(); 129cdf0e10cSrcweir 130cdf0e10cSrcweir void SetView( const ::sd::View* pSdView ); 131cdf0e10cSrcweir 132cdf0e10cSrcweir using TabPage::ActivatePage; 133cdf0e10cSrcweir using TabPage::DeactivatePage; 134cdf0e10cSrcweir }; 135cdf0e10cSrcweir 136cdf0e10cSrcweir #endif // _SD_TPACTION_HXX 137cdf0e10cSrcweir 138