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 : * Effect-SingleTab-Dialog
42 : */
43 : class SdActionDlg : public SfxNoLayoutSingleTabDialog
44 : {
45 : private:
46 : const SfxItemSet& rOutAttrs;
47 :
48 : public:
49 :
50 : SdActionDlg( Window* pParent, const SfxItemSet* pAttr, ::sd::View* pView );
51 0 : ~SdActionDlg() {};
52 : };
53 :
54 : /**
55 : * Interaction-Tab-Page
56 : */
57 : class SdTPAction : public SfxTabPage
58 : {
59 : private:
60 : FixedText aFtAction; // always visible
61 : ListBox aLbAction;
62 :
63 : FixedText aFtTree; // jump destination controls
64 : SdPageObjsTLB aLbTree;
65 : SdPageObjsTLB aLbTreeDocument;
66 : ListBox aLbOLEAction;
67 :
68 : FixedLine aFlSeparator;
69 : Edit aEdtSound;
70 : Edit aEdtBookmark;
71 : Edit aEdtDocument;
72 : Edit aEdtProgram;
73 : Edit aEdtMacro;
74 : PushButton aBtnSearch;
75 : PushButton aBtnSeek;
76 :
77 : const SfxItemSet& rOutAttrs;
78 : const ::sd::View* mpView;
79 : SdDrawDocument* mpDoc;
80 : XColorListRef pColList;
81 :
82 : sal_Bool bTreeUpdated;
83 : std::vector<com::sun::star::presentation::ClickAction> maCurrentActions;
84 : String aLastFile;
85 : ::std::vector< long > aVerbVector;
86 :
87 : //------------------------------------
88 :
89 : DECL_LINK( ClickSearchHdl, void * );
90 : DECL_LINK( ClickActionHdl, void * );
91 : DECL_LINK( SelectTreeHdl, void * );
92 : DECL_LINK( CheckFileHdl, void * );
93 :
94 : void UpdateTree();
95 : virtual void OpenFileDialog();
96 : ::com::sun::star::presentation::ClickAction GetActualClickAction();
97 : void SetActualClickAction( ::com::sun::star::presentation::ClickAction eCA );
98 : void SetActualAnimationEffect( ::com::sun::star::presentation::AnimationEffect eAE );
99 : void SetEditText( String const & rStr );
100 : String GetEditText( sal_Bool bURL = sal_False );
101 : sal_uInt16 GetClickActionSdResId( ::com::sun::star::presentation::ClickAction eCA );
102 : sal_uInt16 GetAnimationEffectSdResId( ::com::sun::star::presentation::AnimationEffect eAE );
103 :
104 : public:
105 : SdTPAction( Window* pParent, const SfxItemSet& rInAttrs );
106 : ~SdTPAction();
107 :
108 : static SfxTabPage* Create( Window*, const SfxItemSet& );
109 :
110 : virtual sal_Bool FillItemSet( SfxItemSet& );
111 : virtual void Reset( const SfxItemSet & );
112 :
113 : virtual void ActivatePage( const SfxItemSet& rSet );
114 : virtual int DeactivatePage( SfxItemSet* pSet );
115 :
116 : void Construct();
117 :
118 : void SetView( const ::sd::View* pSdView );
119 :
120 : using TabPage::ActivatePage;
121 : using TabPage::DeactivatePage;
122 : };
123 :
124 : #endif // _SD_TPACTION_HXX
125 :
126 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|