Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : :
29 : :
30 : : #ifndef _SD_TPACTION_HXX
31 : : #define _SD_TPACTION_HXX
32 : :
33 : : #include <com/sun/star/presentation/ClickAction.hpp>
34 : : #include <com/sun/star/presentation/AnimationEffect.hpp>
35 : : #include <vcl/group.hxx>
36 : : #include <vcl/fixed.hxx>
37 : : #include <svx/dlgctrl.hxx>
38 : : #include <sfx2/tabdlg.hxx>
39 : : #include <sfx2/basedlgs.hxx>
40 : : #include "sdtreelb.hxx"
41 : :
42 : : #include <vector>
43 : :
44 : : namespace sd {
45 : : class View;
46 : : }
47 : : class SdDrawDocument;
48 : :
49 : : /*************************************************************************
50 : : |*
51 : : |* Effekte-SingleTab-Dialog
52 : : |*
53 : : \************************************************************************/
54 : : class SdActionDlg : public SfxSingleTabDialog
55 : : {
56 : : private:
57 : : const SfxItemSet& rOutAttrs;
58 : :
59 : : public:
60 : :
61 : : SdActionDlg( Window* pParent, const SfxItemSet* pAttr, ::sd::View* pView );
62 : 0 : ~SdActionDlg() {};
63 : : };
64 : :
65 : : /*************************************************************************
66 : : |*
67 : : |* Interaktions-Tab-Page
68 : : |*
69 : : \************************************************************************/
70 : :
71 : : class SdTPAction : public SfxTabPage
72 : : {
73 : : private:
74 : : FixedText aFtAction; // always visible
75 : : ListBox aLbAction;
76 : :
77 : : FixedText aFtTree; // jump destination controls
78 : : SdPageObjsTLB aLbTree;
79 : : SdPageObjsTLB aLbTreeDocument;
80 : : ListBox aLbOLEAction;
81 : :
82 : : FixedLine aFlSeparator;
83 : : Edit aEdtSound;
84 : : Edit aEdtBookmark;
85 : : Edit aEdtDocument;
86 : : Edit aEdtProgram;
87 : : Edit aEdtMacro;
88 : : PushButton aBtnSearch;
89 : : PushButton aBtnSeek;
90 : :
91 : : const SfxItemSet& rOutAttrs;
92 : : const ::sd::View* mpView;
93 : : SdDrawDocument* mpDoc;
94 : : XColorListRef pColList;
95 : :
96 : : sal_Bool bTreeUpdated;
97 : : std::vector<com::sun::star::presentation::ClickAction> maCurrentActions;
98 : : String aLastFile;
99 : : ::std::vector< long > aVerbVector;
100 : :
101 : : //------------------------------------
102 : :
103 : : DECL_LINK( ClickSearchHdl, void * );
104 : : DECL_LINK( ClickActionHdl, void * );
105 : : DECL_LINK( SelectTreeHdl, void * );
106 : : DECL_LINK( CheckFileHdl, void * );
107 : :
108 : : void UpdateTree();
109 : : virtual void OpenFileDialog();
110 : : ::com::sun::star::presentation::ClickAction GetActualClickAction();
111 : : void SetActualClickAction( ::com::sun::star::presentation::ClickAction eCA );
112 : : void SetActualAnimationEffect( ::com::sun::star::presentation::AnimationEffect eAE );
113 : : void SetEditText( String const & rStr );
114 : : String GetEditText( sal_Bool bURL = sal_False );
115 : : sal_uInt16 GetClickActionSdResId( ::com::sun::star::presentation::ClickAction eCA );
116 : : sal_uInt16 GetAnimationEffectSdResId( ::com::sun::star::presentation::AnimationEffect eAE );
117 : :
118 : : public:
119 : : SdTPAction( Window* pParent, const SfxItemSet& rInAttrs );
120 : : ~SdTPAction();
121 : :
122 : : static SfxTabPage* Create( Window*, const SfxItemSet& );
123 : :
124 : : virtual sal_Bool FillItemSet( SfxItemSet& );
125 : : virtual void Reset( const SfxItemSet & );
126 : :
127 : : virtual void ActivatePage( const SfxItemSet& rSet );
128 : : virtual int DeactivatePage( SfxItemSet* pSet );
129 : :
130 : : void Construct();
131 : :
132 : : void SetView( const ::sd::View* pSdView );
133 : :
134 : : using TabPage::ActivatePage;
135 : : using TabPage::DeactivatePage;
136 : : };
137 : :
138 : : #endif // _SD_TPACTION_HXX
139 : :
140 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|