fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / sd / source / ui / inc / tpaction.hxx
blobcc16796476fe56da2d9e65d290fdf8aba2d008f3
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
21 #ifndef _SD_TPACTION_HXX
22 #define _SD_TPACTION_HXX
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"
33 #include <vector>
35 namespace sd {
36 class View;
38 class SdDrawDocument;
40 /**
41 * Effect-SingleTab-Dialog
43 class SdActionDlg : public SfxNoLayoutSingleTabDialog
45 private:
46 const SfxItemSet& rOutAttrs;
48 public:
50 SdActionDlg( Window* pParent, const SfxItemSet* pAttr, ::sd::View* pView );
51 ~SdActionDlg() {};
54 /**
55 * Interaction-Tab-Page
57 class SdTPAction : public SfxTabPage
59 private:
60 FixedText aFtAction; // always visible
61 ListBox aLbAction;
63 FixedText aFtTree; // jump destination controls
64 SdPageObjsTLB aLbTree;
65 SdPageObjsTLB aLbTreeDocument;
66 ListBox aLbOLEAction;
68 FixedLine aFlSeparator;
69 Edit aEdtSound;
70 Edit aEdtBookmark;
71 Edit aEdtDocument;
72 Edit aEdtProgram;
73 Edit aEdtMacro;
74 PushButton aBtnSearch;
75 PushButton aBtnSeek;
77 const SfxItemSet& rOutAttrs;
78 const ::sd::View* mpView;
79 SdDrawDocument* mpDoc;
80 XColorListRef pColList;
82 sal_Bool bTreeUpdated;
83 std::vector<com::sun::star::presentation::ClickAction> maCurrentActions;
84 String aLastFile;
85 ::std::vector< long > aVerbVector;
87 //------------------------------------
89 DECL_LINK( ClickSearchHdl, void * );
90 DECL_LINK( ClickActionHdl, void * );
91 DECL_LINK( SelectTreeHdl, void * );
92 DECL_LINK( CheckFileHdl, void * );
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 );
104 public:
105 SdTPAction( Window* pParent, const SfxItemSet& rInAttrs );
106 ~SdTPAction();
108 static SfxTabPage* Create( Window*, const SfxItemSet& );
110 virtual sal_Bool FillItemSet( SfxItemSet& );
111 virtual void Reset( const SfxItemSet & );
113 virtual void ActivatePage( const SfxItemSet& rSet );
114 virtual int DeactivatePage( SfxItemSet* pSet );
116 void Construct();
118 void SetView( const ::sd::View* pSdView );
120 using TabPage::ActivatePage;
121 using TabPage::DeactivatePage;
124 #endif // _SD_TPACTION_HXX
126 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */