1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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"
41 * Effect-SingleTab-Dialog
43 class SdActionDlg
: public SfxNoLayoutSingleTabDialog
46 const SfxItemSet
& rOutAttrs
;
50 SdActionDlg( Window
* pParent
, const SfxItemSet
* pAttr
, ::sd::View
* pView
);
55 * Interaction-Tab-Page
57 class SdTPAction
: public SfxTabPage
60 FixedText aFtAction
; // always visible
63 FixedText aFtTree
; // jump destination controls
64 SdPageObjsTLB aLbTree
;
65 SdPageObjsTLB aLbTreeDocument
;
68 FixedLine aFlSeparator
;
74 PushButton aBtnSearch
;
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
;
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 * );
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
);
105 SdTPAction( Window
* pParent
, const SfxItemSet
& rInAttrs
);
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
);
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: */